Postfix mail_version = 2.3.3 Desired Behavior: I have a virtual domain, mydomain.com If Postfix receives a message for <[email protected]> I want to forward the message directly to [email protected] AND [email protected], *NOT* using the AuthSMTP relay. If Postfix receives a message for any other address, for example [email protected], I want to use the AuthSMTP relay
Any hints on how to accomplish this in 2.3.3? With the config files below, Postfix always uses AuthSMTP. Thanks! Mike ################## /etc/postfix/virtual [email protected] [email protected] [email protected] ################## /etc/postfix/transport # Use direct transport for sending messages to these domains gmail.com : mit.edu : # For all other domains not matching above, use authenticated mail.authsmtp.com relay * smtp:[mail.authsmtp.com]:2525 ################## /etc/postfix/main.cf virtual_alias_domains = mydomain.com virtual_alias_maps = hash:/etc/postfix/virtual transport_maps = hash:/etc/postfix/transport relayhost = [mail.authsmtp.com]:2525 smtp_connection_cache_destinations = mail.authsmtp.com smtp_sasl_auth_enable = yes smtp_sasl_password_maps = static:secretuser:secretpassword smtp_sasl_security_options = noanonymous
