Bluehost.com Web Hosting $6.95

Re: Postfix/SASL/mysql encrypted passwords

This is a discussion on Re: Postfix/SASL/mysql encrypted passwords within the mailing.postfix.users forums, part of the Mail Servers and Related category; Iain Pople <iain@webcentre.unimelb.edu.au> writes: >>> Has anyone deployed Postfix with SASL and ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-07-2004
Doug Alcorn
 
Posts: n/a
Default Re: Postfix/SASL/mysql encrypted passwords

Iain Pople <iain@webcentre.unimelb.edu.au> writes:

>>> Has anyone deployed Postfix with SASL and mysql support using
>>> encrypted passwords? All of the examples I've seen authenticate
>>> against cleartext passwords in the database (transport isn't a
>>> concern, I'm using TLS).


I'm using sasl2, saslauthd, pam, and libpam-mysql.

,----[ /etc/postfix/sasl/smtpd.conf ]
| pwcheck_method: saslauthd
| mech_list: plain login
`----

,----[ /etc/pam.d/smtp ]
| auth required pam_mysql.so user=pamsmtp passwd=secret \
| host=localhost db=postfix table=mailbox usercolumn=oldemail \
| passwdcolumn=password where=active=1 crypt=1 md5=y
| account sufficient pam_mysql.so user=pamsmtp passwd=secret \
| host=localhost db=postfix table=mailbox usercolumn=oldemail \
| passwdcolumn=password where=active=1 crypt=1 md5=y
`----

I don't think the pam.d config files really support escaped
newlines. Maybe it does. Anyway, those are actually only two lines
instead of six.

From Debian/stable and Backports.org:

libpam-mysql 0.5.0-4
libsasl2 2.1.15-5.backports.org.1
libsasl2-modules 2.1.15-5.backports.org.1

Likewise I use Courier POP/IMAP. The /etc/courier/authdaemonrc has
authmodulelist="authmysql". In /etc/courier/authmysqlrc, I specify
the MYSQL_CRYPT_PWFIELD rather than the MYSQL_CLEAR_PWFIELD.
--
(__) Doug Alcorn - Unix/Linux/Web Developing
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ mailto:doug@lathi.net http://www.lathi.net
mailto:tarpit@lathi.net is a spam trap
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0