From owner-freebsd-questions@FreeBSD.ORG Thu Oct 4 15:28:56 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 9778316A419 for ; Thu, 4 Oct 2007 15:28:56 +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 13C9913C465 for ; Thu, 4 Oct 2007 15:28:55 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l94FRseh014531 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 4 Oct 2007 18:28:30 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l94FRWeN006933; Thu, 4 Oct 2007 18:27:50 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l94FRQ46006932; Thu, 4 Oct 2007 18:27:26 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 4 Oct 2007 18:27:25 +0300 From: Giorgos Keramidas To: Rob Message-ID: <20071004152725.GA6868@kobe.laptop> References: <4703D9D0.6030900@gmail.com> <47048068.4090806@infracaninophile.co.uk> <4704F983.1060400@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4704F983.1060400@gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.978, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.42, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: FreeBSD Questions Subject: Re: Sendmail IP interface assignment -- how to? 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: Thu, 04 Oct 2007 15:28:56 -0000 On 2007-10-04 10:32, Rob wrote: >Matthew Seaman wrote: >> You also need: >> FEATURE(no_default_msa) >> otherwise, you're definitely heading in the right direction. > > Thanks, Matthew! That was the piece I was missing. I tried my > Daemon_Options above, but found out its presence does not disable the > default config to listen on all interfaces. I got it working by > directly editing the .cf, but your trick does it from the macro > config. > > The final result ended up as: > FEATURE(no_default_msa)dnl # turn off MSA on all ports; only ue what's in Daemon_Options > DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA') > DAEMON_OPTIONS(`Port=smtp,Addr=172.23.23.10,Name=MTA') > DAEMON_OPTIONS(`Port=2525,Addr=172.23.23.10,Name=MTA')dnl # smtp on alt port > DAEMON_OPTIONS(`Port=587,Addr=127.0.0.1,Name=MSA,M=E') > > Once I knew the right keywords to google, I found this article that might > be of use to others: "Five Tips for a Better sendmail Configuration" > http://www.onlamp.com/pub/a/onlamp/2004/01/15/sendmail.html?page=1 Interesting bit of online posting, but watch out for misinformation or even outdated information though. The article may seem useful for `no_default_msa', but it also contains a wealth of bogus stuff like: "There are good reasons to compile your own copy of sendmail instead of using the copy provided to you as part of your Unix distribution. First, the copy of sendmail included in your Unix distribution is probably grossly out of date. sendmail changes frequently, and some of these changes provide critical security fixes. Sticking with an outdated copy of sendmail is just asking for trouble." In the case of FreeBSD, this is usually wrong, and bad advice. We have a pretty active Sendmail maintainer, Gregory Shapiro, who is also part of the Sendmail development team. Whenever a new release of Sendmail is out, Mr. Shapiro updates the Sendmail version of FreeBSD-CURRENT and after a reasonable amount of testing (usually a few days, to make sure nothing was broken) "backports" the upgraded version to FreeBSD-STABLE. The quoted paragraph may be true for a semi-random Linux distribution, but this is FreeBSD; we don't usually do stuff by "manually compiling and merrily hacking away at whatever we fancied this afternoon" :-) Just $0.02 of a long-time Sendmail fan, - Giorgos