From owner-freebsd-questions@FreeBSD.ORG Tue Oct 6 13:59:59 2009 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 31A341065744 for ; Tue, 6 Oct 2009 13:59:59 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: from mail-ew0-f207.google.com (mail-ew0-f207.google.com [209.85.219.207]) by mx1.freebsd.org (Postfix) with ESMTP id BB72E8FC1B for ; Tue, 6 Oct 2009 13:59:58 +0000 (UTC) Received: by ewy3 with SMTP id 3so632604ewy.7 for ; Tue, 06 Oct 2009 06:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0vfjSZKbSPAwKvV1lENCwwZIF+bNSJuEWvzjXZi4CoI=; b=exS0r7kE2gfaHtmsjE+ojq1ZVNfUyF/wrAgItDUS0QyqenzxMtnvOdlwQUNlbfeAQl 65sCRY5gkEanR88hfHsMKvGsd0btLiLk1v34fYPDeuyE/RgGqPOsNWpJDTSiPxKLujHL 0/MbM0PziIlcNfsqqyTUGQ877PNAW3QOvCZ+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=RQ0Bf++Pae6OaxY2NcchDhmtP3T//fUQ49NwfmjM6g75rzy1mlckznn4bwtgMU97DY Is4ZGS9l3o0mxoJw6IVNpr32WCQ0d4yOc3R2k+tenuELPc4G17gOxIb+qi5qFiv39RcY OtESm2j+SbswkjQMypbl/7zOPQqkjuBDi/DA0= MIME-Version: 1.0 Received: by 10.216.22.66 with SMTP id s44mr330259wes.87.1254837597619; Tue, 06 Oct 2009 06:59:57 -0700 (PDT) In-Reply-To: <200910060726.n967QbeR052742@lurza.secnetix.de> References: <200910060726.n967QbeR052742@lurza.secnetix.de> Date: Tue, 6 Oct 2009 08:59:57 -0500 Message-ID: From: Don Wilde To: freebsd-questions@freebsd.org, dwilde1@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: sendmail CLIENT_OPTIONS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dwilde1@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 13:59:59 -0000 On Tue, Oct 6, 2009 at 2:26 AM, Oliver Fromme wrot= e: > Don Wilde wrote: > =A0> I am setting up the sendmail on my 7.2-STABLE system, and I cannot g= et > =A0> it to listen to my live server address besides the localhost. > =A0> > =A0> I've added > =A0> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CLIENT_OPTION= S(`Family=3Dinet, > =A0> Addr=3D64.156.192.103, Name=3DMTA')dnl > =A0> > =A0> directly above the DAEMON_OPTIONS lines (after the FEATUREs), > =A0> recompiled with make -C, and copied the domain-specific cf to > =A0> sendmail.cf. > > You do not have to add anything to your .mc/.cf file. > Just be sure to have this line in /etc/rc.conf: > > sendmail_enable=3D"YES" > > then restart sendmail, and it will listen on all interfaces. > > =A0> Sendmail starts correctly, so the m4 compilation was successful, but > =A0> it is still only listening on 127.0.0.1:25 according to netstat -atn= . > > It's better to use "sockstat -l | grep sendmail". > It lists user, command and PID along with the IP address > ("*" if all addresses) and port number, so you can easily > match it with output from ps or top, using the PID number. > > If sendmail is listening only on localhost, it usually > means that you don't have sendmail_enable=3D"YES" in rc.conf. > In that case, the default is to run sendmail only on the > localhost interface, so that local mail delivery does work > (e.g. output mailed from cron jobs). > > A common error is to put an entry at the top of rc.conf, > not noticing that another entry further down the file > overrides it. =A0The last entry takes effect. =A0For example, > if you have sendmail_enable=3D"YES" at the top, but there's > sendmail_enable=3D"NO" somewhere near the end of the file, > then the latter will take effect. > > "grep sendmail /etc/rc.conf" will tell you the truth. > > After any changes, don't forget to restart sendmail: > "/etc/rc.d/sendmail restart" > > If you're extra paranoid, first do only "stop" instead of > "restart", then verify that no sendmail processes are > running, then perform the "start". > > Best regards > =A0 Oliver > Oliver, Gorgios, Bernt - You all hit the nail right on the head. I had added the sendmail_enable line before, but in my pushing and shoving in emacs I seem to have deleted it again. Many thanks to all of you for your patience and support! :D --=20 -- Don Wilde " Engineering the Future " http://www.EngineeringJobFuture.com