From owner-freebsd-questions@FreeBSD.ORG Sat Dec 29 09:01:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E1E416A417 for ; Sat, 29 Dec 2007 09:01:31 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 9910713C455 for ; Sat, 29 Dec 2007 09:01:29 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (ppp15-213.adsl.forthnet.gr [62.1.238.213]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lBT91Eqh016068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 29 Dec 2007 11:01:22 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id lBT919lk001978; Sat, 29 Dec 2007 11:01:09 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id lBT919cP001977; Sat, 29 Dec 2007 11:01:09 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 29 Dec 2007 11:01:08 +0200 From: Giorgos Keramidas To: Andrew Falanga Message-ID: <20071229090108.GA1816@kobe.laptop> References: <200712281033.40654.af300wsm@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200712281033.40654.af300wsm@gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.127, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.27, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: How to make sendmail listen on an address other than the loopback X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2007 09:01:31 -0000 On 2007-12-28 10:33, Andrew Falanga wrote: > Hi, > I'm trying to get an e-mail system working for my church > (whitneybaptist.org). I've added a file called local-host-names in > /etc/mail as described in the Handbook, then did "/etc/rc.d/sendmail > restart" and then did "sockstat | grep sendmail" and got the following > results: > > root sendmail 32889 3 tcp4 127.0.0.1:25 *:* > root sendmail 32889 4 dgram -> /var/run/logpriv > smmsp sendmail 696 3 dgram -> /var/run/log > > Now, with the exception of the additional file, nothing has been done > to this stock sendmail configuration (system is 6.2-RELEASE-p7). How > would I make sendmail listen on the ip of 192.168.2.23? I do have > some experience with sendmail, however, it was several years ago and > I've forgotten quite a bit. Why isn't it listening on that address > now? What you see is `normal' for a host which supports local email delivery and forwards everything else to another `smart host'. If you want to start a listener which also accepts email from the network (instead of a listener only for 127.0.0.1 like the one you have now), you will have to tweak the `sendmail_xxx_enable' options in your `/etc/rc.conf' file. Right now, you probably have something like: sendmail_enable="NO" sendmail_submit_enable="YES" sendmail_msp_queue_enable="YES" To run the sendmail daemon for inbound email connections on all network interfaces, you need sendmail_enable="YES", and then you can drop the line for the `submit' daemon: sendmail_enable="YES" sendmail_msp_queue_enable="YES" Note: For more details about these `rc.conf' variables, it may be useful to read the rc.sendmail(5) manpage.