Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2003 14:33:40 -0400
From:      "Bob Hall" <rjhjr@cox.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: SMTP attempt?
Message-ID:  <20030821183339.GB359@kongemord.krig.net>
In-Reply-To: <200308210924.h7L9Owew000703@ice.nodomain>
References:  <200308210924.h7L9Owew000703@ice.nodomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 21, 2003 at 02:24:58AM -0700, Dan Strick wrote:
> >>>>>>>>>>
> > I've been noticing a lot of the following the last week:
> > Aug 21 01:00:01 kongemord /kernel: Connection attempt to TCP 127.0.0.1:25
> > from 127.0.0.1:1074
> > 
> > I can't figure out what's trying to connect to the SMTP port. I've got 
> > sendmail turned off, so there's nothing listening at port 25. 
> > 
> > Bob Hall
> >>>>>>>>>>
> 
> Recent sendmail configurations route all local email through the sendmail
> daemon that usually listens on port 25.  There was a "security" reason
> for the change.  Since local email is essential, for example for reporting
> the results of the "daily" scripts run out of crontab, you should either
> reenable your sendmail daemon on port 25 or reconfigure your local email
> to not route everything through the daemon.  There are instructions
> for doing this somewhere in the sendmail documentation.  I think it
> involves hacking /etc/mail/submit.cf.

Thanks Dan. I've changed 
	sendmail_enable="NONE"
to NO and added
	sendmail_submit_enable="YES"
>From the rc.conf man page, I think that enables listening at localhost.
At reboot, I got 
	sendmail-clientmqueue
so I think I need to add
	sendmail_outbound_enable="NO"
to rc.conf, since I'm not queuing outbound mail. The man page is a bit 
cryptic, so someone tell me if I'm wrong.
 
> Note: the sendmail binary that comes with FreeBSD was built with libwrap.a
> support.  That means it obeys /etc/hosts.allow and can be told to reject
> all non-local connections to port 25.

sendmail : localhost : allow
sendmail : ALL : deny

Thanks again.
Bob Hall



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030821183339.GB359>