sendmail + sasl

Robert Huff roberthuff at rcn.com
Fri Jan 23 10:27:57 PST 2004


Matthew Seaman writes:

>  You don't mention SASL (Simple Authentication and Security Layer) --
>  by default, the sendmail on FreeBSD doesn't contain any SASL
>  functionality, but you will need to add it in order to use
>  authentication.
>  
>  First install the security/cyrus-sasl2 port.  Then edit your
>  /etc/make.conf to change the sendmail(8) compilation to include
>  linking in the SASL libraries:
>  
>      SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
>      SENDMAIL_LDFLAGS=-L/usr/local/lib
>      SENDMAIL_LDADD=-lsasl2

	Did this.

>  Then rebuild and re-install sendmail from the system sources.  Easiest
>  way to do that is to do a complete 'make buildworld, make
>  installworld' cycle as documented in the handbook.  Then you need to
>  add the SASL options to your sendmail configuration, as you have done.
>  
>  There are some more detailed instructions here:
>  
>	http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html

	Followed these instructions, had libmilter break thus:

ln -sf /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h sm_os.h
cc -O -pipe -mcpu=pentiumpro -I/usr/src/lib/libmilter/../../contrib/sendmail/src -I/usr/src/lib/libmilter/../../contrib/sendmail/include -I. -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_THREAD_SAFE 3D-I/usr/local/include -DSASL=3D2  -c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/main.c
cc: 3D-I/usr/local/include: No such file or directory
In file included from /usr/src/contrib/sendmail/include/sendmail/sendmail.h:24,
                 from /usr/src/contrib/sendmail/src/sendmail.h:40,
                 from /usr/src/contrib/sendmail/libmilter/libmilter.h:31,
                 from /usr/src/contrib/sendmail/libmilter/main.c:15:
/usr/src/contrib/sendmail/src/conf.h:129:5: invalid suffix "D2" on integer constant
In file included from /usr/src/contrib/sendmail/libmilter/libmilter.h:31,
                 from /usr/src/contrib/sendmail/libmilter/main.c:15:
/usr/src/contrib/sendmail/src/sendmail.h:126:5: invalid suffix "D2" on integer constant
/usr/src/contrib/sendmail/src/sendmail.h:542:5: invalid suffix "D2" on integer constant
/usr/src/contrib/sendmail/src/sendmail.h:665:5: invalid suffix "D2" on integer constant
/usr/src/contrib/sendmail/src/sendmail.h:1647:6: invalid suffix "D2" on integer constant
/usr/src/contrib/sendmail/src/sendmail.h:2012:5: invalid suffix "D2" on integer constant
/usr/src/contrib/sendmail/src/sendmail.h:2359:5: invalid suffix "D2" on integer constant
*** Error code 1

Stop in /usr/src/lib/libmilter.

	I'm running:

FreeBSD 5.1-CURRENT #0: Tue Oct 21 23:17:38 EDT 2003

	with the source tree updated to 00:01 today.

	

					Robert Huff




More information about the freebsd-questions mailing list