"Just Gags" (<[EMAIL PROTECTED]>) wrote: > I am interested in setting up SMTP authentication. Currently, my SMTP server > (PostFix) is using SASL which is calling upon PAM for the authentication > method and this is working perfectly. > > However, I would like PAM to check against a MySQL database (generated by > web-cyradm) rather than the *nix list of 'real' users. I currently have this > setup correctly for the IMAP server on the system. > > The following is in the /etc/pam.d/imap file: > auth sufficient pam_mysql.so user=mailadmin passwd=mYpAsS host=localhost > db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 > logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host > logpidcolumn=pid logtimecolumn=time > > account required pam_mysql.so user=mailadmin passwd=mYpAsS host=localhost > db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 > logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host > logpidcolumn=pid logtimecolumn=time > > Now, could/should I place the exact same thing in the > /etc/pam.d/smtp.postfix file? I know very little about PAM syntax. Reading > over the man page for pam.d, I feel that the primary point of confusion for > my is the "control" setting (sufficient, required, etc).
We do the same here on our production system. I just copied the imap pam-file to smtp and everything works just fine. -- Mit freundlichem Gruss, Roland Hebertinger =========================================================== Roland Hebertinger Straubinger Tagblatt EDV-Abteilung FON: +49.9421.9404238 Ludwigsplatz 30 FAX: +49.9421.9406236 D-94315 Straubing http://www.idowa.de Email: [EMAIL PROTECTED] =========================================================== Zeitungssgruppe Straubinger Tagblatt / Landshuter Zeitung =========================================================== "Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt." -- (A. Einstein) _______________________________________________ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch _______________________________________________ Web-cyradm mailing list [email protected] http://www.web-cyradm.org/mailman/listinfo/web-cyradm
