SIEVE not workin in 3.0.5

Ken Murchison murch at fastmail.com
Thu Mar 22 08:19:37 EDT 2018


This was fixed with 
https://github.com/cyrusimap/cyrus-imapd/commit/73af8e19546f235f6286cc9147a3ea74bde19ebb#diff-020bdafc26d65dd6a68af1d78b11a456

This fix will be in 3.0.6.


On 03/22/2018 07:47 AM, Niels Dettenbach via Info-cyrus wrote:
> Dear all,
>
>
> on a fresh installed cyrus 3.0.5 under Linux i can't get SIEVE reacting to anything (in LMTP). It seems lmtpd avoid calling sieve/timsieve because it did not "find" any "defaultbc" script (which is there).
>
> After tracing the process i found this - it seems the lmtp does not recognize the (existing) "defaultbc" sieve script:
>
>
> --- schnipp ---
>       0.000019 stat("/var/imap/mailboxes.db", {st_mode=S_IFREG|0640, st_size=25920, ...}) = 0
>       0.000026 fcntl(5, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
>       0.000030 readlink("/var/imap/sieve/n/niels^xxxxx^info/defaultbc", 0x7ffc30148f70, 4096) = -1 ENOENT (No such file or directory)
>       0.000025 stat("/var/imap/sieve/n/niels^xxxxx^info/defaultbc", 0x7ffc30149f30) = -1 ENOENT (No such file or directory)
>       0.000029 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 13
>       0.000024 fstat(13, {st_mode=S_IFREG|0644, st_size=1380, ...}) = 0
>       0.000020 read(13, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1380
>       0.000030 read(13, "", 4096)        = 0
>       0.000019 close(13)                 = 0
>       0.000022 open("/etc/group", O_RDONLY|O_CLOEXEC) = 13
>       0.000022 lseek(13, 0, SEEK_CUR)    = 0
>       0.000018 fstat(13, {st_mode=S_IFREG|0644, st_size=616, ...}) = 0
>       0.000021 read(13, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 616
>       0.000021 lseek(13, 0, SEEK_CUR)    = 616
>       0.000018 lseek(13, 0, SEEK_CUR)    = 616
>       0.000018 lseek(13, 0, SEEK_CUR)    = 616
> --- schnapp ---
>
> means:
>       0.000030 readlink("/var/imap/sieve/n/niels^xxxxx^info/defaultbc", 0x7ffc30148f70, 4096) = -1 ENOENT (No such file or directory)
>       0.000025 stat("/var/imap/sieve/n/niels^xxx^info/defaultbc", 0x7ffc30149f30) = -1 ENOENT (No such file or directory)
>
> If i try to ls the files:
>
> not found:
>     ls -alh /var/imap/sieve/n/niels^xxxxx^info/defaultbc
>    ls: Zugriff auf '/var/imap/sieve/n/niels^xxxxx^info/defaultbc' not found
>
> found:
>    ls -alh /var/imap/sieve/n/niels.xxxxx.info/defaultbc
>    lrwxrwxrwx 1 cyrus mail 6 22. Mär 12:04 /var/imap/sieve/n/niels.xxxxx.info/defaultbc -> neu.bc
>
> So it seems the unixsep / path translation does not work here to find the "defaultbc", while other things seem to work:
>
> i.e.:
>      openat(AT_FDCWD, "/var/spool/imap/n/user/niels^xxxxx^info/cyrus.index", O_RDONLY) = 13
>
>
> some settings from imapd.conf
> --- schnipp ---
> configdirectory: /var/imap
>
> duplicate_db_path: /run/cyrus/deliver.db
> ptscache_db_path:  /run/cyrus/ptscache.db
> statuscache_db_path: /run/cyrus/statuscache.db
> tls_sessions_db_path: /run/cyrus/tls_sessions.db
>
>
> defaultpartition: default
> partition-default: /var/spool/imap
>
> sievedir: /var/imap/sieve
> sievenotifier: notifyd
> sieveusehomedir: 0
> sieve_maxscriptsize: 256
> sieve_maxscripts: 64
>
> lmtpsocket: /var/imap/socket/lmtp
> idlesocket: /var/imap/socket/idle
> notifysocket: /var/imap/socket/notify
>
>
> hashimapspool: yes
> virtdomains: yes
> unixhierarchysep: yes
> lmtp_downcase_rcpt: yes
> idlemethod: idled
> lmtp_admins: mail cyrus exim
> imap_admins: cyrus
> sieve_admins: cyrus
> altnamespace: yes
> umask: 027
> --- schnapp ---
>
> any ideas / solutins / hints?
>
>
> Or id i hit a bug in the cyrus internal "path translation" (i.e. conversion between "." and "^" here? Or any internal caching regading this?
>
>
> many thanks for your time and any kind of help,
>
>
> Niels.
>

-- 
Ken Murchison
Cyrus Development Team
FastMail US LLC

-------------- next part --------------
A non-text attachment was scrubbed...
Name: murch.vcf
Type: text/x-vcard
Size: 4 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20180322/548b2433/attachment.vcf>


More information about the Info-cyrus mailing list