[prev in list] [next in list] [prev in thread] [next in thread]
List: info-cyrus
Subject: Re: Sieve script not working
From: "Bron Gondwana" <brong () fastmailteam ! com>
Date: 2019-02-06 17:43:21
Message-ID: 33634f01-9c07-4435-b2e4-9a5e4b9a558e () www ! fastmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Tue, Feb 5, 2019, at 06:20, Andrea Venturoli wrote:
> On 2/2/19 8:25 PM, Bron Gondwana wrote:
> > What is being written to syslog by your lmtpd?
>
> Absolutely nothing (apart from transient errors on the rare occasions
> when I reboot the server and sendmail comes up before imapd).
>
> Is this log to be enabled somehow?
>
No, there should be something in the syslog if sieve errors:
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
> > There's also a sieve-test binary that you can build in the Cyrus source
> > code. I don't think it's built by default on most platforms though, we
> > build it specially at FM. It takes a script and a raw email and spits
> > out a list of actions.
>
> I don't have this (FreeBSD 11.2).
> AFAICT the port doesn't disable this (in configure) or leave it behind
> when installing.
> I tried searching for this binary between "make" and "make install"
> phases (*), but I didn't find it (or any source named anything like it).
> What's the procedure to compile it?
>
> (*)
> > # cd work/cyrus-imapd-2.5.12/
> > # find .|grep -i "sieve-test"
> > # find . -type f -exec grep -i "sieve-test" "{}" ";"
>
Yeah, it's just called test.c in the sieve directory. Here's our buildscript code:
make install DESTDIR=\$(CURDIR)/debian/$basename
make install-binsymlinks DESTDIR=\$(CURDIR)/debian/$basename
/bin/bash ./libtool --mode=install install -o root -m 755 sieve/test \
\$(PWD)/debian/$basename/$basedir/bin/sieve-test install -o root -m 755 tools/rehash \
debian/$basename/$basedir/bin/rehash install -o root -m 755 tools/mkimap \
debian/$basename/$basedir/bin/mkimap
So the binary will probably be sieve/test from a standard build
Oh yeah, you might be interested in the config options we build with too :)
./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 $LEXFIX
make -j 8 all CFLAGS="-g -fPIC -W -Wall -Werror -fstack-protector-all"
Cheers,
Bron.
--
Bron Gondwana, CEO, FastMail Pty Ltd
brong@fastmailteam.com
[Attachment #5 (text/html)]
<!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>
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic