postmas...@klam.ca wrote:
I am trying to understand sender/recipient names are handled. Am I correct in that recipient addresses are "rewritten" according to ADDRESS_REWRITING_README before recipient/sender checks are performed.
check_sender_access and check_recipient_access tables operate on the envelope address as provided during the SMTP conversation. But it's not clear this answers the question.
I ask because I have the following setup vdomains klam.ca klam.com klam.biz valiases x...@klam.biz x...@klam.com vmailboxes x...@klam.com klam.com/xyz However, legitimate mail addressed to *...@klam.biz seems to be getting lost. Is there a better way of getting email addresses to *.klam.biz to x...@klam.com.
It's not clear what vdomains refers to. Using virtual_alias_maps to rewrite mail to a different domain is a valid and common choice. Make sure each domain is listed in the correct address class, and listed in only one address class.
http://www.postfix.org/ADDRESS_CLASS_README.html Check the logs to see what happens to mail. To report a problem, please see: http://www.postfix.org/DEBUG_README.html#mail
I have noticed that there seems to be a fair amount of duplication between the Postfix default values and the main.cf entries. Is there a simple way, being a lazy sod preferably automated, way of cleaning up main.cf.
You can get a list of defaults listed in main.cf with: # { postconf -n; postconf -d ; } | sort | uniq -d and then examine the list to decide what to do about it. (a few entries will always display in this list) -- Noel Jones