Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331115 - net-mail/dovecot: Missing /etc/pam.d/sieve
Summary: net-mail/dovecot: Missing /etc/pam.d/sieve
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on: 333239
Blocks:
  Show dependency tree
 
Reported: 2010-08-03 20:15 UTC by Andrii Yurchuk
Modified: 2010-08-19 02:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrii Yurchuk 2010-08-03 20:15:33 UTC
The bug http://bugs.gentoo.org/291290 is still not fixed. It is reproducible in at least dovecot-1.2.11-r1 (which is the current stable one). The symptoms are all the same as in the bug 291290. /var/log/maillog spits an error:

Aug  2 16:33:54 dovecot: auth-worker(default): pam(user1,x.x.x.x): pam_authenticate() failed: Authentication failure (/etc/pam.d/sieve missing?)


I checked all the other ebuilds in the tree and all of them create /etc/pam.d/managesieve instead of /etc/pam.d/sieve during installation.

Reproducible: Always

Steps to Reproduce:
1. Install net-mail/dovecot-1.2.11-r1 and configure managesieve protocol
2. Try to connect to managesieve

Actual Results:  
/etc/pam.d/sieve symlink is not present, /etc/pam.d/managesieve is created during installation instead.

Expected Results:  
/etc/pam.d/sieve is created instead of /etc/pam.d/managesieve
Comment 1 Eray Aslan gentoo-dev 2010-08-04 09:40:19 UTC
Dovecot changed the protocol name from "managesieve" to "sieve" which was a bad idea.  It causes too much confusion.

Please see the patch below:

--- dovecot-1.2.13.ebuild       2010-07-26 23:21:59.000000000 +0000
+++ dovecot-1.2.13-r1.ebuild    2010-08-04 09:25:30.000000000 +0000
@@ -177,7 +177,7 @@
                sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
                        "${conf}" || die "failed to update PAM settings in dovecot.conf"
                # mailbase does not provide a managesieve pam file
-               use managesieve && dosym imap /etc/pam.d/managesieve
+               use managesieve && dosym imap /etc/pam.d/sieve
        fi

        # Listen on ipv6 and ipv4
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-19 02:32:45 UTC
in 1.2.13-r1