jakemaul
31st March 2005, 10:23 PM
Greetings,
I've been having a problem with a Fedora box involving Postfix. I've had this problem for quite a while- it happened in FC2, and now in FC3 (same box, upgraded) with Postfix 2.1.5. It's bouncing messages bound for virtual_alias_domains:
postconf:
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = mydomainname.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = mydomainname.com
/etc/postfix/virtual:
mydomainname.com mydomainname.com
webmaster@mydomainname.com mydomainname
hostmaster@mydomainname.com mydomainname
postmaster@mydomainname.com mydomainname
jake@mydomainname.com jake
But if I send mail to jake@mydomainname.com, it bounces with:
<jake@mydomainname.com>: User unknown in virtual alias table
I can "fix" it by adding $mydomain to the end of $mydestination. It works, but generates this warning every time it receives an email:
Mar 31 14:22:49 www postfix/trivial-rewrite[29412]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_alias_domains.
Also note that at first I didn't specify virtual_alias_domains separately, I just used "virtual_alias_domains = $virtual_alias_maps", which needs the first line I gave in /etc/postfix/virtual. But that didn't work, so I did it manually.
What's wrong? Anyone know why it won't work without this hack?
Thanks,
Jake
I've been having a problem with a Fedora box involving Postfix. I've had this problem for quite a while- it happened in FC2, and now in FC3 (same box, upgraded) with Postfix 2.1.5. It's bouncing messages bound for virtual_alias_domains:
postconf:
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = mydomainname.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = mydomainname.com
/etc/postfix/virtual:
mydomainname.com mydomainname.com
webmaster@mydomainname.com mydomainname
hostmaster@mydomainname.com mydomainname
postmaster@mydomainname.com mydomainname
jake@mydomainname.com jake
But if I send mail to jake@mydomainname.com, it bounces with:
<jake@mydomainname.com>: User unknown in virtual alias table
I can "fix" it by adding $mydomain to the end of $mydestination. It works, but generates this warning every time it receives an email:
Mar 31 14:22:49 www postfix/trivial-rewrite[29412]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_alias_domains.
Also note that at first I didn't specify virtual_alias_domains separately, I just used "virtual_alias_domains = $virtual_alias_maps", which needs the first line I gave in /etc/postfix/virtual. But that didn't work, so I did it manually.
What's wrong? Anyone know why it won't work without this hack?
Thanks,
Jake