From owner-freebsd-questions@FreeBSD.ORG Tue Mar 1 08:17:44 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6074716A4CE for ; Tue, 1 Mar 2005 08:17:44 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id A51EE43D66 for ; Tue, 1 Mar 2005 08:17:43 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D62Za-0000Xy-00 for freebsd-questions@freebsd.org; Tue, 01 Mar 2005 09:17:42 +0100 Received: from [217.246.205.96] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1D62ZX-0004Bl-00 for freebsd-questions@freebsd.org; Tue, 01 Mar 2005 09:17:41 +0100 Received: from oliverfuchs.onlinehome.de (localhost.onlinehome.de [127.0.0.1]) j218HXCK003436 for ; Tue, 1 Mar 2005 09:17:33 +0100 (CET) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost) by oliverfuchs.onlinehome.de (8.13.1/8.13.1/Submit) id j218GSoD003430 for freebsd-questions@freebsd.org; Tue, 1 Mar 2005 09:16:28 +0100 (CET) (envelope-from oliverfuchs1) Date: Tue, 1 Mar 2005 09:16:28 +0100 From: Oliver Fuchs To: freebsd-questions Message-ID: <20050301081628.GA3185@oliverfuchs.onlinehome.de> Mail-Followup-To: freebsd-questions References: <20050228042134.M97699@enabled.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20050228042134.M97699@enabled.com> User-Agent: Mutt/1.4.2.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: freebsd sendmail smtp auth X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 08:17:44 -0000 On Sun, 27 Feb 2005, Noah wrote: > sendmail 8.13.3 > > I have looked over three different SMTP AUTH tutorials for sendmail and they > dont fully cover the configuration or I am completely misreading them. > > somebody please send me to a really good site to explain how to set up SMTP AUTH. > > thank you in advance, > > Noah Hi, 1) make sure you are running sendmail with sasl-support. Try sendmail -bt -d0.1 to see if sasl support is enabled. If not recompile sendmail or install the sendmail with sasl support package (sendmail+tls+sasl2-8.13.1) and cyrus-sasl-saslauthd-2.1.19 (see then /usr/local/share/doc/cyrus-sasl2/Sendmail.README) 2) a) Add this from cyrus-sasl documentation to your sendmail.mc: dnl ################################### dnl # From cyrus-sasl Sendmail-README # dnl ################################### dnl # The group needs to be mail in order dnl # to read the sasldb2 file define(`confRUN_AS_USER',`root:mail')dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 PLAIN LOGIN')dnl define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 PLAIN LOGIN')dnl define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')dnl b) Enable smtp authentication to your sendmail.mc file e.g.: dnl ####################### dnl # SMTP AUTHENTICATION # dnl ####################### define(`SMART_HOST', `[me.myself.andI]')dnl FEATURE(`authinfo')dnl The FEATURE(`authinfo') is optional (see herefore the cf.README of sendmail). Create a /etc/mail/authinfo file (they should not be readable by anyone).The authinfo file should contain something like this: AuthInfo:me.myself.andI "U:myusername" "P:mypassword" The cd to /etc/mail and do: makemap hash authinfo < authinfo chmod 600 authinfo authinfo.db 3) Install ypur new sendmail.mc file, restart sendmail and test your configuration. Oliver -- ... don't touch the bang bang fruit