/etc/pam.d/esmtp and /etc/pam.d/webmail have: auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth session required pam_stack.so service=system-auth This breaks with sys-libs/pam-0.99.7.1, where pam_stack is removed. These should be: auth include system-auth account include system-auth session include system-auth
Created attachment 119176 [details, diff] pam-include-not-pam_stack.patch Patch.
I can confirm that when upgrading PAM to 0.99.7.1, courier does stop working due to pam_stack.so no longer being available. Changing the files in /etc/pam.d according to the patch also fixes the problem (I can now send/receive email correctly). A quick google search shows up http://www.mail-archive.com/gentoo-dev%40gentoo.org/msg05454.html , which explains that pam_stack was a non-standard module deprecated in favour of the "include" control statement introduced in linux-pam-0.78. Both have the identical result of including the rules from another file in /etc/pam.d.
I've applied it in a revbump of both ~arch and stable, in light of the plans for stabling Linux-PAM 0.99.