It's so simple, once you know it:

Stop running saslauthd, you don't need it.
Forget that /usr/lib/sasl2/smtpd.conf

Instead, edit /etc/sasl2/smtpd.conf:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
sql_engine: pgsql
sql_hostnames: DBHOST.fqdn
sql_user: USER
sql_passwd: PASS
sql_database: dbmail
sql_select: SELECT passwd FROM dbmail_users WHERE userid = '[EMAIL PROTECTED]'
sql_verbose: no

Restart Postfix, use SMTP AUTH. Have fun.
I found the hint here, but both are more complicated than my 
explanation: 
http://listi.jpberlin.de/pipermail/postfixbuch-users/2006-August/027527.html
http://forums.gentoo.org/viewtopic-t-312591.html?sid=a10e9fa09ef6aba6646e39c3c1e98812

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F 1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID: 1C6FE6B0

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to