Postfix + SASL + PAM + MySQL

This is a discussion on Postfix + SASL + PAM + MySQL within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi all! First, my english is very bad. Sorry. I'm trying to setup a Postfix which use a MySQL ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2003
GlaSnoSt
 
Posts: n/a
Default Postfix + SASL + PAM + MySQL

Hi all!

First, my english is very bad. Sorry.

I'm trying to setup a Postfix which use a MySQL table to validate users.
I have a problem with SASL (version 2): If I don't use PAM, passwords in
MySQL can't be encrypted (with password() or crypt() functions), because
SASL2 only supports passwords in cleartext.

Therefore, my /etc/postfix/sasl/smtpd.conf is:

VaLKyRia:~# cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: PAM

and my /etc/pam.d/smtp:

VaLKyRia:~# cat /etc/pam.d/smtp
#smtp
auth optional pam_mysql.so host=localhost db=postfix user=mail
passwd=my_passwd table=users usercolumn=id passwdcolumn=passwd crypt=2
account required pam_mysql.so host=localhost db=postfix user=mail
passwd=my_passwd table=users usercolumn=id passwdcolumn=passwd crypt=2

However, when I try to send a mail, I obtain into /var/log/mail.log this
error message:

VaLKyRia postfix/smtpd[3399]: warning: SASL authentication problem: unknown
password verifier

Why? Lots of documents say this is the correct way, althought
http://asg.web.cmu.edu/cyrus/download/sasl/options.html sais nothing about
that option.

I use Debian Sid. Installed packages:

VaLKyRia:~# dpkg -l | grep sasl ; dpkg -l | grep pam ; dpkg -l | grep
postfix
pi libsasl2 2.1.15-4 Authentication abstraction library
ii libsasl2-dev 2.1.15-4 Development files for authentication
abstrac
ii libsasl2-modul 2.1.15-4 Pluggable Authentication Modules for SASL
ii libsasl2-modul 2.1.15-4 Pluggable Authentication Modules for SASL
ii libsasl7 1.5.28-6 Authentication abstraction library
ii sasl-bin 1.5.28-6 Programs for manipulating the SASL users
dat
ii sasl2-bin 2.1.15-4 Programs for manipulating the SASL users
dat
ii libpam-modules 0.76-13 Pluggable Authentication Modules for PAM
ii libpam-mysql 0.5.0-2 PAM module allowing authentication from a
My
ii libpam-runtime 0.76-13 Runtime support for the PAM library
ii libpam0g 0.76-13 Pluggable Authentication Modules library
ii postfix 2.0.13-2 A high-performance mail transport agent
ii postfix-mysql 2.0.13-2 MYSQL map support for Postfix
ii postfix-tls 2.0.13-2 TLS and SASL support for Postfix

Thanks!
Reply With Quote
Reply


Thread Tools
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

vB 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 12:03 PM.


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