From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 11:33:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ACBB16A4C0 for ; Thu, 21 Aug 2003 11:33:42 -0700 (PDT) Received: from lakemtao03.cox.net (lakemtao03.cox.net [68.1.17.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4237143F3F for ; Thu, 21 Aug 2003 11:33:41 -0700 (PDT) (envelope-from rjhjr@cox.net) Received: from kongemord.krig.net ([68.100.111.121]) by lakemtao03.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with SMTP id <20030821183339.KXP10977.lakemtao03.cox.net@kongemord.krig.net> for ; Thu, 21 Aug 2003 14:33:39 -0400 Received: by kongemord.krig.net (sSMTP sendmail emulation); Thu, 21 Aug 2003 14:33:40 -0400 From: "Bob Hall" Date: Thu, 21 Aug 2003 14:33:40 -0400 To: freebsd-questions@freebsd.org Message-ID: <20030821183339.GB359@kongemord.krig.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <200308210924.h7L9Owew000703@ice.nodomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308210924.h7L9Owew000703@ice.nodomain> User-Agent: Mutt/1.4.1i Subject: Re: SMTP attempt? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 18:33:42 -0000 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