Date: Sat, 08 Mar 2003 16:48:08 +0000 (GMT) From: Daniel Flickinger <attila@hun.org> To: Nuno Teixeira <nunotex@aeiou.pt> Cc: FreeBSD-CURRENT <current@freebsd.org> Subject: sendmail_enable="NONE" doesn't appear in rc.conf Message-ID: <20030308164808.4GHM65494@hun.org> In-Reply-To: <20030308151930.GB622@gw.tex.bogus>
next in thread | previous in thread | raw e-mail | index | archive | help
  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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030308164808.4GHM65494>
