how do i: configure smtp auth for sendmail ?
hello all.
i am trying to get my solaris 10 system to do smtp authentication
the sendmail shipped with solaris 10 unfortunately is not compiled with SASL. this is a shame, especially since sals v2 libraries _are_ shipped with solaris 10
so - i downloaded & compiled my own sendmail 8.13.5, including SASL=v2 support using the shipped sasl library.
i cannot make this work.
the /etc/sasl/Sendmail/conf file says:
pwcheck_method: PAM
but when i try to authorise, it fails:
AUTH failure (PLAIN): no mechanism available (-4) SASL(-4): no mechanism available: Password verification failed
any suggestions?
[672 byte] By [
pwlees] at [2007-11-25 23:40:33]

# 1
Here is what I did:
1. Install the precompiled version of gcc 3.4.6 from sunfreeware. This is important as I could not get it to work with the Sun supplied version of gcc.
2. Install OpenSSL 0.9.8d. Ensure this is built with gcc from above. I could not get this to work with the Sun supplied libraries.
3. Install Cyrus 1.5.28. While this is not version two it does work. Add the following symlink:
ln -s /usr/local/lib/sasl /usr/lib/sasl
Within the "/usr/local/lib/sasl" directory edit the file "Sendmail.conf" (Note: Case is important). Add the following single line to the file:
pwcheck_method: shadow
This instructs SASL to check the "/etc/shadow" file for user ID and password.
4. Install Sendmail 8.13.8. Before doing so create the file "site.config.m4" in the "devtools/Site" directory in the Sendmail source distribution. Add the following four entires:
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl')
APPENDDEF(`confINCDIRS', `-I/usr/local/include')
The "site.config.m4" file contains additional functionality that should be compiled into Sendmail.
Then add the following lines to your "sendmail.mc" file:
define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
Install Sendmail.
6. Test:
sendmail -d0.1 -bv root | grep SASL
Then start Sendmail:
# /usr/lib/sendmail -bd -q15m
# telnet localhost 25 (IMPORTANT: If the connection is immediately disconnect start over again this time paying particular attention to building with the open source version of gcc instead of the Sun supplied version).
Issue "ehlo" and look for "auth login"
Issue "auth login"
Issue Base 64 encoded user ID (as it appears in the /etc/passwd file).
Issue Base 64 encoded password (the same password used to login).
Returned results should indicate a successful authorization.
Message was edited by:
yeda12345