Re: Running on different port with ASMTP

"Matt" <[email protected]> Sun, 23 Jan 2005 15:29:33 -0600
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <003c01c50192$a174b340$04000100@matthew>
>> 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

In my authenticators section I have this.

begin authenticators

#plain:
#    driver = plaintext
#    public_name = PLAIN
#    server_condition = "${perl{smtpauth}}"
#    server_set_id = $2

#login:
#    driver = plaintext
#    public_name = LOGIN
#    server_prompts = "Username:: : Password::"
#    server_condition = "${perl{smtpauth}}"
#    server_set_id = $1

I commented it all out to disable advertising or support authentication. 
Instead I would like to only support authentication on port 2500.  How do I 
apply that to this?

Matthew