From owner-freebsd-questions Tue Mar 6 15: 3:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id EEF0237B71A for ; Tue, 6 Mar 2001 15:03:22 -0800 (PST) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id KAA62408; Wed, 7 Mar 2001 10:03:20 +1100 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id KAA18670; Wed, 7 Mar 2001 10:03:20 +1100 (EST) Message-Id: <200103062303.KAA18670@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alexandre Florio Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: Your message of "Tue, 06 Mar 2001 15:40:02 -0300." <20010306154002.7a6be104.alexandre@cipher.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Mar 2001 10:03:20 +1100 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Does anybody know how can I set up Sendmail to use a specfic interface > (eg., lo) instead of all availables? I will only use Sendmail for internal programs. Yes, though how you do it changes depending on your version of sendmail. I'll assume you're at least running some fairly recent version of sendmail... Prior to 8.10.0, you use the following in your .mc define(`confDAEMON_OPTIONS', `Address=127.0.0.1')dnl In 8.10.0, they introduced the concept of multiple daemons, so they changed the behaviour and the invocation: DAEMON_OPTIONS(`Address=127.0.0.1')dnl Note, though, that sendmail 8.10.0 and onwards also listens on port 587 as well (on all interfaces), unless you also add: FEATURE(`no_default_msa')dnl If you aren't using M4 to generate your sendmail.cf, well you're a glutton for punishment ;-), but for versions prior to 8.10.0 there will be a single line in sendmail.cf with "DaemonPortOptions" in it, probably: #O DaemonPortOptions=Port=esmtp Delete the '#' from the beginning (since it comments out the line), and change it to: O DaemonPortOptions=Port=esmtp, Address=127.0.0.1 In sendmail 8.10.0 and onwards, you want to look for the lines: # SMTP daemon options O DaemonPortOptions=Name=MTA O DaemonPortOptions=Port=587, Name=MSA, M=E Add the "Address=127.0.0.1" parameter to the first, and comment out the second (if you want, or add the same Address parameter to it, or whatever). One option for what you'll finish up with is: # SMTP daemon options O DaemonPortOptions=Name=MTA, Address=127.0.0.1 # O DaemonPortOptions=Port=587, Name=MSA, M=E Cheers, Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message