Hello everyone,
I've been trying for a while now to setup new mail notifications using
sieve's notify.
I've tested sieve in cyrus with a forwarding script.
Now I've edited cyrus.conf to enable the notify daemon, and tested that as
well using:
notifytest -f "/var/lib/imap/socket/notify" -t "test" -n mailto
mluich@xxxxxxxxxxxxxxx
Which was successful.
I've tried a number of revisions of the following script and nothing I've
tried seems to work. I can see cyrus running sieve and the local delivery
but no indication of the notification being tried.
require
["fileinto","reject","vacation","imapflags","relational","regex","notify"];
# send a reciept notification:
if true {
notify :method "mailto" :options ["mluich@xxxxxxxxxxxxxxx"]
:message "New FastandSecure Message";
keep;
}
Thanks everyone.
Michael Luich
mluich@xxxxxxxxxxxxxxx
Jul 10 14:49:05 mail1 sendmail[773]: k6AIn5rl000773: to=mluich,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30055, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(k6AIn5YV000774 Message accepted for delivery)Jul 10 14:49:05 mail1
lmtpunix[553]: duplicate_check:
<200607101849.k6AIn5rl000773@xxxxxxxxxxxxxxxxxxxxxxx> user.mluich 0
Jul 10 14:49:05 mail1 lmtpunix[553]: duplicate_mark:
<200607101849.k6AIn5rl000773@xxxxxxxxxxxxxxxxxxxxxxx> user.mluich
1152557345 18
Jul 10 14:49:05 mail1 lmtpunix[553]: duplicate_mark:
<200607101849.k6AIn5rl000773@xxxxxxxxxxxxxxxxxxxxxxx> .mluich+@.sieve.
1152557345 0
Jul 10 14:49:05 mail1 sendmail[776]: k6AIn5YV000774:
to=<mluich@xxxxxxxxxxxxxxxxxxxxxxx>, delay=00:00:00, xdelay=00:00:00,
mailer=cyrusv2, pri=120371, relay=localhost, dsn=2.0.0, stat=Sent
Jul 10 14:49:48 mail1 imap[736]: logi
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html