sendmail should not bind to loopback only

Wouter Oosterveld wouter at fizzyflux.nl
Mon Feb 4 12:20:56 UTC 2008


Hello,

I'm experiencing a weird problem with sendmail on a FreeBSD
6.3-RELEASE machine (Dell PE2950 AMD64). Sendmail seems to only bind
to the loopback device while not explicitly configured. I copied the
config from an 5.3-RELEASE-p9 machine.

I ofcourse checked the change log of sendmail, /usr/src/UPDATING, the
batbook and google.

Does anyone have an idea what is causing this?

Thanks in advance,

Wouter Oosterveld

sockstat:

(12:46:38)[root at canoe] ~ # sockstat -4l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
(...)
root     sendmail   1205  4  tcp4   127.0.0.1:25          *:*
(...)

config sendmail.mc:

VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.4 2007/11/22
16:20:01 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(`greet_pause',700)
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl INPUT_MAIL_FILTER(`spamassassin',
`S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
dnl define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name},
{if_name}, {if_addr}')dnl
define(`confCW_FILE', `-o /etc/mail/local-host-names')
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`dnsbl',`zen.spamhaus.org')dnl
FEATURE(`delay_checks', `friend')dnl
define(`confME_TOO', `false')dnl
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
MAILER(local)
MAILER(smtp)

grep -i 'o daemon' /etc/mail/sendmail.cf:
O DaemonPortOptions=Name=IPv4, Family=inet
O DaemonPortOptions=Name=IPv6, Family=inet6, Modifiers=O
O DaemonPortOptions=Port=587, Name=MSA, M=E


More information about the freebsd-questions mailing list