i'm apparently unable to understand how to correctly configure mail for relay in my particular use case. i need a secondary daemon which clears my content_filter and always uses a particular relayhost.
here is where my master.cf currently stands: scan unix - - n - 16 smtp -o smtp_send_xforward_command=yes -o disable_mime_output_conversion=yes -o smtp_generic_maps= secure unix - - - - - smtp -o relay_transport=smtp:[an.smtp.relay]:366 -o default_transport=smtp:[an.smtp.relay]:366 -o relayhost=[an.smtp.relay]:366 -o smtp_sasl_auth_enable=yes -o smtp_sasl_mechanism_filter=login -o smtp_sasl_password_maps=hash:/etc/postfix/sasl/passwd -o smtp_use_tls=yes -o debug_peer_list=127.0.0.1 localhost:10026 inet n - n - 16 smtpd -o content_filter= -o relay_transport=secure -o default_transport=secure -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_relay_restrictions=permit_mynetworks,reject -o smtpd_recipient_restrictions= -o mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8 and in main.cf i specify content_filter=scan:localhost:10025 for external connections to hit first. so in the normal course of things, mail that passes the filter continues on but mail that does not is shuffled elsewhere to be sent onward to the relayhost. perhaps this is not even the right way to accomplish that. but. i am testing with telnet on :10026 directly to ensure the relay is always used when mail is received there, and it is not: it defaults to the regular mode of transport and looks up MX records for the recipient domain. i've tried variations of these settings to no avail. what fool thing am i doing here? thanks, -jon