On Wed, Jun 08, 2011 at 11:33:48AM +0200, Patrick Proniewski wrote: > After the period of double delivery is over, we will deliver emails only to > Google servers. So the virtual aliases map is to look like: > > public-addr...@univ-lyon2.fr public-addr...@univ-lyon2.fr > some-al...@univ-lyon2.fr public-addr...@univ-lyon2.fr > ... > > The first line looks pretty silly to me. Is there any way to tell that > addresses not listed in virtual aliases map are to be forwarded "as is" ?
Your gateway needs a table of valid recipients, the domain in question is presumably configured as a "relay domain" by being listed in $relay_domains. If you don't want to have identity mappings in virtual_alias_maps, you need to add entries to relay_recipient_maps: main.cf: # Use "cdb" if you have it. default_database_type = hash indexed = ${default_database_type}:${config_directory}/ relay_recipient_maps = ${indexed}relay_rcpts relay_rcpts: public-addr...@univ-lyon2.fr valid ... where the word "valid" on "the right hand side" of the table can be replaced by any non-empty value that makes sense to you. Postfix only needs the lookup key to map to a non-empty result. This said, the identity virtual_alias_maps mappings are a fine way to achieve the same result. The lookup will be done anyway, and you already have a virtual alias table, so it may in fact be simpler to keep using the identity mappings, but you MUST make sure that relay_recipient_maps (assuming the domain is a relay domain) is set to some table (be it one with no entries). main.cf: # All relay recipients are listed in virtual_alias_maps, so just # create and "postmap" an empty file. # relay_recipient_maps = ${indexed}empty -- Viktor.