Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2005 09:16:28 +0100
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: freebsd sendmail smtp auth
Message-ID:  <20050301081628.GA3185@oliverfuchs.onlinehome.de>
In-Reply-To: <20050228042134.M97699@enabled.com>
References:  <20050228042134.M97699@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050301081628.GA3185>