* Jamie Holly hovercrafter@earthlink.net [131215 07:11]:
I'd like to call your attention to the difference between:
BAD:Dec 11 15:00:32 linus postfix/smtp[5225]: 7CEA74228698: to=<
_www at tj49.com >, relay= mail.tj49.com [74.220.215.66]:25, delay=0.59, delays=0.01/0/0.45/0.13, dsn=5.0.0, status=bounced (host mail.tj49.com [74.220.215.66] said: 550 No Such User Here " (in replyto RCPT TO command))
GOOD:Dec 11 15:03:18 linus postfix/qmgr[5239]: C53134228725:
from=<tim at akwebsoft.com>, size=407, nrcpt=1 (queue active) Dec 11 15:03:19 linus postfix/smtp[5245]: C53134228725: to=<tim at akwebsoft.com> , relay=akwebsoft.com[74.220.215.66]:25, delay=0.8, delays=0.01/0.01/0.53/0.25, dsn=2.0.0, status=sent (250 OK id=1VqtkN-00081S-C5)
I thin' your mail system got some 'splanin' to do...
Well, I've used postfix for years .... always works, but I'm not telling PHP how to handle `from'
Hello Jamie :
What's your email address set in the E-Mail address field on Administration > Configuration > System > Site information?
tim@tj49.com
From your log, the problem is obvious. You are attempting to send an email with a return address that doesn't exist. Postfix is set to verify sender, so before it accepts an email, it's going to ask the server handling the return address if that user actually exists. If it doesn't then it's going to send a 550 error. If you have the EMail address in Drupal set to something other than www@tj49.com, then you got a server problem going on, preventing PHP from setting the return address. If you're running in safe_mode, that can be the culprit. If not, then you can try adding this to your settings.php:
The errors listed above are the ones when I attempt to send mail using the PHP mail() function in the test PHP file. FYI: on Mac OSX _www is the apache user.
It is a different issue when I attempt to send email using the smtp authentication module - see below
ini('sendmail_path', '/usr/sbin/sendmail -t -i -f tim@akwebsoft.com');
That was added, and caches were cleared.
Did a test send from my smtp auth module. I got three error messages (as per subject line) from the module. Looking at the drupal logs - I see this: <begin> mail 12/15/2013 - 20:39 Error sending e-mail (from tim@tj49.com to tim... admin smtp 12/15/2013 - 20:39 Error sending e-mail from tim@tj49.com to tim... admin smtp 12/15/2013 - 20:39 Sending mail to: tim@akwebsoft.com <end> Looking at the system logs - /private/var/log/mail.log on Mac OSX 10.6, I see the following (in part) <begin> Dec 15 11:38:32 linus postfix/postscreen[2362]: CONNECT from [127.0.0.1]:49904 Dec 15 11:38:32 linus postfix/postscreen[2362]: WHITELISTED [127.0.0.1]:49904 Dec 15 11:38:32 linus postfix/smtpd[2363]: connect from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/postscreen[2362]: CONNECT from [127.0.0.1]:49906 Dec 15 11:38:32 linus postfix/postscreen[2362]: WHITELISTED [127.0.0.1]:49906 Dec 15 11:38:32 linus postfix/smtpd[2365]: connect from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/smtpd[2365]: lost connection after RSET from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/smtpd[2365]: disconnect from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/smtpd[2363]: lost connection after RSET from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/smtpd[2363]: disconnect from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/postscreen[2362]: CONNECT from [127.0.0.1]:49908 Dec 15 11:38:32 linus postfix/postscreen[2362]: WHITELISTED [127.0.0.1]:49908 Dec 15 11:38:32 linus postfix/smtpd[2365]: connect from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/smtpd[2365]: lost connection after RSET from localhost[127.0.0.1] Dec 15 11:38:32 linus postfix/smtpd[2365]: disconnect from localhost[127.0.0.1] Dec 15 11:38:34 linus postfix/master[2343]: master exit time has arrived Dec 15 11:38:34 linus postfix/master[2367]: daemon started -- version 2.8.4, configuration /etc/postfix Dec 15 11:39:33 linus postfix/postscreen[2377]: CONNECT from [127.0.0.1]:49933 Dec 15 11:39:33 linus postfix/postscreen[2377]: WHITELISTED [127.0.0.1]:49933 Dec 15 11:39:33 linus postfix/smtpd[2378]: connect from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/postscreen[2377]: CONNECT from [127.0.0.1]:49935 Dec 15 11:39:33 linus postfix/postscreen[2377]: WHITELISTED [127.0.0.1]:49935 Dec 15 11:39:33 linus postfix/smtpd[2380]: connect from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/smtpd[2380]: lost connection after RSET from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/smtpd[2380]: disconnect from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/smtpd[2378]: lost connection after RSET from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/smtpd[2378]: disconnect from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/postscreen[2377]: CONNECT from [127.0.0.1]:49937 Dec 15 11:39:33 linus postfix/postscreen[2377]: WHITELISTED [127.0.0.1]:49937 Dec 15 11:39:33 linus postfix/smtpd[2380]: connect from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/smtpd[2380]: lost connection after RSET from localhost[127.0.0.1] Dec 15 11:39:33 linus postfix/smtpd[2380]: disconnect from localhost[127.0.0.1] Dec 15 11:39:34 linus postfix/master[2367]: master exit time has arrived Dec 15 11:39:34 linus postfix/master[2382]: daemon started -- version 2.8.4, configuration /etc/postfix buf 1: "/private/var/log/mail.log" [readonly] 2444 lines --100%-- <end> No test email was received.
Unfortunately, I am very busy here and will probably be "off the grid" from 1:15 my time (AK standard) 'til tomorrow.
I really appreciate you looking at this.
thanks