View Single Post
  #36  
Old 6th March 2012, 19:12
basmevissen basmevissen is offline
Junior Member
 
Join Date: Sep 2009
Posts: 10
Thanks: 3
Thanked 1 Time in 1 Post
Default

Hi Falko,

I've finally managed to get sasl2 working with the package supplied with Ubuntu 11.10. I think this is a better solution than using older sasl2 packages.
See https://bugs.launchpad.net/ubuntu/+s...40/comments/34 for more details.

Code:
$ cat /etc/postfix/sasl/smtpd.conf

pwcheck_method: saslauthd
mech_list: plain login pam
allow_plaintext: true
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: ispconfig
sql_passwd: ******************************
sql_database: dbispconfig
sql_select: select password from mail_user where email = '%u@%r'
Code:
$ cat /etc/default/saslauthd | grep -v ^\#

START=yes
DESC="SASL Authentication Daemon"
NAME="saslauthd"
MECHANISMS="pam"
MECH_OPTIONS=""
THREADS=0
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
This seems to be fine. I only think the SQL query needs modification to take the "disablesmtp" field into account.

I also added "pam" to mech_list to see if local user accounts could be used to authenticate for SMTP. Not tested yet.

Last edited by basmevissen; 6th March 2012 at 19:23.
Reply With Quote