From owner-freebsd-questions@FreeBSD.ORG Tue Feb 14 05:12:39 2012 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 3E58B1065670 for ; Tue, 14 Feb 2012 05:12:39 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id B125E8FC12 for ; Tue, 14 Feb 2012 05:12:38 +0000 (UTC) Received: from kw.news4all.se (c80-217-70-175.bredband.comhem.se [80.217.70.175]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id q1E5CaEs037215; Tue, 14 Feb 2012 06:12:36 +0100 (CET) (envelope-from bah@bananmonarki.se) Message-ID: <4F39ED2B.5010707@bananmonarki.se> Date: Tue, 14 Feb 2012 06:12:11 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: Matthew Seaman References: <4F39278A.8040502@bananmonarki.se> <4F392C2D.70900@infracaninophile.co.uk> In-Reply-To: <4F392C2D.70900@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Using sendmail as a client with auth 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: Tue, 14 Feb 2012 05:12:39 -0000 2012-02-13 16:28, Matthew Seaman skrev: Thank you for your answer. > On 13/02/2012 15:08, Bernt Hansson wrote: >> Is this is OT then i'm sorry. >> >> Trying to get sendmail act as a mua, following this tutorial >> >> http://www.sendmail.org/~ca/email/auth.html >> >> Scroll down a bit to Using send.... >> >> Is it really necessary to install cycrus-sasl2? >> >> How do one make sendmail to pick sasl2 up when building sendmail. >> Is there a make.conf line I must add? When telnetting auth works >> but using telnet to send mail has a very low WAF. >> >> I've installed cyrus-sasl2 but then what. > > Yes -- you do need cyrus-sasl2 for this purpose. > > To build sendmail with SASL, either use the ports version in > mail/sendmail, where you can select SASL as one of the options, > or add: > > SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 > SENDMAIL_LDFLAGS=-L/usr/local/lib > SENDMAIL_LDADD=-lsasl2 > > to /etc/make.conf -- see /usr/share/examples/etc/make.conf for more > details. This will give you a SASL-enabled base system sendmail once > you rebuild it. Is that rebuild as in cd /usr/src && make buildworld or cd /usr/src/usr.sbin/sendmail && make > Note that the second choice makes your base system dependent on stuff > external to it, which may or may not be desirable. > > Oh, and before anyone else chimes in with a knee-jerk reaction about > using sendmail: there are other MTAs that can provide this > functionality. As an alternative, either postfix or exim could do what > you want too. Sendmail works just fine for me though. > > Cheers, > > Matthew >