I've got a domain with a website on it. The website is just a standard drupal install, running on Ubuntu 12.04LTS. Just the stock packages of Apache & PHP are installed. I also installed postfix for mail transport.
When a user registers a new account (among many other activities), the system generates an email and sends it off. I spent several hours trying to figure out why every time an email was sent it would bounce. As it turns out the only emails bouncing are ones sent intra-domain, that is from [email protected] to [email protected] not getting delivered. The email for the domain is hosted at another provider and I was able to verify they are not the ones bouncing it by hand crafting an email and spoofing the headers to match what was being created by drupal. Here is a relevant log snippet... This one delivered Jan 13 03:51:11 ip-172-31-14-234 postfix/pickup[11699]: 095A524337: uid=33 from=<[email protected]> Jan 13 03:51:11 ip-172-31-14-234 postfix/cleanup[11808]: 095A524337: message-id=<[email protected]> Jan 13 03:51:11 ip-172-31-14-234 postfix/qmgr[6147]: 095A524337: from=< [email protected]>, size=950, nrcpt=1 (queue active) Jan 13 03:51:11 ip-172-31-14-234 postfix/pickup[11699]: 17D2124327: uid=33 from=<[email protected]> Jan 13 03:51:11 ip-172-31-14-234 postfix/cleanup[11808]: 17D2124327: message-id=<[email protected]> Jan 13 03:51:11 ip-172-31-14-234 postfix/qmgr[6147]: 17D2124327: from=< [email protected]>, size=744, nrcpt=1 (queue active) Jan 13 03:51:11 ip-172-31-14-234 postfix/local[11814]: 17D2124327: to=< [email protected]>, relay=local, delay=0.26, delays=0.06/0.16/0/0.04, dsn=5.1.1, status=bounced (unknown user: "no-reply") Jan 13 03:51:11 ip-172-31-14-234 postfix/cleanup[11808]: 4AD2324346: message-id=<[email protected]> Jan 13 03:51:11 ip-172-31-14-234 postfix/qmgr[6147]: 4AD2324346: from=<>, size=2781, nrcpt=1 (queue active) Jan 13 03:51:11 ip-172-31-14-234 postfix/bounce[11815]: 17D2124327: sender non-delivery notification: 4AD2324346 Jan 13 03:51:11 ip-172-31-14-234 postfix/qmgr[6147]: 17D2124327: removed Jan 13 03:51:11 ip-172-31-14-234 postfix/local[11814]: 4AD2324346: to=< [email protected]>, relay=local, delay=0.03, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "no-reply") Jan 13 03:51:11 ip-172-31-14-234 postfix/qmgr[6147]: 4AD2324346: removed Jan 13 03:51:11 ip-172-31-14-234 postfix/smtp[11813]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c02::1a]:25: Network is unreachable Jan 13 03:51:12 ip-172-31-14-234 postfix/smtp[11813]: 095A524337: to=< [email protected]>, relay=gmail-smtp-in.l.google.com[74.125.129.27]:25, delay=1.3, delays=0.12/0.17/0.29/0.73, dsn=2.0.0, status=sent (250 2.0.0 OK 1389585072 ng9si14385826pbc.136 - gsmtp) Jan 13 03:51:12 ip-172-31-14-234 postfix/qmgr[6147]: 095A524337: removed This one did not... Jan 13 01:58:42 ip-172-31-14-234 postfix/master[6143]: daemon started -- version 2.9.6, configuration /etc/postfix Jan 13 01:59:25 ip-172-31-14-234 postfix/pickup[6146]: AE074238D3: uid=33 from=<[email protected]> Jan 13 01:59:25 ip-172-31-14-234 postfix/cleanup[6159]: AE074238D3: message-id=<[email protected]> Jan 13 01:59:25 ip-172-31-14-234 postfix/qmgr[6147]: AE074238D3: from=< [email protected]>, size=1091, nrcpt=1 (queue active) Jan 13 01:59:25 ip-172-31-14-234 postfix/local[6161]: AE074238D3: to=< [email protected]>, relay=local, delay=0.09, delays=0.06/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "admin") Jan 13 01:59:25 ip-172-31-14-234 postfix/cleanup[6159]: BB0E02423F: message-id=<[email protected]> Jan 13 01:59:25 ip-172-31-14-234 postfix/qmgr[6147]: BB0E02423F: from=<>, size=3116, nrcpt=1 (queue active) Jan 13 01:59:25 ip-172-31-14-234 postfix/bounce[6162]: AE074238D3: sender non-delivery notification: BB0E02423F Jan 13 01:59:25 ip-172-31-14-234 postfix/qmgr[6147]: AE074238D3: removed Jan 13 01:59:25 ip-172-31-14-234 postfix/local[6161]: BB0E02423F: to=< [email protected]>, relay=local, delay=0.05, delays=0.01/0/0/0.04, dsn=5.1.1, status=bounced (unknown user: "no-reply" Jan 13 01:59:25 ip-172-31-14-234 postfix/qmgr[6147]: BB0E02423F: removed The only difference between the two emails is the destination, one is [email protected] the other one is my personal email address. (Obvoiusly mydomain.com is a log scrub for the real domain since it's not relevant). I guess maybe I just don't know enough about postfix configuration. I accepted all the defaults when I set it up, with the exception that I replaced the domain field with mydomain.com when it prompted me rather than taking the default hostname of some-long-aws-instance-id. My instincts tell me this is what caused my problem. In reality I just want it to relay emails directed to *@mydomain.com to my email host. I have a feeling it's not doing that and instead looking for a user on the system with that name. Any advice is appreciated. Thanks! /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
