Len Conrad wrote: > ---------- Original Message ---------------------------------- > From: "Len Conrad" <lcon...@go2france.com> > Reply-To: <lcon...@go2france.com> > Date: Tue, 18 Aug 2009 18:08:59 +0200 > > >> mail_version = 2.3.3 >> >> postconf | egrep virtual_alias_maps >> >> proxy_read_maps = $local_recipient_maps, $mydestination, >> $virtual_alias_maps, $virtual_alias_domains, $virtual_mailbox_maps, >> $virtual_mailbox_domains, $relay_recipient_maps, $relay_domains, >> $canonical_maps, $sender_canonical_maps, $recipient_canonical_maps, >> $relocated_maps, $transport_maps, $mynetworks >> >> virtual_alias_maps = proxy:mysql:/etc/postfix/mysql- >> >> virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf >> >> On the mailbox server, the mysql table answers correctly: >> >> postmap -q "exst...@xxx.com" mysql:/etc/postfix/mysql-virtual_forwardings.cf >> exst...@yyy.net >> >> ... so the virtual_forwardings.cf is correct, the table is correct, returing >> the right answer. >> >> but: >> >> Aug 18 10:56:54 ms1.zzz.net/ms1.zzz.net postfix/virtual[5386]: 854544E4066: >> to=<exst...@xxx.com>, relay=virtual, delay=0.05, delays=0.04/0/0/0.01, >> dsn=5.1.1, status=bounced (unknown user: "exst...@xxx.com") >> >> When we do "virtual -vv", we see virtual resolving recipients only with >> virtual_mailbox_maps, and apparently not looking at virtual_alias_maps >> >> virtual_alias_maps worked fine for months until yesterday. We can't find >> what changed. >> >> Suggestions? >> >> Len >> > ============ > > it's not virtual, but smtpd that's acting strange: > > Aug 18 11:37:02 ms1.zzz.net/ms1.zzz.net postfix/smtpd[22753]: > dict_proxy_lookup: table=mysql:/etc/postfix/mysql-virtual_forwardings.cf > flags=lock|fold_fix key=exst...@xxx.com -> status=0 result=exst...@yyy.net > > Aug 18 11:37:02 ms1.zzz.net/ms1.zzz.net postfix/smtpd[22753]: maps_find: > virtual_alias_maps: > proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,lock|fold_fix): > exst...@xxx.com = exst...@yyy.net > > Aug 18 11:37:02 ms1.zzz.net/ms1.zzz.net postfix/smtpd[22753]: mail_addr_find: > exst...@xxx.com -> exst...@yyy.net > > Aug 18 11:37:02 ms1.zzz.net/ms1.zzz.net postfix/virtual[22030]: 3EF9B4E407F: > to=<exst...@xxx.com>, relay=virtual, delay=0.06, delays=0.05/0/0/0.01, > dsn=5.1.1, status=bounced (unknown user: "exst...@xxx.com") > > The query is answered, so why is the msg bounced? >
First, turn OFF verbose logging and show a complete transaction for a message. Also provide 'postconf -n' hiding domains with example.(com|net|org) if required. In addition, provide any changes you made to master.cf. Know that virtual_alias_maps are NOT handled by the virtual(8) agent. This is the job of cleanup(8) and smtpd(8)