Forum Moderators: bakedjake
I'm having a strange problem with my php scripts where sendmail (i'm pretty sure it's sendmail, anyway) frequently appends our domain name onto the to: address of *some, not all* mail.
this is an example from our /var/log/maillog.1 :
Sep 14 14:18:24 ns7 sendmail[7599]: j8E6IOgw007599: from=httpd, size=714, class=0, nrcpts=1, msgid=<200509140618.j8E6IOgw007599@ns7.ourdomain.com>, relay=httpd@localhost
Sep 14 14:18:24 ns7 sendmail[7602]: j8E6IOgO007602: from=<httpd@ns7.ourdomain.com>, size=932, class=0, nrcpts=1, msgid=<200509140618.j8E6IOgw007599@ns7.ourdomain.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Sep 14 14:18:24 ns7 sendmail[7599]: j8E6IOgw007599: to=username@ifrance.com, ctladdr=httpd (398/398), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30714, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j8E6IOgO007602 Message accepted for delivery)
Sep 14 14:18:24 ns7 sendmail[7604]: j8E6IOgO007602: to=<username@ifrance.com.ourdomain.com>, ctladdr=<httpd@ns7.ourdomain.com> (398/398), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120932, relay=ifrance.com.ourdomain.com. [www.xx.yyy.zzz], dsn=2.0.0, stat=Sent (ok 1126678041 qp 30964)
notice how in the to: address changes from the third line to the fourth line (highlighted in bold). Somehow, sendmail seems to have added ourdomain.com to the to address (and to the relay server - green).
this seems to be consistent with sendmail's "FEATURE(always_add_domain)". I tried editing /etc/mail/sendmail.mc to disable this feature, and re-make-ing sendmail.cf and restarting sendmail, but to no avail.
IN ADDITION, this phenomenon doesn't always happen. For the same script, I can refresh a number of times. Sometimes it will append the domain name, sometimes it won't.
The worst part about this is that it causes email to only get sent out *sometimes*. I wish it were reliably repeatable somehow.
Any thoughts, anyone?
Thank you very very much.