Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Mar 2012 17:34:02 +0000
From:      Matthew Seaman <>
To:        kamolpat <>
Subject:   Re: question about SMTP-authentication
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08/03/2012 15:55, kamolpat wrote:
> Setup Reference
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 1. I read the how to setup from  FreeBSD Handbook (online)-> Chapter 29=

> Electronic Mail -> 29.10 SMTP Authentication  from
> 2. setup for cyrus-sasl2 was fine (setup via
> usr/ports/security/cyrus-sasl2)
> 3. setup for openssl was 90% fine (setup via port) reference to FreeBSD=

> Handbook (online)->Chapter 15 Security -> 15.8 OpenSSL
>     accept the "STARTTLS" line doesn't appear  as mention on the last
> part of article.

Did you rebuild sendmail with the right flags so that it would enable
all the SASL bits?  Apart from that you seem to have done all the right
stuff that I can see.

You need to add this to /etc/make.conf:

SENDMAIL_CFLAGS=3D-I/usr/local/include -DSASL=3D2

and then rebuild sendmail -- assuming you have system sources installed:

# cd /usr/src/usr.sbin/sendmail
# make clean
# make
# make install

If you haven't got the system sources installed, then you can get them
easily enough with csup(1) or freebsd-update(8) or several other ways.
Or you could just install sendmail from ports -- obviously, make sure to
choose the option to enable SASL in the config dialogue.  If you use the
ports sendmail, so long as you set up mailer.conf(5) to point to the
ports version -- like so:

lucid-nonsense:/etc/mail:% cat mailer.conf
# $FreeBSD: stable/8/etc/mail/mailer.conf 93858 2002-04-05 04:25:14Z
gshapiro $
# Execute the "real" sendmail program, named /usr/local/sbin/sendmail
sendmail	/usr/local/sbin/sendmail
send-mail	/usr/local/sbin/sendmail
mailq		/usr/local/sbin/sendmail
newaliases	/usr/local/sbin/sendmail
hoststat	/usr/local/sbin/sendmail
purgestat	/usr/local/sbin/sendmail

and put the following in /etc/make.conf so it uses the latest
configuration file bits:

SENDMAIL_CF_DIR=3D        /usr/local/share/sendmail/cf
MAKEMAP=3D                /usr/local/sbin/makemap

then the ports sendmail is pretty much a drop-in replacement for the
system one, and you can use all the config bits in /etc/mail in exactly
the same way as normal.



Dr Matthew J Seaman MA, D.Phil.

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>