Subject: Sendmail/SASL/Crypt issue
To: None <port-i386@netbsd.org>
From: James Webster <james3838@tsi-net.com>
List: port-i386
Date: 10/08/2003 10:28:45
This is a multi-part message in MIME format.

------=_NextPart_000_0363_01C38D86.F3BE1280
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

While this is not directly NetBSD related, I'm hoping someone on this =
list has done it before and can help me out.

I'm trying to configure a Sendmail server that sends mail outbound using =
TLS/Login authentication.  I've been able to setup and test SSL without =
issue, but I'm having problems getting Plain/Login working.  I've =
downloaded the source for cyrus-sasl-1.58.28 and appear to have =
successfully compiled and installed it.  But when I tried to compile =
Sendmail I was getting a build failure:=20
/usr/lib/libsasl.so: undefined reference to `crypt'

I suspected it had something to do with cyrus complaining about not =
finding crypt.h, though it went on to compile successfully.  Doing a =
search on the NetBSD site crypt.h only turned up this thread: =
http://mail-index.netbsd.org/tech-pkg/2003/07/21/0011.html
The only thing I found that might indicate the problem with the crypt =
function is : =
http://mail-index.netbsd.org/port-pmax/1996/12/10/0000.html, so I added =
"APPENDDEF(`conf_sendmail_LIBS',`-lsasl -lcrypt') to my site.config.m4 =
file. =20

That appears to have fixed my compile issues, but when I start up =
sendmail and connect, its only advertising CRAM-MD5.  I have the =
TrustAuthMech and AuthMechanisms set to LOGIN PLAIN, and for testing =
purposes have made sure that AuthOptions does not include the p flag.

Thanks for any help,
James
------=_NextPart_000_0363_01C38D86.F3BE1280
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.59" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>While this is not directly NetBSD =
related, I'm=20
hoping someone on this list has done it before and can help me =
out.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to configure a Sendmail =
server that=20
sends mail outbound using TLS/Login authentication.&nbsp; I've been able =
to=20
setup and test SSL without issue, but I'm having problems getting =
Plain/Login=20
working.&nbsp; I've downloaded the source for cyrus-sasl-1.58.28 and =
appear to=20
have successfully compiled and installed it.&nbsp; But when I tried to =
compile=20
Sendmail I was getting a build failure: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/usr/lib/libsasl.so: undefined =
reference to=20
`crypt'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I suspected it had something to do with =
cyrus=20
complaining about not finding crypt.h, though it went on to compile=20
successfully.&nbsp; Doing a search on the NetBSD site crypt.h only =
turned up=20
this thread: <A=20
href=3D"http://mail-index.netbsd.org/tech-pkg/2003/07/21/0011.html">http:=
//mail-index.netbsd.org/tech-pkg/2003/07/21/0011.html</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The only thing I found that might =
indicate the=20
problem with the crypt function is : <A=20
href=3D"http://mail-index.netbsd.org/port-pmax/1996/12/10/0000.html">http=
://mail-index.netbsd.org/port-pmax/1996/12/10/0000.html</A>,=20
so I added "APPENDDEF(`conf_sendmail_LIBS',`-lsasl -lcrypt') to my=20
site.config.m4 file.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>That appears to have fixed my compile =
issues, but=20
when I start up sendmail and connect, its only advertising =
CRAM-MD5.&nbsp; I=20
have the TrustAuthMech and AuthMechanisms set to LOGIN PLAIN, and for =
testing=20
purposes have made sure that AuthOptions does not include the p=20
flag.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>James</FONT></DIV></BODY></HTML>

------=_NextPart_000_0363_01C38D86.F3BE1280--