FreeBSD-ports.tar.gz - patches for FreeBSD Port collection (extract to /usr/ports/mail/postfix/files) N.B.: patches will not apply automaticly to current ports tree! I have no time and desire to maintain it
15.11.2005 Xie Yanbo (xieyanbo at gmail.com) send me corrected patch which reflect changes in Postfix 2.2.5 (dict_pam is unchanged but it plugged in mail_dict.c insteed of dict_open.c and corrected depencies in Makefile.in. Check it first.
28.04.2003 Changes in converse rolled back; dict_pam_lookup now set "temporary lookup failure" for some PAM errors
25.04.2003 Function converse cut down to bare minimum
24.04.2003 Cleaned up patches for FreeBSD ports collection
21.04.2003 Initial version
PAM map type for Postfix.
Written by Andrew I Baznikin , JSC ISP "Tel", Russia.
In order to build postfix with PAM map support, you will need to add
-DHAS_PAM and the libpam library to AUXLIBS, for example:
make -f Makefile.init makefiles \
then, just run 'make'.
Once postfix is built with PAM map support, you can specify a map type
in main.cf like this:
local_recipient_maps = pam:smtpcheck
In this example 'smtpcheck' is service name, applicant is e-mail address of recipient.
Facility is always "auth". See pam(8) for details.
Add some lines to /etc/pam.conf (or /etc/pam.d/) :
#smtpcheck auth sufficient pam_permit.so debug try_first_pass
#smtpcheck auth sufficient pam_deny.so debug try_first_pass
smtpcheck auth sufficient pam_unix.so debug try_first_pass
smtpcheck auth required pam_radius.so debug try_first_pass