The basic file that is most important is /etc/sasl2/smtpd.conf
----------
pwcheck_method: auxprop
mech_list: plain login
allowanonymouslogin: no
allowplaintext: no

sasl_auxprop_plugin: sql

sql_engine: pgsql
sql_hostnames: server.domain.tld
sql_database: dbmail
sql_user: dbmail
sql_passwd: XXXXXXXX
sql_select: SELECT passwd FROM dbmail_users WHERE userid = '[EMAIL PROTECTED]'
----------

Your passwords are most likely going to have to be in plain
text as sasl is going to encode it based on what the user
selects.

--
David A. Niblett               | email: [EMAIL PROTECTED]
Network Administrator          | Phone: (352) 334-3400
Gainesville Regional Utilities | Web: http://www.gru.net/



-----Original Message-----
From: Curtis Maurand [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 01, 2005 9:16 AM
To: DBMail mailinglist
Subject: Re: [Dbmail] smtp authentication


Is there a sasl configuration file I should look at?  How should I store
passwords?  currently I have a mixture of plaintext and md5's that have been
imported  from a linux system.  should I store them all as md5's  I like
plaintext or something I can decode them later for a user if need be.

Sorry for all the questions.  The postfix config look pretty straight
forward, but looking at your configs might be more helpful.

Curtis

Niblett, David A wrote:

>Curtis,
>
>You would need to compile your postfix with DB support
>and sasl support.  Then you can simply use the dbmail_users table as 
>the authentication for sasl.
>
>I currently run mine that way, I can provide config files
>if you like.  Check out:
>
>http://www.postfix.org/SASL_README.html
>
>If you lookup sql for sasl you should find all the options
>you need.  You get to craft the select statement which allows you to 
>use any table you like.
>
>--
>David A. Niblett               | email: [EMAIL PROTECTED]
>Network Administrator          | Phone: (352) 334-3400
>Gainesville Regional Utilities | Web: http://www.gru.net/
>
>
>
>-----Original Message-----
>From: Curtis Maurand [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 01, 2005 7:57 AM
>To: DBMail mailinglist
>Subject: [Dbmail] smtp authentication
>
>
>Hi,
>  Is it possible to configure postfix to use dbmail's database for smtp 
>authentication?
>
>I'm having a problem with evolution trying to do pop before smtp since 
>I'm using IMAP.  While I have imap configured  and imap before smtp, 
>evolution doesn't understand it and i get an error that states I'm 
>trying to use pop before smtp on a non-pop source.  I'd be just as 
>happy to configure postfix for authentication.
>
>Curtis
>_______________________________________________
>Dbmail mailing list
>Dbmail@dbmail.org https://mailman.fastxs.nl/mailman/listinfo/dbmail
>_______________________________________________
>Dbmail mailing list
>Dbmail@dbmail.org https://mailman.fastxs.nl/mailman/listinfo/dbmail
>  
>

_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to