[Dovecot] Dovecot + managesieve + ldap not working

Philip Brechler pbrechler at mac.com
Wed Oct 5 22:20:41 EEST 2011


Am 05.10.2011 um 21:04 schrieb Stephan Bosch:

> On 10/5/2011 6:11 PM, Philip Brechler wrote:
> 
> I'd expect to see more errors and debug messages preceding the log line above.
> 
> Looking at your config, I suspect your problem has something to do with the fact that you provide no 'home' directory for your users. The default location of the active sieve script (as configured with sieve=) is ~/.dovecot.sieve. You don't override this, so this is what you are now using. Since no home directory is defined, ~/ cannot be substituted, causing this failure (there must be an error about this in your logs somewhere). You can do something analogous to your sieve_dir setting and use % variable substitution in your sieve= setting. Still, having no home directory for your users is a bad idea. Read the wiki for more information:
> 
> http://wiki2.dovecot.org/VirtualUsers/Home
> 
> Also read this carefully:
> 
> http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Configuration
> 

Hi,
thanks for your fast response I added a sieve= Option and now I get this log reading until it fails with the same error massage in telnet

 Info: client out: OK	1	user=user
2011-10-05 21:15:53 auth(default): Info: master in: REQUEST	3	12101	1
2011-10-05 21:15:53 auth(default): Info: ldap(user,127.0.0.1): user search: base=dc=piratenfraktion-berlin,dc=de scope=subtree filter=(|(&(objectClass=organizationalPerson)(uid=user))(&(objectClass=organizationalPerson)(mail=user))) fields=uid
2011-10-05 21:15:53 auth(default): Info: ldap(user,127.0.0.1): result: uid(mail=maildir:/var/mail/%$/Maildir/)=maildir:/var/mail/user/Maildir/
2011-10-05 21:15:53 auth(default): Info: master out: USER	3	user	mail=maildir:/var/mail/user/Maildir/
2011-10-05 21:15:53 managesieve-login: Info: Login: user=<user>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
2011-10-05 21:15:53 MANAGESIEVE(user): Info: Effective uid=5000, gid=5000, home=(none)
2011-10-05 21:15:53 MANAGESIEVE(user): Info: sieve-storage: using active sieve script path: /var/var/mail/sievescript/user_scripts/.dovecot.sieve
2011-10-05 21:15:53 MANAGESIEVE(user): Info: sieve-storage: using sieve script storage directory: /var/mail/sievescript/user_scripts/

That's it no more errors or anything.

thanks.

Philip

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4755 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20111005/22d3704b/attachment-0001.bin>


More information about the dovecot mailing list