Re: Running on different port with ASMTP

Andreas Metzler <[email protected]> Sun, 23 Jan 2005 09:42:44 +0100
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <[email protected]>
On 2005-01-23 Matt <[email protected]> wrote:
> I beleive I can get Exim to run on both port 25 and 2500 with this setting.

> daemon_smtp_ports = 25 : 2500
> acl_smtp_rcpt = check_recipient
> acl_smtp_data = check_message

> Now my other question is can I enable ASMTP on port 2500 but not support it 
> on port 25?  When a user connects to port 25 and tries AUTH I want to 
> refuse it.  When they connect on port 2500 I want to allow it.

> Any easy way to do that?

Yes. It is the third option described in
http://www.exim.org/exim-html-4.40/doc/html/spec_33.html#SECT33.1

| server_advertise_condition
| Type:  string, expanded
| Default:  unset
| 
| When a server is about to advertise an authentication mechanism,
| the condition is expanded. If it yields the empty string, “0”,
| “no”, or “false”, the mechanism is not advertised. If the
| expansion fails, the mechanism is not advertised. If the failure
| was not forced, and was not caused by a lookup defer, the incident
| is logged. See section 33.3 below for further discussion.

Set this option on the authenticators, with a a expansion checking
$interface_port
               cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/