I'm running a postfix server with the primary domain being domainA.com (configured in mydestination)
There is a second domain, domainB.com configured under virtual_alias_domains
I have user accounts for domainB.com mapped using virtual_alias_maps like this:
[email protected] user
Now, when I receive mail for an account [email protected] I'm seeing log entries in maillog like:
Jun 23 17:51:39 mailhost postfix/pipe[8892]: 415BD41671: **to=<[email protected]>, orig_to=<[email protected]>**, relay=spamassassin, delay=1.5, delays=0.74/0.01/0/0.7, dsn=2.0.0, status=sent (delivered via spamassassin service)
My question is: Is this normal behaviour? Why the translation in domain?
The short answer: YES. Maillog entry indicated normal behavior of postfix.
Explanation:
In your
virtual_alias_maps
table you putHere postfix rewriting engine works
[email protected] user
in your virtual_alias_maps table, postfix will rewrite email destination [email protected] -> user$myorigin
. This behavior controlled by append_at_myorigin parameter. Variable$myorigin
controlled by myorigin parameter.