[Dovecot] Possible managesieve bug.
Hi,
I'm migrating from from 1.1 to 2.2. Currently I am doing test to ensure I'm doing it right. On the old server the managesieve config says:
sieve = /correo/%d/%u/dovecot.sieve sieve_dir = /correo/%d/%u/Sieve
and is working fine.
But the same config on the new server is not working. I have activated verbose logging and this is the result:
Dec 3 09:59:41 imap-01 dovecot: managesieve-login: Login: user=<xxxx@ubu.es>, method=LOGIN, rip=10.145.4.65, lip=10.145.4.45, mpid=29855, session=<T7hfhJ3s+QAKkQRB> Dec 3 09:59:41 imap-01 dovecot: managesieve(xxxx@ubu.es): Error: sieve-storage: Performing readlink() on active sieve symlink '/correo/ubu.es/xxxx@ubu.es/dovecot.sieve' failed: Permission denied Dec 3 09:59:41 imap-01 dovecot: managesieve(xxxx@ubu.es): Error: sieve-storage: Failed to stat active sieve script symlink (/correo/ubu.es/xxxx@ubu.es/dovecot.sieve): Permission denied. Dec 3 09:59:41 imap-01 dovecot: managesieve(xxxx@ubu.es): Disconnected: Logged out bytes=120/331 Dec 3 09:59:51 imap-01 dovecot: managesieve-login: Login: user=<pedro@ubu.es>, method=LOGIN, rip=10.145.4.65, lip=10.145.4.45, mpid=29858, session=<6bDthJ3s+wAKkQRB> Dec 3 09:59:51 imap-01 dovecot: managesieve(xxxx@ubu.es): Error: sieve-storage: Performing readlink() on active sieve symlink '/correo/ubu.es/xxxx@ubu.es/dovecot.sieve' failed: Permission denied Dec 3 09:59:51 imap-01 dovecot: managesieve(xxxx@ubu.es): Disconnected: Logged out bytes=44/199
Permissions are ok. I modified the permissions using 0777 but the error message is the same.
I have made other tests to see if I can find the problem, and I made it work if I delete "%d" from config, this way:
sieve = /correo/%u/dovecot.sieve sieve_dir = /correo/%u/Sieve
I have copied all filters preserving permissions, and with the same file permissions is working. If I add the '%d' to the path error comes again.
Can anyone tell me if this is the normal behavior or is a bug?
Thanks,
Pedro
--
Pedro R. Benito da Rocha - Servicio de Informatica - Area de Sistemas Universidad de Burgos (España) E-mail: pedro@ubu.es Tel: +34 947258845
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 3 Dec 2013, Pedro R. Benito da Rocha wrote:
sieve = /correo/%d/%u/dovecot.sieve sieve_dir = /correo/%d/%u/Sieve
and is working fine.
But the same config on the new server is not working. I have activated verbose logging and this is the result:
Dec 3 09:59:41 imap-01 dovecot: managesieve-login: Login: user=<xxxx@ubu.es>, method=LOGIN, rip=10.145.4.65, lip=10.145.4.45, mpid=29855, session=<T7hfhJ3s+QAKkQRB> Dec 3 09:59:41 imap-01 dovecot: managesieve(xxxx@ubu.es): Error: sieve-storage: Performing readlink() on active sieve symlink '/correo/ubu.es/xxxx@ubu.es/dovecot.sieve' failed: Permission denied
What are the filesystem permissions of /correo/ubu.es, /correo/ubu.es/xxxx@ubu.es and /correo ?
Permissions are ok. I modified the permissions using 0777 but the error message is the same.
I have made other tests to see if I can find the problem, and I made it work if I delete "%d" from config, this way:
sieve = /correo/%u/dovecot.sieve sieve_dir = /correo/%u/Sieve
I have copied all filters preserving permissions, and with the same file permissions is working. If I add the '%d' to the path error comes again.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUp3tKl3r2wJMiz2NAQJL5Qf7B5JTl8Q5mRXWwRUhOg4psIuBrR+ZOc65 U03+De115SwuzZpHfHeK4y+5jDsZx+7c5h3OeGYUP2A9IqH+BXvhZwt4rj/enmrZ AaB34JqWZEJ+J2IQI8u7ZdtO0acrWPG/bXcAentjWWKDl5fihgOad91w1GsABi3L 2ocYTS9HHkrJe1Ge4sDdUEc9B4Ej7X2w4yOaKeKbsiZLsidLSrgMx09KSkCl2qrP NTRUEKplxyt7Vw7rSnkPRP8zIe6cDpNf4OSPtUjtpqRFu70Yl7Uhf2yKru34csmp 8RlMtqtp+rjPnvf9GvyygAiKmTxmO7rGJT0QE2YcFD9c+IZggo3S3g== =1z9a -----END PGP SIGNATURE-----
Hello,
Permissions are:
- /correo: 0777 (rwxrwxrwx)
- /correo/ubu.es: 0770 (rwxrwx---)
- /correo/ubu.es/xxxx@ubu.es: 0777 (rwxrwxrwx)
All users belong to the same group.
If I change /correo/ubu.es permissions to 0777 (rwxrwxrwx) it works again.
I have checked old server config again an I realize that it is using another group for mail access, so is a permissions issue.
But if If change permissions to 0777 on user's directory and files an error occurs. If I change to 0770 it works fine.
Thank you for the tip, I was blocked :)
Pedro
El 03/12/13 15:39, Steffen Kaiser escribió:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 3 Dec 2013, Pedro R. Benito da Rocha wrote:
sieve = /correo/%d/%u/dovecot.sieve sieve_dir = /correo/%d/%u/Sieve
and is working fine.
But the same config on the new server is not working. I have activated verbose logging and this is the result:
Dec 3 09:59:41 imap-01 dovecot: managesieve-login: Login: user=<xxxx@ubu.es>, method=LOGIN, rip=10.145.4.65, lip=10.145.4.45, mpid=29855, session=<T7hfhJ3s+QAKkQRB> Dec 3 09:59:41 imap-01 dovecot: managesieve(xxxx@ubu.es): Error: sieve-storage: Performing readlink() on active sieve symlink '/correo/ubu.es/xxxx@ubu.es/dovecot.sieve' failed: Permission denied
What are the filesystem permissions of /correo/ubu.es, /correo/ubu.es/xxxx@ubu.es and /correo ?
Permissions are ok. I modified the permissions using 0777 but the error message is the same.
I have made other tests to see if I can find the problem, and I made it work if I delete "%d" from config, this way:
sieve = /correo/%u/dovecot.sieve sieve_dir = /correo/%u/Sieve
I have copied all filters preserving permissions, and with the same file permissions is working. If I add the '%d' to the path error comes again.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUp3tKl3r2wJMiz2NAQJL5Qf7B5JTl8Q5mRXWwRUhOg4psIuBrR+ZOc65 U03+De115SwuzZpHfHeK4y+5jDsZx+7c5h3OeGYUP2A9IqH+BXvhZwt4rj/enmrZ AaB34JqWZEJ+J2IQI8u7ZdtO0acrWPG/bXcAentjWWKDl5fihgOad91w1GsABi3L 2ocYTS9HHkrJe1Ge4sDdUEc9B4Ej7X2w4yOaKeKbsiZLsidLSrgMx09KSkCl2qrP NTRUEKplxyt7Vw7rSnkPRP8zIe6cDpNf4OSPtUjtpqRFu70Yl7Uhf2yKru34csmp 8RlMtqtp+rjPnvf9GvyygAiKmTxmO7rGJT0QE2YcFD9c+IZggo3S3g== =1z9a -----END PGP SIGNATURE-----
--
Pedro R. Benito da Rocha - Servicio de Informatica - Area de Sistemas Universidad de Burgos (España) E-mail: pedro@ubu.es Tel: +34 947258845
participants (2)
-
Pedro R. Benito da Rocha
-
Steffen Kaiser