From owner-freebsd-current Sat Mar 8 8:48:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 288C037B401 for ; Sat, 8 Mar 2003 08:48:11 -0800 (PST) Received: from hun.org (hun.org [216.190.27.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 790AE43FB1 for ; Sat, 8 Mar 2003 08:48:10 -0800 (PST) (envelope-from attila@hun.org) Received: by hun.org (Postfix, from userid 1001) id 5C32957551; Sat, 8 Mar 2003 16:48:08 +0000 (GMT) Date: Sat, 08 Mar 2003 16:48:08 +0000 (GMT) Message-Id: <20030308164808.4GHM65494@hun.org> From: Daniel Flickinger X-Mailer: AttilaMail with XEmacs & Postfix on FreeBSD 5.0-CURRENT X-Ballistic: N 37.218497 W 113.614979 X-Address: 31 N 700 E, St George UT 84770-3028 X-Squawk: (435) 680-0750 X-No-Archive: yes X-Tags: Sanity is the Playground for the Unimaginative In-Reply-To: <20030308151930.GB622@gw.tex.bogus> Cc: FreeBSD-CURRENT To: Nuno Teixeira Subject: sendmail_enable="NONE" doesn't appear in rc.conf Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="text" Content-Transfer-Encoding: 8bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sent: Sat, 8 Mar 2003 15:19:30 +0000 by Nuno Teixeira: + + Hello to all, + + sendmail_enable="NONE" doesn't appear in /etc/defaults/rc.conf. Can + anyone update this file to include "NONE" option? + + Thanke very much, + + Nuno Teixeira Presuming you are running some variant of FreeBSD 5.- and you are intending to disable sendmail, add the following to /etc/rc.conf: ### get rid of sendmail ### mta_start_script="" # 2917: block their startup stealth attack sendmail_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" sendmail_submit_enable="NO" (best not to modify /etc/defaults/rc.conf) and add the following to /etc/make.conf: NO_MAILWRAPPER= YES NO_SENDMAIL= YES I have not checked recently, but 'make installworld' has always trashed files: /usr/sbin/sendmail /usr/bin/mailq /usr/bin/newaliases which, in the default, are symbolic links to /usr/sbin/mailwrapper. Using postfix which installs its own /usr/sbin/sendmail which is a program, not a symbolic link, I: cd /usr/sbin mv sendmail postmail ln -s postmail sendmail which is a lot easier to repair after 'make installworld' trashes /usr/sbin/sendmail (postfix). If you rename postfix' sendmail to postmail, the following script run after 'make installworld' cleans up the failings of installworld to not touch a sendmail clean world: # waste sendmail stomp() { cd ${DESTDIR}/usr/libexec rm -f sendmail/* cd ${DESTDIR}/usr/bin rm -f mailq newaliases ln -s ${DESTDIR}/usr/sbin/sendmail mailq ln -s ${DESTDIR}/usr/sbin/sendmail newaliases cd ${DESTDIR}/usr/sbin rm -f sendmail mailwrapper ln -s postmail sendmail } DESTDIR is normally blank; it is used to build a non '/' based distribution set If you are using an MTA other than postfix, the above is still valid. _theoretically_, you can mix/match and use postfix to receive and sendmail to send, or vice versa, but that is another chapter.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message