<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">On Tue, Feb 5, 2019, at 06:20, Andrea Venturoli wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div style="font-family:Arial;">On 2/2/19 8:25 PM, Bron Gondwana wrote:<br></div><div style="font-family:Arial;">> What is being written to syslog by your lmtpd?<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Absolutely nothing (apart from transient errors on the rare occasions <br></div><div style="font-family:Arial;">when I reboot the server and sendmail comes up before imapd).<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Is this log to be enabled somehow?<br></div><div style="font-family:Arial;"><br></div></blockquote><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">No, there should be something in the syslog if sieve errors:<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">2019-02-06T12:31:26-05:00 imap38 sloti38d1t08/lmtp[2916700]: sieve runtime error for foo@fastmail.com id <foo-123214321342@example.com>: Fileinto (Testing): Mailbox does not exist<br></div><div style="font-family:Arial;"><br></div><blockquote type="cite" id="fastmail-quoted"><div style="font-family:Arial;">> There's also a sieve-test binary that you can build in the Cyrus source <br></div><div style="font-family:Arial;">> code. I don't think it's built by default on most platforms though, we <br></div><div style="font-family:Arial;">> build it specially at FM. It takes a script and a raw email and spits <br></div><div style="font-family:Arial;">> out a list of actions.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">I don't have this (FreeBSD 11.2).<br></div><div style="font-family:Arial;">AFAICT the port doesn't disable this (in configure) or leave it behind <br></div><div style="font-family:Arial;">when installing.<br></div><div style="font-family:Arial;">I tried searching for this binary between "make" and "make install" <br></div><div style="font-family:Arial;">phases (*), but I didn't find it (or any source named anything like it).<br></div><div style="font-family:Arial;">What's the procedure to compile it?<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">(*)<br></div><div style="font-family:Arial;">> # cd work/cyrus-imapd-2.5.12/<br></div><div style="font-family:Arial;">> # find .|grep -i "sieve-test"<br></div><div style="font-family:Arial;">> # find . -type f -exec grep -i "sieve-test" "{}" ";"<br></div><div style="font-family:Arial;"><br></div></blockquote><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Yeah, it's just called test.c in the sieve directory. Here's our buildscript code:<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">make install DESTDIR=\$(CURDIR)/debian/$basename</span><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font"><br></span></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">make install-binsymlinks DESTDIR=\$(CURDIR)/debian/$basename</span><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font"><br></span></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">/bin/bash ./libtool --mode=install install -o root -m 755 sieve/test \$(PWD)/debian/$basename/$basedir/bin/sieve-test</span><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font"><br></span></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">install -o root -m 755 tools/rehash debian/$basename/$basedir/bin/rehash</span><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font"><br></span></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">install -o root -m 755 tools/mkimap debian/$basename/$basedir/bin/mkimap</span><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">So the binary will probably be sieve/test from a standard build<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Oh yeah, you might be interested in the config options we build with too :)<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">./configure --without-krb --with-perl=/usr/bin/perl --enable-silent-rules --enable-http --enable-calalarmd --enable-idled --with-extraident=$tag --prefix=/$basedir --with-lmdb --with-zlib --without-snmp --enable-replication --enable-xapian --enable-jmap --enable-backup XAPIAN_CONFIG=/usr/local/$CYRUSLIBS/bin/xapian-config-1.5<br></span></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">$LEXFIX<br></span></div><div style="font-family:Arial;"><span style="font-family: menlo, consolas, monospace, sans-serif;" class="font">make -j 8 all CFLAGS="-g -fPIC -W -Wall -Werror -fstack-protector-all"</span><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Cheers,<br></div><div style="font-family:Arial;"><br>Bron.</div><div style="font-family:Arial;"><br></div><div id="sig56629417"><div class="signature">--<br></div><div class="signature"> Bron Gondwana, CEO, FastMail Pty Ltd<br></div><div class="signature"> brong@fastmailteam.com<br></div><div class="signature"><br></div></div><div style="font-family:Arial;"><br></div></body></html>