I'm building a virtual mail setup with Postfix, but I'm having issues with
virtual_alias_maps. The documentation explicitly says its recursive, but I can't for the life of me get further than the first alias entry:
Addresses found in virtual alias maps are subjected to another iteration of virtual aliasing, but are not subjected to canonical mapping, in order to avoid loops.
virtual_mailbox_domains = proxy:hash:$config_directory/maps/virtual_mailbox_domains.hash virtual_mailbox_maps = proxy:hash:$config_directory/maps/virtual_mailbox_maps.hash virtual_alias_domains = proxy:hash:$config_directory/maps/virtual_alias_domains.hash virtual_alias_maps = proxy:hash:$config_directory/maps/virtual_alias_maps.hash
email@example.com ok firstname.lastname@example.org ok
# User with mailbox email@example.com firstname.lastname@example.org # User with mailbox, but through intermediate alias email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org # New guy without a mailbox yet email@example.com firstname.lastname@example.org
I'm connecting to port 25 and trying
RCPT TO: <address> for the above aliases. All of the addresses are accepted, but only resolves to the immediate alias, meaning mail to
email@example.com will be attempted delivered to
firstname.lastname@example.org and not the final destination mailbox.
email@example.com is also accepted, because it has an alias - but since there is no mailbox called
firstname.lastname@example.org, this also fails on LMTP delivery.
Am I missing something here?
Postfix version is 3.4.9. Mailbox delivery is through LMTP to Dovecot.