[Dovecot] Problem with sieve: Keep: Generic Error

Thomas Siebert siebert at et.rub.de
Sun Dec 14 21:47:33 EET 2008


> -----Original Message-----
> From: dovecot-bounces+siebert+lists=et.rub.de at dovecot.org
> [mailto:dovecot-bounces+siebert+lists=et.rub.de at dovecot.org] On Behalf
> Of Timo Sirainen
> Sent: Saturday, December 13, 2008 6:37 AM
> To: Thomas Siebert
> Cc: 'Dovecot Mailing List'
> Subject: Re: [Dovecot] Problem with sieve: Keep: Generic Error
> 
> Doesn't it log anything else? I think that "Generic error" is usually
> logged only after the real error message.
> 

No. The error really seems to originate from the "keep"-rule. Here a full
log of a mail delivery. 

(Note that my user has per-user quota set off and has a per-user sieve
script. But this message is put out for each and every delivery, no matter
if the generic script is used or a per-user script.) 


postfix/pipe[13649] 817E0900B3: to=<siebert at et.ruhr-uni-bochum.de>,
relay=dovecot, delay=0.11, delays=0.05/0/0/0.06, dsn=2.0.0, status=sent
(delivered via dovecot service)
deliver(siebert at et.ruhr-uni-bochum.de)
msgid=<00ac01c95e21$dc73ad30$955b0790$@siebert at rub.de>: saved mail to INBOX
deliver(siebert at et.ruhr-uni-bochum.de)
sieve_execute_bytecode(/home/vmail/home/siebert/.dovecot.sievec) failed
deliver(siebert at et.ruhr-uni-bochum.de) sieve runtime error: Keep: Generic
Error
deliver(siebert at et.ruhr-uni-bochum.de) cmusieve: Executing script
/home/vmail/home/siebert/.dovecot.sievec
deliver(siebert at et.ruhr-uni-bochum.de) cmusieve: Using sieve path:
/home/vmail/home/siebert/.dovecot.sieve
deliver(siebert at et.ruhr-uni-bochum.de) maildir++:
root=/home/vmail/home/siebert/Maildir, index=, control=,
inbox=/home/vmail/home/siebert/Maildir
deliver(siebert at et.ruhr-uni-bochum.de) maildir:
data=/home/vmail/home/siebert/Maildir
deliver(siebert at et.ruhr-uni-bochum.de) Namespace: type=private,
prefix=INBOX., sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes
deliver(siebert at et.ruhr-uni-bochum.de) Quota warning: bytes=0 (0%)
messages=0 (80%) command=/etc/dovecot/quota_warn_count.sh 80
deliver(siebert at et.ruhr-uni-bochum.de) Quota warning: bytes=0 (0%)
messages=0 (90%) command=/etc/dovecot/quota_warn_count.sh 90
deliver(siebert at et.ruhr-uni-bochum.de) Quota warning: bytes=0 (0%)
messages=0 (95%) command=/etc/dovecot/quota_warn_count.sh 95
deliver(siebert at et.ruhr-uni-bochum.de) Quota warning: bytes=0 (80%)
messages=0 (0%) command=/etc/dovecot/quota_warn_size.sh 80
deliver(siebert at et.ruhr-uni-bochum.de) Quota warning: bytes=0 (90%)
messages=0 (0%) command=/etc/dovecot/quota_warn_size.sh 90
deliver(siebert at et.ruhr-uni-bochum.de) Quota warning: bytes=0 (95%)
messages=0 (0%) command=/etc/dovecot/quota_warn_size.sh 95
deliver(siebert at et.ruhr-uni-bochum.de) Quota rule: root=User quota mailbox=*
bytes=0 (0%) messages=0 (0%)
deliver(siebert at et.ruhr-uni-bochum.de) Quota rule: root=User quota mailbox=*
bytes=0 (0%) messages=0 (0%)
deliver(siebert at et.ruhr-uni-bochum.de) Quota root: name=User quota
backend=maildir args=
deliver(siebert at et.ruhr-uni-bochum.de) auth input: quota_rule=*:storage=0
deliver(siebert at et.ruhr-uni-bochum.de) auth input: quota_rule2=*:messages=0
deliver(siebert at et.ruhr-uni-bochum.de) auth input:
home=/home/vmail/home/siebert
deliver(siebert at et.ruhr-uni-bochum.de) auth input:
siebert at et.ruhr-uni-bochum.de
deliver(siebert at et.ruhr-uni-bochum.de) Module loaded:
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
deliver(siebert at et.ruhr-uni-bochum.de) Module loaded:
/usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver(siebert at et.ruhr-uni-bochum.de) Loading modules from directory:
/usr/lib/dovecot/modules/lda
postfix/smtpd[13644] disconnect from
mx2.rz.ruhr-uni-bochum.de[134.147.64.30]
postfix/qmgr[30744] 817E0900B3: from=<thomas.siebert at rub.de>, size=1532,
nrcpt=1 (queue active)
postfix/cleanup[13648] 817E0900B3:
message-id=<00ac01c95e21$dc73ad30$955b0790$@siebert at rub.de>
postfix/smtpd[13644] 817E0900B3:
client=mx2.rz.ruhr-uni-bochum.de[134.147.64.30]
postfix/smtpd[13644] connect from mx2.rz.ruhr-uni-bochum.de[134.147.64.30]





> On Fri, 2008-12-12 at 16:39 +0100, Thomas Siebert wrote:
> > OK, now i compiled the latest debian version (1.1.7 from
> > ftp://ftp.debian.org/debian/pool/main/d/dovecot/) myself and I still
> > get the same error.
> >
> > Any ideas, Timo? ;-)
> >
> >
> >
> > > > -----Original Message-----
> > > > From: dovecot-bounces+siebert+lists=et.rub.de at dovecot.org
> > > > [mailto:dovecot-bounces+siebert+lists=et.rub.de at dovecot.org] On
> > > Behalf
> > > > Of Thomas Siebert
> > > > Sent: Wednesday, December 03, 2008 3:15 AM
> > > > To: dovecot at dovecot.org
> > > > Subject: [Dovecot] Problem with sieve: Keep: Generic Error
> > > >
> > > > Hi,
> > > >
> > > > i came across a strange error message in Ubuntu 8.10s package
> > > (Dovecot
> > > > 1.1.4) regarding sieve:
> > > > 	sieve runtime error: Keep: Generic Error
> > > > 	sieve_execute_bytecode(/etc/dovecot/sieve/default.sievec)
> failed
> > > >
> > > > Note that the Sieve Scripts are basically executed fine and
> > > > working fine.
> > > > After a lot of testing I suppose the following: "keep" doesn't
> > > > detect the private namespace I have to use
> > > > (courier-compatibility...), thus
> > > sieve
> > > > fails
> > > > to do "keep", the message is handed back to dovecot-deliver which
> > > does
> > > > a
> > > > "keep"-similar action itself. If I have a script with "keep;" as
> > > > the only command, I get this error message. If my script is
> > > > totally blank
> > > (i.e.
> > > > implicit keep only), I get the same error. But if there's no
> > > > implicit or explicit "keep", e.g. "fileinto INBOX;" as only
> > > > command, there's no error.
> > > > Also IMAP-Folders, e.g. "fileinto INBOX.Test", work.
> > > >
> > > > Unfortunately, "fileinto INBOX" as default is no option for me,
> as
> > > > I use a delimiter and want to let deliver put the mails into the
> > > > according IMAP-Folders.
> > > >
> > > > Is this a known bug? Any Ideas?
> > > >
> > > >
> > > > Thanks,
> > > > Thomas
> > > >
> > > >
> > > > Here's my dovecot -n output:
> > > > log_timestamp: %Y-%m-%d %H:%M:%S
> > > > protocols: imap imaps pop3 pop3s
> > > > ssl_cert_file: /etc/ssl/certs/mail_cip.pem
> > > > ssl_key_file: /etc/ssl/private/mail_cip.key
> > > > disable_plaintext_auth: no
> > > > login_dir: /var/run/dovecot/login
> > > > login_executable(default): /usr/lib/dovecot/imap-login
> > > > login_executable(imap): /usr/lib/dovecot/imap-login
> > > > login_executable(pop3): /usr/lib/dovecot/pop3-login
> > > > first_valid_uid: 501
> > > > last_valid_uid: 501
> > > > first_valid_gid: 501
> > > > last_valid_gid: 501
> > > > mail_privileged_group: mail
> > > > mail_uid: 501
> > > > mail_gid: 501
> > > > mail_location: maildir:~/Maildir
> > > > mail_executable(default): /usr/lib/dovecot/imap
> > > > mail_executable(imap): /usr/lib/dovecot/imap
> > > > mail_executable(pop3): /usr/lib/dovecot/pop3
> > > > mail_plugins(default): acl quota imap_quota
> > > > mail_plugins(imap): acl quota imap_quota
> > > > mail_plugins(pop3): quota
> > > > mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
> > > > mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
> > > > mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
> > > > imap_client_workarounds(default): delay-newmail netscape-eoh
> > > > imap_client_workarounds(imap): delay-newmail netscape-eoh
> > > > imap_client_workarounds(pop3):
> > > > pop3_uidl_format(default): %08Xu%08Xv
> > > > pop3_uidl_format(imap): %08Xu%08Xv
> > > > pop3_uidl_format(pop3): %f
> > > > pop3_client_workarounds(default):
> > > > pop3_client_workarounds(imap):
> > > > pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
> > > > namespace:
> > > >   type: private
> > > >   prefix: INBOX.
> > > >   inbox: yes
> > > >   list: yes
> > > >   subscriptions: yes
> > > > auth default:
> > > >   mechanisms: plain login
> > > >   passdb:
> > > >     driver: ldap
> > > >     args: /etc/dovecot/dovecot-ldap.conf
> > > >   userdb:
> > > >     driver: prefetch
> > > >   userdb:
> > > >     driver: ldap
> > > >     args: /etc/dovecot/dovecot-ldap.conf
> > > >   socket:
> > > >     type: listen
> > > >     client:
> > > >       path: /var/spool/postfix/private/auth
> > > >       mode: 384
> > > >       user: postfix
> > > >     master:
> > > >       path: /var/run/dovecot/auth-master
> > > >       mode: 384
> > > >       user: vmail
> > > > plugin:
> > > >   quota: maildir:User quota
> > > >   quota_rule: *:storage=100M
> > > >   quota_rule2: *:messages=5000
> > > >   quota_warning: storage=95%% /etc/dovecot/quota_warn_size.sh 95
> > > >   quota_warning2: storage=90%% /etc/dovecot/quota_warn_size.sh 90
> > > >   quota_warning3: storage=80%% /etc/dovecot/quota_warn_size.sh 80
> > > >   quota_warning4: messages=95%% /etc/dovecot/quota_warn_count.sh
> 95
> > > >   quota_warning5: messages=90%% /etc/dovecot/quota_warn_count.sh
> 90
> > > >   quota_warning6: messages=80%% /etc/dovecot/quota_warn_count.sh
> 80
> > > >   acl: vfile:/etc/dovecot/acls:cache_secs=300
> > > >
> > >
> >



More information about the dovecot mailing list