Subject: Re: sendmail not seeing authentication mechs with sasl2?
To: range <netbsd.tw@gmail.com>
From: Gilles Gravier <Gilles@Gravier.org>
List: netbsd-users
Date: 05/15/2005 09:56:12
This is a cryptographically signed message in MIME format.
--------------ms070404000001010707040604
Content-Type: multipart/alternative;
boundary="------------020100050504050709070107"
This is a multi-part message in MIME format.
--------------020100050504050709070107
Content-Type: text/plain; charset=Big5
Content-Transfer-Encoding: 8bit
Hi!
Well... I think I summarized it mostly in my previous posts... so here
goes again.
In order to get sendmail authentication with sasl2 using PLAIN or LOGIN
on NetBSD, you need to install the following packages:
cyrus-sasl2
cyrus-saslauthd
cy2-login
cy2-plain
sendmail
And in your */etc/mk.conf* you need to put:
PKG_OPTIONS.sendmail=starttls sasl
And, of course, in your *sendmail.mc* (used to generate sendmail.cf),
you need to put:
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
Gilles.
range wrote:
>Hi:
>
>If someone can tell me what the pkgs you install all?
>
>I install Cyrus-sasl2, cy2-login, cy2-plain, I want to install
>cryus-saslauthd before,
>but i don't know if I must install linux-pam or other model?
>
>And what setup you made before you make install or after you install sendmail?
>
>Thank you.
>
>¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@range 05'05/15
>
>
>
--
/*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/]
--------------020100050504050709070107
Content-Type: text/html; charset=Big5
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=Big5" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#336666">
Hi!<br>
<br>
Well... I think I summarized it mostly in my previous posts... so here
goes again. <br>
<br>
In order to get sendmail authentication with sasl2 using PLAIN or LOGIN
on NetBSD, you need to install the following packages:<br>
<br>
<font color="#000000"><tt>cyrus-sasl2<br>
cyrus-saslauthd<br>
cy2-login<br>
cy2-plain<br>
sendmail</tt></font><br>
<br>
And in your <b><font color="#006600">/etc/mk.conf</font></b> you need
to put:<br>
<br>
<font color="#000000"><tt>PKG_OPTIONS.sendmail=starttls sasl</tt></font><br>
<br>
And, of course, in your <font color="#006600"><b>sendmail.mc</b></font>
(used to generate <font color="#006600">sendmail.cf</font>), you need
to put:<br>
<br>
<font color="#000000"><tt>TRUST_AUTH_MECH(`LOGIN PLAIN')dnl<br>
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl</tt></font><br>
<br>
Gilles.<br>
<br>
range wrote:
<blockquote cite="midb3571c2c050514115258da31e3@mail.gmail.com"
type="cite">
<pre wrap="">Hi:
If someone can tell me what the pkgs you install all?
I install Cyrus-sasl2, cy2-login, cy2-plain, I want to install
cryus-saslauthd before,
but i don't know if I must install linux-pam or other model?
And what setup you made before you make install or after you install sendmail?
Thank you.
¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@range 05'05/15
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Signature Home Chastity</title>
<meta content="Gilles Gravier" name="author">
<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>
</div>
</div>
</body>
</html>
--------------020100050504050709070107--
--------------ms070404000001010707040604
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJeTCC
AxcwggKAoAMCAQICAwzOhjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwODA0MTk0OTQ3WhcNMDUwODA0MTk0OTQ3
WjBfMRAwDgYDVQQEEwdHcmF2aWVyMQ8wDQYDVQQqEwZHaWxsZXMxFzAVBgNVBAMTDkdpbGxl
cyBHcmF2aWVyMSEwHwYJKoZIhvcNAQkBFhJnaWxsZXNAZ3Jhdmllci5vcmcwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDAbzG5LdPSvdPi9J0scd0p5nhh1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