Sunday, March 19, 2006

corrections to postfix config

My earlier postfix post omitted another correction I had to make from the linuxquestions link: the virtual file needs the domain name first, then followed by mail ids relating to that domain. Eg
/etc/postfix/virtual:
virtual.domain anything (right-hand content does not matter)
postmaster@virtual.domain postmaster
user1@virtual.domain address1
user2@virtual.domain address2, address3


And with the configuration accepting local mails, it was creating some sort of problem with local addresses lookup. So, commented out the
mydestination = $myhostname, localhost.$mydomain, localhost
line. It still accepts mails from localhost for local accounts. Then added the actual hostname to the virtual domains, with stuff like mails to apache etc being sent to me!

No comments:

Post a Comment