![]() |
Postfix not honoring email aliases for local delivery
I have a hosting server, configured as per the Perfect Setup (Opensuse 10), with ISPConfig installed. Everything seems to be working - uptime has been over a month, now, with the only problems I've had so far being domain registration hiccups which have nothing to do with my server.
However, one of my customers is testing a web order form, and I've run into a problem: while emails incoming from outside servers work fine, local deliveries don't seem to be using email aliases properly. Eg. Username: example.admin Primary email: example.admin@example.com Alias: info@example.com If I send an email to info@example.com from outside, it works without a problem. If I send it from an another domain also hosted on the site, admin@example2.com, it bounces back with the following error: Quote:
- The server's FQDN is main.example.com - The $myhostname parameter in main.cf is main.example.com - main.example.com is not used as a virtual domain for any email or web services. www.example.com and example.com are, however. - All DNS entries are correct. Again, outside email works fine with the alias rewriting. - alias_maps = hash:/etc/aliases - virtual_maps = hash:/etc/postfix/virtusertable - mydestination = /etc/postfix/local-host-names - example.admin@example.com and info@example.com are both present in /etc/postfix/virtusertable and point to example.admin - example.com is listed in /etc/postfix/local-host-names Any help would be greatly appreciated! |
What's in your mail log when this happens?
|
Here's /var/log/mail (snippet):
Quote:
Thanks |
What's in /etc/postfix/main.cf (please strip out the comments), /etc/postfix/virtusertable, and /etc/postfix/local-host-names?
|
/etc/postfix/main.cf
Quote:
Quote:
Quote:
|
Ok, and now I need to know the real email addresses instead of test@example.com and admin@example.com.
|
In this case, so I wasn't cluttering anyone else's mailbox, I set up the username testing, which has test@markanthonymedia.com as an alias, just so I could confirm the behaviour with a fresh email. (The original user who noticed the problem is on another site I host.) The user testing then forwards to administrator@markanthonymedia.com.
The original notice was when a PHP script mailed to an alias - I got the undeliverable message error, since wwwrun's email forwards to me. I also tried sending to info@markanthonymedia.com, with the same result (info is an alias for markanthony). |
What's in test@markanthonymedia.com .procmailrc file (in his homedir)?
Please run Code:
postconf -e 'inet_protocols = ipv4' |
Thanks, I was wondering how to get that error out.
The user is testing, not test - perhaps I should've made it testuser or something. The email test@markanthonymedia.com is just an alias of testing@markanthonymedia.com. The .procmailrc for testing, however, is as follows: MAILDIR=$HOME/Maildir/ DEFAULT=$MAILDIR ORGMAIL=$MAILDIR INCLUDERC=/srv/www/web1/user/testing/.mailsize.rc ## INCLUDERC=/srv/www/web1/user/testing/.quota.rc ## INCLUDERC=/srv/www/web1/user/testing/.antivirus.rc ## INCLUDERC=/srv/www/web1/user/testing/.local-rules.rc ## INCLUDERC=/srv/www/web1/user/testing/.html-trap.rc ## INCLUDERC=/srv/www/web1/user/testing/.spamassassin.rc ## INCLUDERC=/srv/www/web1/user/testing/.autoresponder.rc |
And what's in the .forward file (in the same directory)?
|
| All times are GMT +2. The time now is 00:22. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.