Okay...

Install pam (follow the instructions in the readme)

Then edit your /etc/pam.conf file as follows:

--< BEGIN >-----------------------
#%PAM-1.0
smtp    auth    sufficient      pam_mysql.so user=<DB-USER>
passwd=<DB-PASSWORD> host=127.0.0.1 db=dbmail table=users
usercolumn=userid passwdcolumn=passwd crypt=0
smtp    account required        pam_mysql.so user=<DB-USER>
passwd=<DB-PASSWORD> host=127.0.0.1 db=dbmail table=users
usercolumn=userid passwdcolumn=passwd crypt=0
--< END   >-----------------------

You'll need to configure the saslauthd to make sure it uses the pam
authentication...and make sure it's running...
/etc/rc.d/init.d/saslauthd restart

.....

In /etc/postfix/main.cf add these lines:
------------------------------------
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
------------------------------------

......
After installing SASL2 I had to create a file:
/usr/lib/sasl2/smtpd.conf

Then add the following in that file:
pwcheck_method: pam

I also updated the following files with this as well (I'm not sure which
one the saslauthd file actually is using...
/usr/lib/sasl2/smtpd.conf
/usr/lib/sasl/smtpd.conf
/usr/lib/sasl/Sendmail.conf

My server is Redhat 9.0 with Postfix built from Source RPM with MySQL and
SASL support.






> You should use PAM_MySQL...it's a PAIN to set up...but worth it in the
> end.
>
> There aren't many documents that I've found that give detailed
> step-by-step instructions on this with a clear and concise description of
> what exactly you're doing.
>
> I'll see if I can pull out some of the config files I'm using to help.
> You definitely should get pam_mysql installed first.
>
> http://pam-mysql.sourceforge.net
>
>
>
>> Folks,
>>      I'm having a hard time find out how to set up smtp-auth with Postfix
>> and
>> DBMail.  Anyone got any pointers?
>> Thanks,
>> Peter Darley
>>
>> _______________________________________________
>> Dbmail mailing list
>> [email protected]
>> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>
>
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>

Reply via email to