James Grant wrote: > So, in postfix's main.cf I have: > > #VIRTUAL/MYSQL > virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf > virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf > virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf > > Both alias_maps and mailbox_maps are setup and working independently. > > My problem is that, if I have an entry in both virtual_mailbox_maps and > virtual_alias_maps that use the same email address (aka, store the message > in their mailbox locally, and forward to their gmail account) it seems to > match the alias only, do the forward, and stop processing the message, > without checking the virtual_mailbox_maps to see if it should store it > locally as well. > > eg) > virtual_alias_maps has > [EMAIL PROTECTED] destination: [EMAIL PROTECTED] > > virtual_mailbox_maps has > [EMAIL PROTECTED] /path/to/domain.com/test/ > virtual_alias_maps are global for all address classes.
If you want to forward something like this, then you need in your map: [EMAIL PROTECTED] [EMAIL PROTECTED],[EMAIL PROTECTED] It is OK to return the same address as an alias. (Just make sure to disable address mapping for things like filters to eliminate double expansion. aka amavisd-new or similar) Brian