On Thu, 13 Aug 2009 17:33:05 -0500
Noel Jones <njo...@megan.vbhcs.org> wrote:

> Dan Farrell wrote:
> > hi all,
> > 
> > I am hoping to relay mail for a friend's home server, which can't
> > use external port 25.  I was hoping to define a hash somewhere for
> > relay recipients something like:
> > 
> > relay-domain.com smtp:relay-host.com:2525
> > 
> > where mail forwarded to addresses @relay-domain.com are relayed to
> > relay-host.com on port 2525. 
> 
> http://www.postfix.org/postconf.5.html#transport_maps
> http://www.postfix.org/transport.5.html
> 

Thank you, Noel Jones, for your help in this matter; transport_maps was
exactly what I wanted.  



For the purposes of documentation: 

IF your server listed as the MX record for relayed-domain.com, should
relay mail to relayed-domain.com:2525, then you should use the main.cf
line

transport_maps hash:transports

and the transports file contains:

relayed-domain.com      smtp:[relayed-domain.com]:2525

the [] are required to avoid mail loops since the mailserver you're
configuring is listed as MX for relayed-domain.com.  


Hope it can help somebody.  

Reply via email to