From owner-freebsd-net@FreeBSD.ORG Thu May 11 19:12:23 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38C2316A553 for ; Thu, 11 May 2006 19:12:23 +0000 (UTC) (envelope-from b.candler@pobox.com) Received: from proof.pobox.com (proof.pobox.com [207.106.133.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE36543D68 for ; Thu, 11 May 2006 19:12:15 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from proof (localhost [127.0.0.1]) by proof.pobox.com (Postfix) with ESMTP id 101FE243AF; Thu, 11 May 2006 15:12:15 -0400 (EDT) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by proof.sasl.smtp.pobox.com (Postfix) with ESMTP id C8EA42C5B5; Thu, 11 May 2006 15:12:13 -0400 (EDT) Received: from brian by mappit.local.linnet.org with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1FeGa4-0002gw-De; Thu, 11 May 2006 20:12:12 +0100 Date: Thu, 11 May 2006 20:12:12 +0100 From: Brian Candler To: Nash Nipples Message-ID: <20060511191212.GA10296@uk.tiscali.com> References: <20060511130341.GA9353@uk.tiscali.com> <20060511131959.29296.qmail@web36302.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060511131959.29296.qmail@web36302.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: How do i send mail to certain domain users over external smtp using sendmail? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 19:12:26 -0000 On Thu, May 11, 2006 at 06:19:59AM -0700, Nash Nipples wrote: > Upgrade to exim - *any* mail routing policy you can think of can be > implemented in exim. > > lol thanks! i've read about it and i think its awesome but yet i dont > know how do i uninstall sendmail? It's part of the base system, so you just ignore it. 1. Install exim from ports or packages 2. Edit /etc/mail/mailer.conf so that it reads sendmail /usr/local/sbin/exim send-mail /usr/local/sbin/exim mailq /usr/local/sbin/exim # optional extras newaliases /usr/bin/true hoststat /usr/local/sbin/exim_dumpdb /var/spool/exim wait-remote_smtp purgestat /usr/local/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp (I'm not sure if the port does that for you automatically) 3. Edit /etc/rc.conf sendmail_enable="NONE" exim_enable="YES" So whilst this doesn't actually purge your system of the devil-spawn, it does neutralise it :-) The default install works as a basic out-of-the-box sendmail: i.e. it delivers to mbox files /var/mail/foo, honours /etc/aliases and .forward files. You then read the config samples and start tweaking to add whatever features and policies you like. The entire flow-of-control, from accepting mail to delivering it, is soft-coded in the configure file (but it doesn't look like Snoopy swearing) Regards, Brian.