On Wed, Oct 24, 2012 at 02:39:04PM -0700, Robert Minsk wrote: > In my main.cf I have > > sender_dependent_default_transport_maps = tcp:localhost:6002 > > and in my master.cf I have: > 10025 inet n - n - - smtpd > -o syslog_name=postfix/10025 > -o content_filter=scan:[127.0.0.1]:11125 > -o receive_override_options=no_address_mappings
How does mail get to port 10025? > My content filter is on port 11125 and returns the email back > into postfix on port 11126. Assuming the mail comes in via 10025. > For the sender in question my sender_dependent_default_transport_maps > returns microsoft365:[podxxxxx.outlook.com]:587 The only things that override "content_filter" are either a "FILTER" action in an access table or a REDIRECT in an access table. > My understanding is that mail coming in on port 10025 should > first go to the content_filter scan:[127.0.0.1]:11125, my filter > should scan it, gets reinjected on port 11126, the the default_transport > from the sender_dependent_default_transport_maps should use the > microsoft365 transport. Provided the mail comes in via that port as claimed, and no header checks or similar trigger "FILTER" or "REDIRECT" actions. > When I have sender_dependent_default_transport_maps in main.cf > my content_filter is never calls.? The mail comes in on port 10025 > and goes straight to the microsoft365 transport.? Without the > sender_dependent_default_transport_maps mail does hit my content_filter. You've presented no evidence (logs) that your assumptions are accurate. -- Viktor.