| |||||||||||||||||||||||||||||||
|
> > Yes, transport_maps is the right tool for this. Enclose an IP > > address in brackets [...] to disable DNS lookups. > > # transport for all mail addressed to example2.com > > example2.com relay:[10.10.10.12]:2525 > > # or for a single user transport override: > > user2 relay:[10.10.10.12]:2525 > > > I didn't know a transport map could specify a port. The transport table specifies a transport and nexthop, the meaning of the nexthop is transport specific. The smtp(8) delivery agent (used with the "relay" transport) supports an optional ":port" extension after the domain/gateway part of the nexthop: http://www.postfix.org/smtp.8.html SMTP DESTINATION SYNTAX SMTP destinations have the following form: domainname domainname:port Look up the mail exchangers for the specified domain, and connect to the specified port (default: smtp). [hostname] [hostname]:port Look up the address(es) of the specified host, and connect to the specified port (default: smtp). [address] [address]:port Connect to the host at the specified address, and connect to the specified port (default: smtp). An IPv6 address must be formatted as [ipv6:address]. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majordomo?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com