On November 11, 2008 02:30:11 pm Brian Evans - Postfix List wrote: > 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
Ahh excellent, thank you, works great! I wish I had the last 5 hours I spent searching the archives and google trying to figure it out on my own back! Cheers, James -- James Grant Lightbox Technologies 312-240 Catherine St. Ottawa, ON. K2P 2G8 http://www.lightbox.org [EMAIL PROTECTED] 613-686-1661 x101
