From owner-freebsd-questions@FreeBSD.ORG Mon Nov 27 03:20:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72CA316A403 for ; Mon, 27 Nov 2006 03:20:40 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from michelle.lostinspace.de (michelle.lostinspace.de [62.146.248.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id B028643D45 for ; Mon, 27 Nov 2006 03:19:41 +0000 (GMT) (envelope-from idefix@fechner.net) Received: from server.idefix.loc (ppp-82-135-2-208.dynamic.mnet-online.de [82.135.2.208]) (authenticated bits=0) by michelle.lostinspace.de (8.13.8/8.13.8) with ESMTP id kAR3KVtf073011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 27 Nov 2006 04:20:37 +0100 (CET) (envelope-from idefix@fechner.net) Received: from idefix by server.idefix.loc with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GoX2l-0002gv-HI for freebsd-questions@freebsd.org; Mon, 27 Nov 2006 04:20:31 +0100 Date: Mon, 27 Nov 2006 04:20:31 +0100 From: Matthias Fechner To: freebsd-questions@freebsd.org Message-ID: <20061127032030.GH8339@server.idefix.loc> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Crypto: GnuPG/1.0.6 http://www.gnupg.org X-GnuPG: 0x1B756EF6 User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Matthias Fechner X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (michelle.lostinspace.de [62.146.248.226]); Mon, 27 Nov 2006 04:20:37 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.6/2242/Sat Nov 25 19:29:12 2006 on michelle.lostinspace.de X-Virus-Status: Clean Subject: Sendmail and smtp-auth against passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 03:20:40 -0000 Hi, i tried to get smtp-auth against the pass working but it is not work. I must add users with saslpasswd2 to the sasldb but I want to auth my smtp users with there "normal" password without the need to add them to an additional db. What I did is: Installed sasl2authd from the ports. /etc/make.conf: # Add SMTP AUTH support to Sendmail SENDMAIL_CFLAGS+= -I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS+= -L/usr/local/lib SENDMAIL_LDADD+= -lsasl2 # Enable smtps for sendmail SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL SENDMAIL_MILTER_IN_BASE=yes And recompiled sendmail in base. Edit /usr/local/lib/sasl2/Sendmail.conf: pwcheck_method: saslauthd Enabled saslauth in rc.conf and start it: saslauthd_enable="yes" saslauthd_flags="-a getpwent" Edited my .mc file: dnl Enable smpt-auth FEATURE(authinfo') define(confDONT_BLAME_SENDMAIL',GroupReadableSASLDBFile')dnl define(confAUTH_MECHANISMS',LOGIN GSSAPI DIGEST-MD5 CRAM-MD5')dnl define(confRUN_AS_USER',root:mail')dnl But it seems to me that sendmail isn't using saslauth instead it uses directly the sasldb so all thinks I configured in sasl2authd is useless. Has someone smtp-auth with sendmail against passwd running? Best regards, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook