Postfix mail_version = 2.3.3

Desired Behavior:
I have a virtual domain, mydomain.com
If Postfix receives a message for <mikeandot...@mydomain.com> I want
to forward the message directly to m...@alum.mit.edu AND
ot...@gmail.com, *NOT* using the AuthSMTP relay.
If Postfix receives a message for any other address, for example
f...@bar.com, 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
mikeandot...@mydomain.com  m...@alum.mit.edu        ot...@gmail.com

################## /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

Reply via email to