From owner-freebsd-questions@FreeBSD.ORG Mon Feb 13 16:35:22 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 49B841065670 for ; Mon, 13 Feb 2012 16:35:22 +0000 (UTC) (envelope-from nzp@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4DD8FC12 for ; Mon, 13 Feb 2012 16:35:21 +0000 (UTC) Received: from fulvetta.riseup.net (fulvetta-pn.riseup.net [10.0.1.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B4D3E6166F for ; Mon, 13 Feb 2012 08:35:21 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nzp@fulvetta.riseup.net) with ESMTPSA id 863C216D Date: Mon, 13 Feb 2012 17:35:16 +0100 From: Nikola =?utf-8?B?UGF2bG92acSH?= To: freebsd-questions@freebsd.org Message-ID: <20120213163516.GA9706@sputnjik.localdomain> Mail-Followup-To: freebsd-questions@freebsd.org References: <4F39278A.8040502@bananmonarki.se> <4F392C2D.70900@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F392C2D.70900@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.97.3 at mx1 X-Virus-Status: Clean 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: Mon, 13 Feb 2012 16:35:22 -0000 On Mon, Feb 13, 2012 at 03:28:45PM +0000, Matthew Seaman wrote: > 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. > > 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. > If I understood Bernt correctly, he wants to use it to relay mail to some remote MTA (ISP's or similar). There are lightweight MTAs just for this purpose, I use mail/msmtp and it works great with multiple accounts. Usually, this is much simpler to set up than using a real MTA like Sendmail or Postfix. Not that I have anything against using Sendmail and friends for this purpose. Just my $0.02. ;) -- news: gotcha