On 12/12/2011 7:08 AM, Tomas Macek wrote: > I'm using Postfix 2.8.5 built from source and amavisd-new 2.6.4 from > Scientific Linux distribution. I have virtual domain 'virtdom.cz' and > some subdomain 'subdomain.virtdom.cz'. The server receives the > message and > passes it to amavisd-new. > > As you can see from the config, the re...@virtdom.cz shlould be > rewritten to > re...@subdomain.virtdom.cz and then passed to amavisd-new. The map > always > finds the key/value pair, but then Postfix does not pass the newly > found > address to amavis. Why? > Below are 2 different cases, that appear - the first one is bad > delivery, the > second is the proper one where things work properly as expected. > You can see it on the recipient address passed to the > amavisd-new on port 10024 (find ESMTP::10024). I cannot fully > reproduce this > error, it happens somehow.
Typically this is caused by improper use of receive_override_options = no_address_mappings somewhere in your config. > -------------- master.cf ----------------------------------- > smtps inet n - n - - smtpd > -o smtpd_tls_wrappermode=yes > -o smtpd_sasl_auth_enable=yes > -o receive_override_options=no_address_mappings My guess is the "bad" mail is coming in over smtps. Remove the receive_override_options line, and add -o syslog_name=postfix-smtps so you can see in the log when mail is coming in that port. And unless you have some good reason not to, it's customary to limit smtps access to authenticated users only with something like this: -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject -- Noel Jones