From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 20:15:26 2011 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 2ADD2106564A for ; Wed, 20 Apr 2011 20:15:26 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id F2A988FC08 for ; Wed, 20 Apr 2011 20:15:25 +0000 (UTC) Received: by iyj12 with SMTP id 12so1245666iyj.13 for ; Wed, 20 Apr 2011 13:15:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.215.93 with SMTP id hd29mr6144869ibb.174.1303329016437; Wed, 20 Apr 2011 12:50:16 -0700 (PDT) Sender: aimass@yabarana.com Received: by 10.231.38.7 with HTTP; Wed, 20 Apr 2011 12:50:16 -0700 (PDT) In-Reply-To: <201104201847.p3KIlapX097441@dc.cis.okstate.edu> References: <201104201847.p3KIlapX097441@dc.cis.okstate.edu> Date: Wed, 20 Apr 2011 15:50:16 -0400 X-Google-Sender-Auth: 18dbqW90Pem9PtJfOWmTherKH7U Message-ID: From: Alejandro Imass To: Martin McCormick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Modifying Sendmail's Configuration the Correct way. 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: Wed, 20 Apr 2011 20:15:26 -0000 On Wed, Apr 20, 2011 at 2:47 PM, Martin McCormick wrote: > =A0 =A0 =A0 =A0The /etc/mail/sendmail.cf file very clearly tells one > not to edit it directly so I edited the Hey Martin, this might not be the exact answer you're looking for but I despise sendmail but *love* FreeBSD so here are my $0.02: 1) edit your /etc/rc.conf sendmail_enable=3D"NO" sendmail_submit_enable=3D"NO" sendmail_outbound_enable=3D"NO" sendmail_msp_queue_enable=3D"NO" postfix_enable=3D"YES" 2) cd /usr/ports/mail/postfix make install clean Play close attention to all messages, remember to regenerate the aliases with newalias and let the script modify your mailer.conf to enable postfix and say yes. In case you forget here is my /etc/mail/mailer.conf # Execute the Postfix sendmail program, named /usr/local/sbin/sendmail # sendmail /usr/local/sbin/sendmail send-mail /usr/local/sbin/sendmail mailq /usr/local/sbin/sendmail newaliases /usr/local/sbin/sendmail then /usr/local/etc/rc.d/postfix start Enjoy! http://www.postfix.org There have been many requests to let us choose our favorite MTA for the base system. It seems things are moving in that direction since you will notice an option in the make config of the newer postfix versions it says to install postfix in the base. Right now I would avoid this, (other maybe other can comment more on this option) but hopefully in the future those of use that don't like sendmail can avoid it's use. best, Alejandro Imass