Working Vacation??
Mark Keasling
mark at air.co.jp
Thu Jan 9 21:19:22 EST 2003
Hi Ken,
I can get a rejection; but, I can't get a vacation.
Here's the info you requested.
-----sieve script-----
require ["fileinto", "notify", "vacation", "reject"];
if allof( header :contains :comparator "i;octet" ["Subject"] ["TEST"] ) {
vacation :subject "I wanna vacation" "Yes, I really wanna vacation" ;
}
if allof( header :contains :comparator "i;octet" ["Subject"] ["Reject"] ) {
reject "This is a rejection notice";
}
-----cyrus.conf-----
START {
recover cmd="ctl_cyrusdb -r"
}
SERVICES {
imap cmd="imapd" listen="imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=3
notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
checkpoint cmd="ctl_cyrusdb -c" period=30
delprune cmd="ctl_deliver -E 3" period=1440
tlsprune cmd="tls_prune" period=1440
}
-----imapd.conf-----
configdirectory: /export/home/cyrus/imap/config
partition-default: /export/home/cyrus/imap/default
sasl_pwcheck_method: auxprop
hashimapspool: yes
sievedir: /export/home/cyrus/imap/sieve
# usually
# sievenotifier: null
# mailnotifier: null
# but currently
sievenotifier: log
mailnotifier: log
notifysocket: /var/imap/socket/notify
admins: cyrus circus
allowplaintext: false
altnamespace: false
unixhierarchysep: false
-----imapd.log-----
Jan 10 10:27:39 air master[11328]: [ID 965400 local6.notice] process started
Jan 10 10:27:39 air master[11330]: [ID 392559 local6.debug] about to exec /opt/imap/bin/ctl_cyrusdb
Jan 10 10:27:39 air ctl_cyrusdb[11330]: [ID 702911 local6.notice] recovering cyrus databases
Jan 10 10:27:46 air ctl_cyrusdb[11330]: [ID 127214 local6.notice] done recovering cyrus databases
Jan 10 10:27:46 air master[11328]: [ID 139525 local6.notice] ready for work
Jan 10 10:27:46 air master[11360]: [ID 392559 local6.debug] about to exec /opt/imap/bin/tls_prune
Jan 10 10:27:46 air master[11361]: [ID 392559 local6.debug] about to exec /opt/imap/bin/ctl_deliver
Jan 10 10:27:46 air master[11362]: [ID 392559 local6.debug] about to exec /opt/imap/bin/ctl_cyrusdb
Jan 10 10:27:46 air ctl_cyrusdb[11362]: [ID 702911 local6.notice] checkpointing cyrus databases
Jan 10 10:27:46 air master[11363]: [ID 392559 local6.debug] about to exec /opt/imap/bin/timsieved
Jan 10 10:27:46 air sieve[11363]: [ID 518349 local6.debug] executed
Jan 10 10:27:46 air master[11364]: [ID 392559 local6.debug] about to exec /opt/imap/bin/notifyd
Jan 10 10:27:46 air notify[11364]: [ID 518349 local6.debug] executed
Jan 10 10:27:46 air tls_prune[11360]: [ID 275131 local6.notice] skiplist: recovered /export/home/cyrus/imap/config/tls_sessions.db (0 records, 144 bytes) in 0 seconds
Jan 10 10:27:46 air tls_prune[11360]: [ID 383969 local6.notice] tls_prune: purged 0 out of 0 entries
Jan 10 10:27:46 air master[11328]: [ID 310780 local6.debug] process 11360 exited, status 0
Jan 10 10:27:46 air master[11365]: [ID 392559 local6.debug] about to exec /opt/imap/bin/timsieved
Jan 10 10:27:46 air sieve[11365]: [ID 518349 local6.debug] executed
Jan 10 10:27:47 air ctl_cyrusdb[11362]: [ID 578205 local6.debug] archiving database file: /export/home/cyrus/imap/config/mailboxes.db
Jan 10 10:27:47 air ctl_cyrusdb[11362]: [ID 448116 local6.debug] archiving log file: /export/home/cyrus/imap/config/db/log.0000000001
Jan 10 10:27:48 air ctl_cyrusdb[11362]: [ID 127214 local6.notice] done checkpointing cyrus databases
Jan 10 10:27:48 air master[11328]: [ID 310780 local6.debug] process 11362 exited, status 0
Jan 10 10:27:48 air master[11370]: [ID 392559 local6.debug] about to exec /opt/imap/bin/timsieved
Jan 10 10:27:48 air sieve[11370]: [ID 518349 local6.debug] executed
Jan 10 10:27:53 air ctl_deliver[11361]: [ID 275131 local6.notice] skiplist: recovered /export/home/cyrus/imap/config/deliver.db (53 records, 2834412 bytes) in 7 seconds
Jan 10 10:27:53 air ctl_deliver[11361]: [ID 730478 local6.notice] duplicate_prune: pruning back 3 days
Jan 10 10:27:53 air ctl_deliver[11361]: [ID 371192 local6.notice] duplicate_prune: purged 0 out of 53 entries
Jan 10 10:27:53 air master[11328]: [ID 310780 local6.debug] process 11361 exited, status 0
Jan 10 10:30:21 air master[11383]: [ID 392559 local6.debug] about to exec /opt/imap/bin/lmtpd
Jan 10 10:30:21 air lmtpunix[11383]: [ID 518349 local6.debug] executed
Jan 10 10:30:21 air lmtpd[11383]: [ID 921384 local6.debug] accepted connection
Jan 10 10:30:21 air lmtpd[11383]: [ID 685068 local6.debug] lmtp connection preauth'd as postman
Jan 10 10:30:21 air lmtpd[11383]: [ID 100061 local6.debug] duplicate_check: <20030110012111324.testuser1 at air.co.jp> user.testuser2 0
Jan 10 10:30:21 air notifyd[11364]: [ID 921384 local6.debug] accepted connection
Jan 10 10:30:21 air notifyd[11364]: [ID 414469 local6.debug] do_notify using method 'log'
Jan 10 10:30:21 air notifyd[11364]: [ID 545175 local6.info] MAIL, , testuser2, INBOX, "From: testuser1 at air.co.jp
Jan 10 10:30:21 air Subject: TEST
Jan 10 10:30:21 air To: testuser2 at air.co.jp
Jan 10 10:30:21 air "
Jan 10 10:30:21 air lmtpd[11383]: [ID 516477 local6.debug] duplicate_mark: <20030110012111324.testuser1 at air.co.jp> user.testuser2 1042162221
Jan 10 10:30:21 air lmtpd[11383]: [ID 516477 local6.debug] duplicate_mark: <20030110012111324.testuser1 at air.co.jp> .testuser2+.sieve. 1042162221
Jan 10 10:31:15 air master[11385]: [ID 392559 local6.debug] about to exec /opt/imap/bin/imapd
Jan 10 10:31:15 air imap[11385]: [ID 518349 local6.debug] executed
Jan 10 10:31:15 air imapd[11385]: [ID 921384 local6.debug] accepted connection
Jan 10 10:31:16 air imapd[11385]: [ID 596527 local6.notice] login: air.co.jp[192.168.10.90] testuser2 DIGEST-MD5 User logged in
Jan 10 10:31:16 air imapd[11385]: [ID 677757 local6.debug] seen_db: user testuser2 opened /export/home/cyrus/imap/config/user/O/testuser2.seen
Jan 10 10:31:21 air master[11328]: [ID 310780 local6.debug] process 11383 exited, status 0
-----syslog-----
Jan 10 10:30:21 air sendmail[11380]: [ID 801593 mail.info] h0A1ULh11380: from=<testuser1 at air.co.jp>, size=512, class=0, nrcpts=1, msgid=<20030110012111324.kumiko at air.co.jp>, proto=ESMTP, daemon=MTA, relay=localhost
Jan 10 10:30:21 air sendmail[11382]: [ID 801593 mail.info] h0A1ULh11380: to=<testuser2 at air.co.jp>, delay=00:00:00, xdelay=00:00:00, mailer=cyrus, pri=120512, relay=localhost, dsn=2.0.0, stat=Sent
-----sendmail location-----
/usr/lib/sendmail
-----other info-----
SunOS air 5.8 Generic_108528-08 sun4u sparc SUNW,Ultra-5_10
cyrus-imapd-2.1.11
setenv CPPFLAGS -I/opt/imap/include
setenv LDFLAGS "-L/opt/imap/lib -R/opt/imap/lib"
setenv PATH .:/export/home/mark/bin:/export/home/opensource/bin:/opt/imap/perl-5.8.0/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/local/bin:/usr/openwin/bin:/usr/dt/bin:/usr/bin:/usr/sbin
./configure
--prefix=/opt/imap/imapd-2.1.11
--with-cyrus-prefix=/opt/imap
--with-cyrus-group=mail
--with-cyrus-user=cyrus
--with-dbdir=/opt/imap
--with-duplicate-db=skiplist
--with-mailbox-db=skiplist
--with-seen-db=flat
--with-subs-db=flat
--with-tls-db=skiplist
--with-idle=poll
--with-lock=fcntl
--with-openssl=/opt/imap
--with-perl
--with-sasl=/opt/imap
--with-statedir=/var/imap/state
--with-libwrap=yes
--with-auth=unix
--enable-fulldirhash
--enable-gssapi=/opt/imap
Regards,
Mark Keasling <mark at air.co.jp>
>From before....
On Thu, 09 Jan 2003 10:06:10 -0500, Ken Murchison <ken at oceana.com> wrote...
>
>
> Mark Keasling wrote:
> >
> > Hi,
> >
> > Has anyone got sieve's vacation notifications to work? If you have,
>
> Yes. Since I fixed it in 1.6.x. :)
>
> > can you post your imapd.conf and cyrus.conf files and a sieve script?
> >
> > Haven't been able to get it to work, think everything has been tried
> > and have run out of hair... ;)
>
> Why don't you post your configs, along with any relevant imapd.log and
> maillog entries?
>
> What MTA are you using?
>
> Have you tried a redirect or reject? This will verify that you can send
> out responses, vacation has more complexity.
>
> Have you tried passing a message and your script through the sieve test
> program (sieve/test.c)?
>
> 9 times out of 10, this problem is because your MTA chokes on the
> sendmail command line passed to it, or the address matching in Sieve
> fails.
>
> --
> Kenneth Murchison Oceana Matrix Ltd.
> Software Engineer 21 Princeton Place
> 716-662-8973 x26 Orchard Park, NY 14127
> --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
More information about the Info-cyrus
mailing list