Subject: sendmail not seeing authentication mechs with sasl2?
To: None <netbsd-users@netbsd.org>
From: Gilles Gravier <Gilles@Gravier.org>
List: netbsd-users
Date: 05/12/2005 15:50:58
This is a multi-part message in MIME format.
--Boundary_(ID_Ft7LrNupTbOCQh+Ss6Uklw)
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
Hi!
OK... Still trying to get this going... Here is what I did now:
Complied and installed the following:
sendmail-8.13.4
cyrus-sasl-2.1.20nb1
cyrus-sasl-authd-2.1.20
(i.e. the latest ones from PKGSRC)
My /etc/mk.conf contains
PKG_OPTIONS.sendmail=starttls sasl
(I tried with sasl2 instead of sasl and it doesn't work... apparently
now that saslv1 is deprecated, there is no more sasl2 option, just sasl)
/etc/rc.conf contains:
saslauthd=YES
saslauthd_flags="-a getpwent"
If I manually do testsaslauthd -u MyUser -p GoodPassword I get a
success, if I use a bad password, it fails, so I suspect saslauthd is
configured correctly.
If I manually delete /usr/pkg/lib/libsasl2.so.2 , then sendmail aborts
at launch... so sendmail seems correctly linked with libsasl2.
my /usr/pkg/lib/sasl2/Sendmail.conf contains
pwcheck_method: saslauthd
mech_list: LOGIN PLAIN
My sendmail.cf.mc file contains
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
Yet, when I start sendmail with:
/usr/pkg/libexec/sendmail/sendmail -O LogLevel=32 -bs -Am
I get the following message in my mail error log:
May 12 15:46:05 mailhost sendmail[12118]: AUTH warning: no mechanisms
Which clearly shows that sendmail isn't finding any authentication
mechs. What am I missin?
At this point, I've tried all I could.
Any help is VERY appreciated.
Thanks,
Gilles.
--
/*Gilles Gravier*/ *=* *Gilles@Gravier.org* <mailto:Gilles@Gravier.org>
*=* *http://www.gravier.org/*
ICQ : *77488526*
<http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN
Messenger : Gilles@Gravier.org
<http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$>*
*Skype : ggravier <callto://ggravier>* || *Y! : ggravier
<http://profiles.yahoo.com/ggravier> || AOL : gillesgravier
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026*
<http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]
--Boundary_(ID_Ft7LrNupTbOCQh+Ss6Uklw)
Content-type: text/html; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#336666">
Hi!<br>
<br>
OK... Still trying to get this going... Here is what I did now:<br>
<br>
Complied and installed the following:<br>
<br>
<font color="#000000">sendmail-8.13.4<br>
cyrus-sasl-2.1.20nb1<br>
cyrus-sasl-authd-2.1.20</font><br>
<br>
(i.e. the latest ones from PKGSRC)<br>
<br>
My <font color="#000000">/etc/mk.conf</font> contains<br>
<font color="#000000"><tt>PKG_OPTIONS.sendmail=starttls sasl</tt></font>
<br>
<br>
(I tried with sasl2 instead of sasl and it doesn't work... apparently
now that saslv1 is deprecated, there is no more sasl2 option, just sasl)<br>
<br>
<font color="#000000">/etc/rc.conf</font> contains:<br>
<font color="#000000"><tt>saslauthd=YES<br>
saslauthd_flags="-a getpwent"</tt></font>
<br>
<br>
If I manually do testsaslauthd -u MyUser -p GoodPassword I get a
success, if I use a bad password, it fails, so I suspect saslauthd is
configured correctly.<br>
<br>
If I manually delete <font color="#000000">/usr/pkg/lib/libsasl2.so.2</font>
, then sendmail aborts at launch... so sendmail seems correctly linked
with libsasl2.<br>
<br>
my <font color="#000000">/usr/pkg/lib/sasl2/Sendmail.conf</font>
contains<br>
<font color="#000000"><tt>pwcheck_method: saslauthd<br>
mech_list: LOGIN PLAIN</tt></font>
<br>
<br>
My sendmail.cf.mc file contains<br>
<font color="#000000"><tt>TRUST_AUTH_MECH(`LOGIN PLAIN')dnl<br>
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl</tt></font>
<br>
<br>
Yet, when I start sendmail with:<br>
<font color="#000000"><tt>/usr/pkg/libexec/sendmail/sendmail -O
LogLevel=32 -bs -Am </tt></font>
<br>
<br>
<br>
I get the following message in my mail error log:<br>
<font color="#000000"><tt><br>
May 12 15:46:05 mailhost sendmail[12118]: AUTH warning: no mechanisms</tt></font>
<br>
<br>
Which clearly shows that sendmail isn't finding any authentication
mechs. What am I missin?<br>
<br>
At this point, I've tried all I could.<br>
<br>
Any help is VERY appreciated.<br>
<br>
Thanks,<br>
Gilles.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<title>Signature Perso Chastity</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<div style="text-align: left;">
<table
style="text-align: left; background-color: rgb(102, 102, 102); width: 500px; height: 73px;"
border="1" cellpadding="3" cellspacing="3">
<tbody>
<tr>
<td
style="text-align: center; vertical-align: middle; background-color: rgb(204, 204, 204); white-space: nowrap;">
<div
style="text-align: center; background-color: rgb(204, 204, 204);"><tt><font
color="#7d6eaf"><i><b>Gilles Gravier</b></i> <b>=</b> </font><a
href="mailto:Gilles@Gravier.org"><font color="#000000"><b>Gilles@Gravier.org</b></font></a><font
color="#7d6eaf"> <b>=</b> </font><a href="http://www.gravier.org/"><font
color="#000000"><b>http://www.gravier.org/</b></font></a></tt><br>
</div>
<div
style="text-align: center; background-color: rgb(204, 204, 204);"><tt><font
color="#009900"><span
style="font-family: monospace; color: rgb(0, 0, 0); font-weight: bold;"></span></font><font
color="#000099">ICQ :</font> <a
href="http://www.icq.com/whitepages/about_me.php?Uin=77488526"><font
color="#009900"><b>77488526</b></font></a></tt> <tt><font
color="#009900"><b><span
style="font-family: monospace; color: rgb(0, 0, 0);"> || </span></b></font></tt><tt><font
color="#000099">MSN Messenger : <a
href="http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$"><span
style="color: rgb(0, 153, 0); font-weight: bold;">Gilles@Gravier.org</span></a></font></tt><tt><font
color="#009900"><b><span
style="font-family: monospace; color: rgb(0, 0, 0);"><br>
</span></b></font></tt><span
style="font-family: monospace; color: rgb(0, 0, 153);">Skype</span><tt><font
color="#000099"><span style="color: rgb(0, 0, 153);"> : </span><a
href="callto://ggravier"><span
style="font-weight: bold; color: rgb(0, 153, 0);">ggravier</span></a></font></tt><tt><font
color="#009900"><b><span
style="font-family: monospace; color: rgb(0, 0, 0);"> || </span></b></font></tt><tt><font
color="#000099"><span style="color: rgb(0, 153, 0);"></span><span
style="font-weight: bold;"></span>Y! : <a
href="http://profiles.yahoo.com/ggravier"><span
style="color: rgb(0, 153, 0); font-weight: bold;">ggravier</span></a></font></tt><tt
style="font-weight: bold;"><font color="#009900"><span
style="font-family: monospace; color: rgb(0, 0, 0);"> || </span></font></tt><tt><font
color="#000099">AOL : <a href="aim:goim?screenname=gillesgravier"><span
style="color: rgb(0, 153, 0); font-weight: bold;">gillesgravier</span></a><br>
</font></tt><tt><font color="#000099">PGP Key ID :</font> <a
href="http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index"><font
color="#009900"><b>0x8DE6D026</b></font></a></tt><br>
</div>
<div
style="text-align: center; background-color: rgb(204, 204, 204);"><tt>"Chastity
is its own punishment." (<font color="#999999"><i>Solomon Short</i></font>)
[<font color="#666666"><i>David Gerrold</i></font>]</tt><br>
</div>
</td>
</tr>
</tbody>
</table>
<pre wrap="">
</pre>
</div>
<br>
</div>
</body>
</html>
--Boundary_(ID_Ft7LrNupTbOCQh+Ss6Uklw)--