Page 1 of 1

SMTP Authentication not working?

Posted: Mon Nov 19, 2007 6:49 pm
by ddenton
Hello Forum.I'm configuring a new test installation and I've run into a problem getting SMTP authentication working. Spamassassin in installed, and sendmail is listening.

Here's the pertinent section of my smtpd.cfg file:

Code: Select all

# NB Authenticated RELAYs are always allowed
SMTPFILTER=TRUE
RELAY accept 127.0.0.1
RELAY accept .mydomain.local
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*

# The following group sets the configuration for the submission listener
# This listener is only active if SUBMIT=ON is above
# By default it binds to port 587
[SUBMIT]
#LISTEN=localhost:587
# Reject all anonymous connections
AUTH_MISMATCH Log_Reject ALL
ANONYMOUS Reject .mydomain.local
ANONYMOUS Reject 192.168.100.223


With the above configuration, I can still telnet from a command prompt on a windows box to the server on port 25 and submit an email, without any message regarding authentication, as stated in the setup doc. Where have I gone wrong?

Thanks in advance...

Posted: Mon Nov 19, 2007 6:51 pm
by ddenton
And for the record, the box I'm connecting from by command prompt is 192.168.100.223, hence the rule.

Posted: Tue Nov 20, 2007 4:32 am
by Valerion
Your AUTH rules are in the [SUBMIT] section, therefore only takes effect if you are telnetting to port 587 (and if the SUBMISSION listener is enabled). Move them to just under the "SMTPFILTER" setting.

Also, if your machine you are working from is in the .mydomain.local domain and there is a PTR record for it, it will match the "RELAY accept" rule and you can send through the server.

Posted: Tue Nov 20, 2007 10:51 am
by ddenton
Thanks Valerion. That did the trick...