Cyrus-IMAP and PAM interactions on x86_64

In Red Hat Enterprise Linux ES 4.1 Update 3, both /etc/pam.d/imap and /etc/pam.d/pop contain hard-coded paths pointing to pam_stack.so, actually /lib/security/pam_stack.so. This causes problems on x86_64 since pam_stack.so is located under /lib64/security/pam_stack.so.

A workaround is to modify /etc/pam.d/imap and /etc/pam.d/pop to look like this:

#%PAM-1.0 auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth

I filled in a bug report against Red Hat Enterprise Linux 4:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192550