[Dovecot] sieve: failed to save binary
RHEL 5.3 Dovecot 2.0 beta1 dovecot-sieve (updated 1 week ago, changeset a3eb0b0b2ddf)
Jan 15 11:30:06 mail4a dovecot: lmtp(31015, testmail4a2@dev.p4nt5.com): sieve: using sieve path for user's script: /data/mail/de/ dev.p4nt5.com/te/testmail4a2/.dovecot.sieve Jan 15 11:30:06 mail4a dovecot: lmtp(31015, testmail4a2@dev.p4nt5.com): sieve: executed before user's script(1): /etc/dovecot/dovecot-global-sieve.sieve Jan 15 11:30:06 mail4a dovecot: lmtp(31015, testmail4a2@dev.p4nt5.com): afEDDB6mUEsneQAA0TR52A: sieve: failed to save binary: open(/etc/dovecot/dovecot-global-sieve.svbinmail4a.31015.) failed: Permission denied (euid=5000(virtual) egid=5000(virtual) missing +w perm: /etc/dovecot)
It seems that Dovecot wants to save it as something specific with a different name. Even running sievec manually does not make it work.
Thanks, Wenjie
wenjie zheng wrote:
RHEL 5.3 Dovecot 2.0 beta1 dovecot-sieve (updated 1 week ago, changeset a3eb0b0b2ddf)
Jan 15 11:30:06 mail4a dovecot: lmtp(31015, testmail4a2@dev.p4nt5.com): sieve: using sieve path for user's script: /data/mail/de/ dev.p4nt5.com/te/testmail4a2/.dovecot.sieve Jan 15 11:30:06 mail4a dovecot: lmtp(31015, testmail4a2@dev.p4nt5.com): sieve: executed before user's script(1): /etc/dovecot/dovecot-global-sieve.sieve Jan 15 11:30:06 mail4a dovecot: lmtp(31015, testmail4a2@dev.p4nt5.com): afEDDB6mUEsneQAA0TR52A: sieve: failed to save binary: open(/etc/dovecot/dovecot-global-sieve.svbinmail4a.31015.) failed: Permission denied (euid=5000(virtual) egid=5000(virtual) missing +w perm: /etc/dovecot)
It seems that Dovecot wants to save it as something specific with a different name. Even running sievec manually does not make it work.
It tries to save the compiled binary in the same directory as the script. This requires write access. The error you see is the attempt to create the initial temporary file to which the compiled binary is written. Subsequently, this would be renamed to /etc/dovecot/dovecot-global-sieve.svbin, overwriting any previous binary. To prevent this error, you will need to execute sievec with admin privileges to compile these scripts:
http://wiki.dovecot.org/LDA/Sieve/Dovecot#Script_Compiling
Regards,
Stephan
participants (2)
-
Stephan Bosch
-
wenjie zheng