Re: Postfix + SASL + MySQL...What did I miss?
※ 引述《virileman@hotmail.com (????)》之銘言:
: Hi, everyone
: Originally, I used /usr/local/etc/sasldb2 to store
: accounts/passwords(plain text) data,
Maybe you can try to install /usr/ports/security/pam-mysql , and start
your saslauthd with "-a pam" parameter.
Then add a file "smtp" under /usr/local/etc/pam.d/ with the following
configuration:
======
smtp auth sufficient pam_unix.so
smtp auth required pam_mysql.so user=mail passwd=mail db=mail table=user \
usercolumn=username passwdcolumn=password crypt=0
smtp account sufficient pam_unix.so
smtp account required pam_mysql.so user=mail passwd=mail db=mail table=user \
usercolumn=username passwdcolumn=password crypt=0
smtp session required pam_permit.so
======
Hope this helps.
--
※ Origin: 鳥窩 (BirdNest.twbbs.org) ◆ From: eagle.seed.net.tw
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 4 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章