On Thu, Jun 21, 2012 at 06:40:42PM +0200, Juan Jos? S?nchez Mesa wrote: > postmap output: > > # postmap -q fe...@domain.net mysql:/usr/local/etc/postfix/mysql-alias.cf > [nothing] > > # postmap -q @domain.net mysql:/usr/local/etc/postfix/mysql-alias.cf > @domain.com > > # postmap -q fe...@domain.com mysql:/usr/local/etc/postfix/mysql-alias.cf > m...@gmail.com
The cleanup(8) service performs virtual aliasing recursively on input. In your case it mapped (munged domains) fe...@domain.net to fe...@domain.com, and the latter was the last mapping. Therefore, either the cleanup service in master.cf has overrides for some of the reported parameters, or your tests above don't accurately represent the actual addresses queried. You can add a "-v" option to the cleanup service to log its activity in detail. > virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql-alias.cf > Jun 21 17:34:52 cincara postfix/smtpd[89590]: AFF4222857: > client=zaragoza.intera5.net[212.81.143.133] > Jun 21 17:34:52 cincara postfix/cleanup[89596]: AFF4222857: > message-id=<4fe33fed.30...@intera5.es> > Jun 21 17:34:52 cincara postfix/qmgr[12752]: AFF4222857: > from=<juanjose.sanc...@intera5.es>, size=1618, nrcpt=1 (queue active) > Jun 21 17:34:52 cincara postfix/pipe[89491]: AFF4222857: > to=<fe...@domain.com>, orig_to=<fe...@domain.net>, relay=maildrop, > delay=0.04, delays=0.02/0/0/0.02, dsn=2.0.0, status=sent (delivered via > maildrop service) > Jun 21 17:34:52 cincara postfix/qmgr[12752]: AFF4222857: removed The final recipient address was not found in the virtual(5) table or mapped to itself. -- Viktor.