On 2011-11-15 23:14, Justin wrote:
Brian, Thanks for the reply.

We have put quotes surrounded the mail name part only excluded the domain and made sure that main.cf has
resolve_dequoted_address as yes*
*

We receive email from external sources and postfix forwards to our local mail store, here is the value of
"virtual_alias_maps" in main.cf

virtual_alias_maps = regexp:/etc/postfix.myd/my_domain_aliases.regexp, hash:/etc/postfix.myd/virtual_users, hash:/etc/postfix.myd/virtual_dlists, hash:/etc/postfix.myd/dropboxes, regexp:/etc/postfix.myd/dropboxes.subdomains.regexp, regexp:/etc/postfix.myd/unrewrite.regexp

Sample virtual_users fragment
"#criticalema...@mydomain.com"   ms23/007/000/002/106/@mail.dir
"#criticalema...@mydomain.another.com"  ms23/007/000/002/106/@mail.dir

postmap creates virtual_users.db file using virtual_users and uses for lookup.

There is no reference to virtual_users in the above virtual_alias_maps.

I think you are confusing virtual_alias_maps and virtual_mailbox_maps; this is not uncommon.

For a virtual address to be delivered to a virtual mailbox, the domain in question must be present in virtual_mailbox_domains AND the address must resolve to a mailbox in virtual_mailbox_maps.

Use

    postmap -q "query" maptype:/map/location

to validate your maps.

--
J.

Reply via email to