Sendmail not listening correctly

Mike Loiterman mike at ascendency.net
Tue Sep 20 09:16:12 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Altering cf files directly is frowned upon.  I can't help you there.

Sorry, that's what I meant.  I was editing the .mc files.

> Make sure there is no sendmail listening (port 25 or 587).

Here's what I did:

1.  Killed all sendmail processes
# killall -9 sendmail
#

2.  Wiped out all custom sendmail config files and created fresh clean
standard ones.
# rm hostname.*
# make all

2.  Listed everything before starting up sendmail
# netstat -naf inet 
 Active Internet connections (including servers) 
 Proto Recv-Q Send-Q  Local Address          Foreign Address        (state) 
 tcp4       0      0  192.168.1.22.22        192.168.1.3.4154
ESTABLISHED 
 tcp4       0      0  *.993                  *.*                    LISTEN 
 tcp4       0      0  *.143                  *.*                    LISTEN 
 tcp4       0      0  *.995                  *.*                    LISTEN 
 tcp4       0      0  *.110                  *.*                    LISTEN 
 tcp4       0      0  *.139                  *.*                    LISTEN 
 tcp4       0      0  127.0.0.1.783          *.*                    LISTEN 
 tcp4       0      0  *.3306                 *.*                    LISTEN 
 tcp46      0      0  *.80                   *.*                    LISTEN 
 tcp4       0      0  *.22                   *.*                    LISTEN 
 udp4       0      0  192.168.1.22.138       *.* 
 udp4       0      0  192.168.1.22.137       *.* 
 udp4       0      0  *.138                  *.* 
 udp4       0      0  *.137                  *.* 
 udp4       0      0  127.0.0.1.123          *.* 
 udp4       0      0  192.168.1.22.123       *.* 
 udp4       0      0  *.123                  *.* 
 udp4       0      0  *.514                  *.* 

I don't see anything that should conflict.  Do you?


3.  Started sendmail
# cd /etc/mail
# make start

4.  Listed everything after starting sendmail
# netstat -naf inet 
 Active Internet connections (including servers) 
 Proto Recv-Q Send-Q  Local Address          Foreign Address        (state) 
 tcp4       0      0  127.0.0.1.62121        127.0.0.1.25           SYN_SENT

 tcp4       0      0  *.25                   *.*                    CLOSED 
 tcp4       0      0  192.168.1.22.22        192.168.1.3.4154
ESTABLISHED 
 tcp4       0      0  *.993                  *.*                    LISTEN 
 tcp4       0      0  *.143                  *.*                    LISTEN 
 tcp4       0      0  *.995                  *.*                    LISTEN 
 tcp4       0      0  *.110                  *.*                    LISTEN 
 tcp4       0      0  *.139                  *.*                    LISTEN 
 tcp4       0      0  127.0.0.1.783          *.*                    LISTEN 
 tcp4       0      0  *.3306                 *.*                    LISTEN 
 tcp46      0      0  *.80                   *.*                    LISTEN 
 tcp4       0      0  *.22                   *.*                    LISTEN 
 udp4       0      0  192.168.1.22.138       *.* 
 udp4       0      0  192.168.1.22.137       *.* 
 udp4       0      0  *.138                  *.* 
 udp4       0      0  *.137                  *.* 
 udp4       0      0  127.0.0.1.123          *.* 
 udp4       0      0  192.168.1.22.123       *.* 
 udp4       0      0  *.123                  *.* 
 udp4       0      0  *.514                  *.* 

5.  Checked /var/log/maillog to find the same errors:
# tail -f /var/log/maillog 
 Sep 20 11:09:40 eisenhower sm-mta[2461]: starting daemon (8.13.3):
SMTP+queueing at 00:30:00 
 Sep 20 11:09:40 eisenhower sm-mta[2461]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use 
 Sep 20 11:09:40 eisenhower sm-mta[2461]: daemon MTA: problem creating SMTP
socket 
 Sep 20 11:09:40 eisenhower sm-msp-queue[2464]: starting daemon (8.13.3):
queueing at 00:30:00 
 Sep 20 11:09:45 eisenhower sm-mta[2461]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use 
 Sep 20 11:09:45 eisenhower sm-mta[2461]: daemon MTA: problem creating SMTP
socket 
 Sep 20 11:09:50 eisenhower sm-mta[2461]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use 
 Sep 20 11:09:50 eisenhower sm-mta[2461]: daemon MTA: problem creating SMTP
socket 
 Sep 20 11:09:55 eisenhower sm-mta[2461]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use 
 Sep 20 11:09:55 eisenhower sm-mta[2461]: daemon MTA: problem creating SMTP
socket 
 Sep 20 11:10:00 eisenhower sm-mta[2461]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use 
 Sep 20 11:10:00 eisenhower sm-mta[2461]: daemon MTA: problem creating SMTP
socket 

This is my hostname.mc file:
divert(0) 
 VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 21:15:09
gshapiro Exp $') 
 OSTYPE(freebsd5) 
 DOMAIN(generic) 
  
 FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access') 
 FEATURE(blacklist_recipients) 
 FEATURE(local_lmtp) 
 FEATURE(mailertable, `hash -o /etc/mail/mailertable') 
 FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') 
  
 dnl Uncomment to allow relaying based on your MX records. 
 dnl NOTE: This can allow sites to use your server as a backup MX without 
 dnl       your permission. 
 dnl FEATURE(relay_based_on_MX) 
  
 dnl DNS based black hole lists 
 dnl -------------------------------- 
 dnl DNS based black hole lists come and go on a regular basis 
 dnl so this file will not serve as a database of the available servers. 
 dnl For that, visit 
 dnl
http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/ 
  
 dnl Uncomment to activate Realtime Blackhole List 
 dnl information available at http://www.mail-abuse.com/ 
 dnl NOTE: This is a subscription service as of July 31, 2001 
 dnl FEATURE(dnsbl) 
 dnl Alternatively, you can provide your own server and rejection message: 
 dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from "
$&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?"
$&{client_addr}') 
  
 dnl Dialup users should uncomment and define this appropriately 
 dnl define(`SMART_HOST', `your.isp.mail.server') 
  
 dnl Uncomment the first line to change the location of the default 
 dnl /etc/mail/local-host-names and comment out the second line.
 dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') 
 define(`confCW_FILE', `-o /etc/mail/local-host-names') 
  
 dnl Enable for both IPv4 and IPv6 (optional) 
 DAEMON_OPTIONS(`Name=IPv4, Family=inet') 
 DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') 
  
 define(`confBIND_OPTS', `WorkAroundBrokenAAAA') 
 define(`confNO_RCPT_ACTION', `add-to-undisclosed') 
 define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') 
 MAILER(local) 
 MAILER(smtp) 

This is starting to get frustrating...

- ------------------------------
Mike Loiterman
grantADLER
Tel: 630-302-4944
Fax: 773-442-0992
Email: mike at ascendency.net
PGP Key: 0xD1B9D18E


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2424)
Comment: Secured by PGP 9.0.2

iQA/AwUBQzA1xmjZbUnRudGOEQJvMwCeIkG/S3dYHf+FDOrWCuxdcqslyGQAn3Ul
oukDl2hbvgs6aol3ZgtBvpQ2
=6GZl
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list