Re: [exim] SMTP - set port and auth

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: Kevin Landers
CC: Exim-users
Subject: Re: [exim] SMTP - set port and auth
On 2009-04-10 at 07:50 -0400, Kevin Landers wrote:
> send_upstream:
> driver = manualroute
> transport = remote_smtp
> route_list = !+local_domains mail.domain.com:1234


> route_list = !+local_domains mail.domain.com:1234


That specifies a that for non-local domains, two hosts should be tried
in order; the first is "mail.domain.com" and the second is "1234".

Note that "domain.com" is a real domain and mail.domain.com exists.
"example.com" is reserved for use in examples.

> is apparently not the way to do this. So, what is the proper way?


You set the port on the transport. Use a custom transport for this.
Copy the remote_smtp transport as a starting point.

# ... Routers ...

send_upstream:
driver = manualroute
domains = !+local_domains
transport = upstream_transport
route_data = mail.example.com

# ... other routers
begin transports

upstream_transport:
driver = smtp
port = 1234

#...