Addresses with the same domain as my vhost are causing Postfix and QMail to revert to a local network instead of just outright sending the mail. I thought I had this problem fixed with the Luke Tarplin method, but commenting out those lines in the
/etc/postfix/main.cf have stopped working since the 10.4.4 update to PLESK for some reason.
I've seen other suggestions including adding MX records, modifying the
main.cf in different ways. I know very little about MTA's and even less about DNS settings.
Does anyone have any advice on a solution to making Postfix treat all email recipients the same and just send the email instead of reverting to local?
Below is from my maillog, I have it sending to 2 emails, 1 a gmail, one with the same address as a vhost. As you can see, one gets sent, one does not.
Aug 2 05:52:27 server1 postfix/pickup: C2187750: uid=10013 from=<thermo-ta-ftp> Aug 2 05:52:27 server1 postfix/cleanup: C2187750: message-id= <20120802095227.C2187750@server1.onlinehome-server.com> Aug 2 05:52:27 server1 postfix/qmgr: C2187750: from=<thermo-ta- firstname.lastname@example.org>, size=1063, nrcpt=2 (queue active) Aug 2 05:52:27 server1 postfix-local: postfix-local: email@example.com, firstname.lastname@example.org, dirname=/var/qmail/mailnames Aug 2 05:52:27 server1 postfix-local: cannot chdir to mailname dir info: No such file or directory Aug 2 05:52:27 server1 postfix-local: Unknown user: email@example.com Aug 2 05:52:27 server1 postfix/pipe: C2187750: to=<firstname.lastname@example.org>, relay=plesk_virtual, delay=0.17, delays=0.11/0/0/0.06, dsn=2.0.0, status=sent (delivered via plesk_virtual service) Aug 2 05:52:28 server1 postfix/smtp: certificate verification failed for gmail- smtp-in.l.google.com[18.104.22.168]:25: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority Aug 2 05:52:29 server1 postfix/smtp: C2187750: to=<email@example.com>, relay=gmail-smtp-in.l.google.com[22.214.171.124]:25, delay=1.6, delays=0.11/0.01/0.29/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1343901326 s4si23521367igw.27) Aug 2 05:52:29 server1 postfix/qmgr: C2187750: removed
UPDATE: This is 100% a PLESK issue, and it applies to almost all versions of 10 and 11. The QMail MTA also reverts to a local handler if the vhost domain matches the email recipient.