[Dovecot] sieve /editheader / addheader :last crash

Peter Rindfuss peter.rindfuss at wzb.eu
Sat Feb 9 21:20:42 EET 2013


Am 2013-02-09 09:27, schrieb Stephan Bosch:
>
> I'm unable to reproduce this so far. Could you show me more details of
> your setup?
>
> * Output from: dovecot -n
> * Your exact test message
> * Your exact test Sieve script
> * The sieve-test command line
>

Hi Stephan,

attached are "dovecot -n", a test message, and three very similar 
scripts one of which causes the crash and two not.

I'm inclined to say that the message itself does not matter.

This ist the sieve-test cmd line:
  sieve-test -t - -a 'brot at wzb.eu' -l /wzb/mail/brot/Maildir -e -x 
+editheader /wzb/mail/brot/sieve/{bad|good1|good2}.sieve mail

Initially I encountered the problem in real deliveries, not in 
sieve-test. It is always reproducible.

Best, Peter



-------------- next part --------------
#
# 2013-02-08 PR
#
# causes crash
#

require ["editheader"];

addheader :last "X-Someheader" "Crash";

deleteheader  "X-Otherheader";


-------------- next part --------------
# 2.1.14 (443ff272317f): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 
auth_mechanisms = plain login
auth_worker_max_count = 60
default_client_limit = 2000
default_process_limit = 200
disable_plaintext_auth = no
first_valid_gid = 8
first_valid_uid = 8
hostname = imap.wzb.eu
last_valid_gid = 8
last_valid_uid = 8
listen = *
log_path = /var/log/dovecot/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = mail
mail_location = maildir:~/Maildir
mail_privileged_group = mail
mail_uid = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave editheader
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = INBOX.
  separator = .
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  fts = squat
  fts_squat = partial=4 full=10
  recipient_delimiter = +
  sieve = ~/.dovecot.sieve
  sieve_after = /var/lib/dovecot/sieve/after.sieve
  sieve_default = /var/lib/dovecot/sieve/default.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +editheader
}
postmaster_address = root at calypso.wzb.eu
protocols = " imap lmtp sieve pop3"
service auth {
  unix_listener auth-userdb {
    group = mail
    mode = 0600
    user = mail
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
  process_limit = 1024
  process_min_avail = 10
}
service imap {
  process_limit = 8192
}
service lmtp {
  inet_listener lmtp {
    address = 193.174.6.5 127.0.0.1
    port = 24
  }
  process_min_avail = 10
  user = mail
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
service managesieve {
  process_limit = 2048
}
service pop3-login {
  inet_listener pop3 {
    port = 10110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service pop3 {
  process_limit = 128
}
ssl_cert = </etc/dovecot/certs/imap_chain.pem
ssl_cipher_list = ALL:!aNULL:!eNULL:!ADH!LOW:!MEDIUM:!EXP:!SSLv2:HIGH
ssl_key = </etc/dovecot/certs/imap.key
submission_host = smtp.wzb.eu
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  log_path = /var/log/dovecot/lmtp.log
  mail_plugins = " notify sieve mail_log"
}
protocol lda {
  log_path = /var/log/dovecot/lda.log
  mail_plugins = " notify sieve mail_log"
}
protocol imap {
  mail_max_userip_connections = 40
  mail_plugins = " fts fts_squat"
}
protocol sieve {
  managesieve_logout_format = bytes=%i/%o
}
-------------- next part --------------
#
# 2013-02-08 PR
#
# does not crash
#

require ["editheader"];

addheader "X-Someheader" "No-Crash";

deleteheader  "X-Otherheader";


-------------- next part --------------
#
# 2013-02-08 PR
#
# does not cause crash
#

require ["editheader"];

deleteheader  "X-Otherheader";

addheader :last "X-Someheader" "No-Crash";
-------------- next part --------------
Envelope-To: <brot at wzb.eu>
Return-Path: <peter.rindfuss at web.de>
Received: from athene.wzb.eu ([193.174.6.3])
        by imap.wzb.eu (Dovecot) with LMTP id RnDFD4CYElHhQgAAHSXelQ
        for <brot at wzb.eu>; Wed, 06 Feb 2013 18:53:04 +0100
Received: from mout.web.de ([212.227.15.3])
        by athene.wzb.eu with esmtp (Exim 4.75)
        (envelope-from <peter.rindfuss at web.de>)
        id 1U39B4-0001f9-TT
        for brot at wzb.eu; Wed, 06 Feb 2013 18:53:04 +0100
Received: from 3capp-webde-bs15.server.lan ([172.19.170.15]) by
 mriweb.server.lan (mriweb002) with ESMTPA (Nemesis) id
 0MLkbN-1U2sKP38b5-000Y67 for <brot at wzb.eu>; Wed, 06 Feb 2013 18:52:58 +0100
Received: from [193.174.6.50] by 3capp-webde-bs15.server.lan with HTTP; Wed
 Feb 06 18:52:58 CET 2013
MIME-Version: 1.0
Message-ID: <trinity-682710e5-97aa-43f7-9566-0b109147d012-1360173178679 at 3capp-webde-bs15>
From: =?UTF-8?Q?=22Peter_Rindfu=C3=9F=22?= <peter.rindfuss at web.de>
To: brot at wzb.eu
Subject: +++ sieve addheader :last +++
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Date: Wed, 6 Feb 2013 18:52:58 +0100 (CET)
Sensitivity: Normal
X-Provags-ID: V03:K0:6lCMlXLjuBgCnXkcBwJTgQbIiiRb5Bd0a1AQQ7a/uQK
 sCDK/KfOHBK7WQnRs8SlTj42min3T6DI7FxgagEA0O/CWMdINx
 pVZopA2fc2ARvdVtcP31abI/v2eKP+iKOREELDoblEkhnjIqJ0
 iuQJFBB256fg3hhrAe+mNhbbk5wTxlm2cX9DNqrNdwqSG62Xr5
 XZiQr8dWzAqdxEqbuLhf0wekHpkA4nnmZpKUIipkXhyt6GwYqa
 CBgZ+dIGF4JTVxaSoexgptMyl3fmmsmBD32J6Oj6+Nt57j548p
 cB5KEaCWmJlgWQHKcNuQUMGFVe3
X-WZB-Sender: peter.rindfuss at web.de
X-WZB-Virus-Scanned: by Clam AntiVirus and F-Secure AntiVirus at athene.wzb.eu
X-WZB-Spam-Score: 7
X-WZB-Spam-Report: Content analysis details:
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
                             trust
                             [212.227.15.3 listed in list.dnswl.org]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail provider
                             (peter.rindfuss[at]web.de)
 -0.0 RP_MATCHES_RCVD        Envelope sender domain matches handover relay domain
  0.0 HTML_MESSAGE           BODY: HTML included in message
  0.7 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
X-Priority: 3 (Normal)
Importance: Normal
Priority: normal

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"><div>test lmtp +++++<br/></div></div><div><br/></div></div></div><div><br/></div></div></div><div><br/></div></div><div><br/></div></div><div><br/></div></div></body></html>


More information about the dovecot mailing list