dpik71879 2012-03-11 21:50
浏览 62
已采纳

DNS和(可能)PHP邮件()的电子邮件问题

On my client's website (domain.com) we have a contact form which sends an email to the client an me (client@domain.com and me@gmail.com).

The email is sent using PHP mail() function.

The website is hosted on my web server (MediaTemple DV) but the client has it's own server where Exchange is running (IP: xx.xxx.xx.xx, DOMAIN: server.com). Since the emails are handled by his server, I had to modify the DNS records on domain.com.

A: mail.domain.com -> xx.xxx.xx.xx
MX: (0) domain.com -> mail.domain.com
MX: (10) domain.com -> mail.server.com

When I use the contact form, I don't get any PHP error but only me@gmail.com receives the message.

After a few minutes, qmail (MediaTemple mail system) sends me an error email saying that client@domain.com "no longer accepts mail".

What's weird is that when I send an email to client@domain.com FROM gmail.com, then he gets it. Note that the client can still send email from Outlook with no problem.

Also note that all my other emails on other domains on my MediaTemple server work fine.

Does anyone have an idea why it behaves like this?

Thanks!

  • 写回答

1条回答 默认 最新

  • douzhu5900 2012-03-11 21:56
    关注

    Make sure the mail service for the domain is turned off on the (dv) - it's trying to deliver locally and not even checking the DNS. That should immediately solve the problem.

    (Also, probably a question for ServerFault?)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助