smtpd questions
Posted: Fri Feb 01, 2008 12:59 pm
I did an lsof -i:25 and got this output - problem with the last connection? Also why do I have the second interface (10.48.x.x) on this box listening on port 25? And what is the last line from???? should I have uncommented SUBMIT=ON?
[root@mailpa scripts]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 349 root 4u IPv4 1066048 TCP localhost.localdomain:smtp (LISTEN)
omsmtpd 16993 root 4u IPv4 39614100 TCP mailpa.maindomain.com:smtp (LISTEN)
omsmtpd 16993 root 5u IPv4 39614101 TCP backup.maindomain.com:smtp (LISTEN)
omsmtpd 16993 root 15u IPv4 39614750 TCP
mailpa.maindomian.com:smtp->240.sub-75-201-20.myvzw.com:49186 (ESTABLISHED)
[root@mailpa scripts]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.49.1.xxx mailpa.maindomaincom mailpa
10.48.1.xxx backup.maindomain.com backup
The smtpd.cfg file:
EXTENSIONS=AUTH,DSN,8BITMIME
GREETING=SMTPd
# Uncomment the following lines to enable the Submission and LMTP listeners
#SUBMIT=ON
#LMTP=ON
DEBUG_LOG=FALSE
# NB Authenticated RELAYs are always allowed
SMTPFILTER=TRUE
RELAY accept 127.0.0.1
RELAY accept .maindomain.com
AUTH_SUCCESS Accept ALL
AUTH_MISMATCH Log_Reject ALL
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]
CATCH @maindomain.com catchall@maindomain.com
CATCH @olddomain.com catchall@maindomain.com
#LISTEN=localhost:587
# Reject all anonymous connections
ANONYMOUS Log_Reject ALL
# The following group sets the configuration for the lmtp listener
# This listener is only active if LMTP=ON is above
[LMTP]
LISTEN=localhost:24
# Use the following line to listen on a unix domain socket
#LISTEN=~/tmp/lmtp.unix
We are also having slowness when sending mail through Scalix as outgoing server.
I need to be sure I have smtpd setup correctly, that it is not an open relay and it is not a bottleneck for users to send mail out via the Internet. We want them to have to authenticate as valid users to use it as a relay.
[root@mailpa scripts]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 349 root 4u IPv4 1066048 TCP localhost.localdomain:smtp (LISTEN)
omsmtpd 16993 root 4u IPv4 39614100 TCP mailpa.maindomain.com:smtp (LISTEN)
omsmtpd 16993 root 5u IPv4 39614101 TCP backup.maindomain.com:smtp (LISTEN)
omsmtpd 16993 root 15u IPv4 39614750 TCP
mailpa.maindomian.com:smtp->240.sub-75-201-20.myvzw.com:49186 (ESTABLISHED)
[root@mailpa scripts]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.49.1.xxx mailpa.maindomaincom mailpa
10.48.1.xxx backup.maindomain.com backup
The smtpd.cfg file:
EXTENSIONS=AUTH,DSN,8BITMIME
GREETING=SMTPd
# Uncomment the following lines to enable the Submission and LMTP listeners
#SUBMIT=ON
#LMTP=ON
DEBUG_LOG=FALSE
# NB Authenticated RELAYs are always allowed
SMTPFILTER=TRUE
RELAY accept 127.0.0.1
RELAY accept .maindomain.com
AUTH_SUCCESS Accept ALL
AUTH_MISMATCH Log_Reject ALL
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]
CATCH @maindomain.com catchall@maindomain.com
CATCH @olddomain.com catchall@maindomain.com
#LISTEN=localhost:587
# Reject all anonymous connections
ANONYMOUS Log_Reject ALL
# The following group sets the configuration for the lmtp listener
# This listener is only active if LMTP=ON is above
[LMTP]
LISTEN=localhost:24
# Use the following line to listen on a unix domain socket
#LISTEN=~/tmp/lmtp.unix
We are also having slowness when sending mail through Scalix as outgoing server.
I need to be sure I have smtpd setup correctly, that it is not an open relay and it is not a bottleneck for users to send mail out via the Internet. We want them to have to authenticate as valid users to use it as a relay.