On Tue, 15 Dec 2009, Michael Matczynski wrote:

> 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.
> 
> ################## /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
> * smtp:[mail.authsmtp.com]:2525
> 
> ################## /etc/postfix/main.cf

In the future, please include the output of 'postconf -n' rather than
cut-and-pasting your main.cf.

> transport_maps = hash:/etc/postfix/transport
> relayhost = [mail.authsmtp.com]:2525

Try removing this relayhost definition; it is redundant since you are
already using a wildcard in your transport_maps to route mail to
authsmtp.com.

-- 
Sahil Tandon <sa...@tandon.net>

Reply via email to