I can connect and install sieve scripts and a sieve script that performs a blanket reject of all mail fails, so I know that sieve works at least somewhat...
Here is the output when I connect to the sieve port on the machine:
"IMPLEMENTATION" "Cyrus timsieved v2.2.8-Invoca-RPM-2.2.8-1"
"SASL" "PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational regex"
"STARTTLS"
OK
This would appear to indicate that vacation is running on the machine.
Here is the sample vacation script that I am trying to run:
require "vacation";
vacation :days 1 :subject "This account never responds" "This is a test vacation reply";
Here is the /var/log/maillog entry from the machine running cyrus that shows mail flowing into the machine and just ending up in the inbox:
Aug 20 12:38:03 facil5-cs sendmail[2623]: i7KGc3hm002623: from=<[EMAIL PROTECTED]>, size=923, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, relay=fafnir.cs.unc.edu [152.2.129.90]
Aug 20 12:38:03 facil5-cs master[2626]: about to exec /usr/lib/cyrus-imapd/lmtpdAug 20 12:38:03 facil5-cs lmtpunix[2626]: executed
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: accepted connection
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: lmtp connection preauth'd as postman
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: duplicate_check: <[EMAIL PROTECTED]> user.anderegg 0
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: mystore: starting txn 2147483652
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: mystore: committing txn 2147483652
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: duplicate_mark: <[EMAIL PROTECTED]> user.anderegg 1093019883 24
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: mystore: starting txn 2147483653
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: mystore: committing txn 2147483653
Aug 20 12:38:03 facil5-cs lmtpunix[1066]: duplicate_mark: <[EMAIL PROTECTED]> [EMAIL PROTECTED] 1093019883 0
Aug 20 12:38:03 facil5-cs sendmail[2625]: i7KGc3hm002623: to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=30923, relay=localhost, dsn=2.0.0, stat=Sent
If I change the active sieve script to the following, then I the maillog that follows the sieve script shows the message coming in and then the rejection going back out:
require "reject";
reject "This machine should not accept mail to me";
Here is the maillog:
Aug 20 12:45:27 facil5-cs sendmail[2653]: i7KGjRvp002653: from=<[EMAIL PROTECTED]>, size=927, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, relay=fafnir.cs.unc.edu [152.2.129.90]
Aug 20 12:45:27 facil5-cs lmtpunix[2626]: accepted connection
Aug 20 12:45:27 facil5-cs lmtpunix[2626]: lmtp connection preauth'd as postman
Aug 20 12:45:27 facil5-cs master[2656]: about to exec /usr/lib/cyrus-imapd/lmtpdAug 20 12:45:27 facil5-cs lmtpunix[2656]: executed
Aug 20 12:45:27 facil5-cs lmtpunix[2626]: mystore: starting txn 2147483655
Aug 20 12:45:27 facil5-cs lmtpunix[2626]: mystore: committing txn 2147483655
Aug 20 12:45:27 facil5-cs lmtpunix[2626]: duplicate_mark: <[EMAIL PROTECTED]> .anderegg.sieve. 1093020327 0
Aug 20 12:45:27 facil5-cs sendmail[2657]: i7KGjRS5002657: Authentication-Warning: facil5-cs.cs.unc.edu: cyrus set sender to <> using -f
Aug 20 12:45:27 facil5-cs sendmail[2657]: i7KGjRS5002657: from=<>, size=2472, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Aug 20 12:45:28 facil5-cs sendmail[2659]: i7KGjRUx002659: from=<>, size=2732, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 20 12:45:28 facil5-cs sendmail[2657]: i7KGjRS5002657: [EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=32472, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i7KGjRUx002659 Message accepted for delivery)
Aug 20 12:45:28 facil5-cs lmtpunix[2626]: mystore: starting txn 2147483656
Aug 20 12:45:28 facil5-cs lmtpunix[2626]: mystore: committing txn 2147483656
Aug 20 12:45:28 facil5-cs lmtpunix[2626]: duplicate_mark: <[EMAIL PROTECTED]> [EMAIL PROTECTED] 1093020328 0
Aug 20 12:45:28 facil5-cs sendmail[2655]: i7KGjRvp002653: to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:00:01, mailer=cyrusv2, pri=30927, relay=localhost, dsn=2.0.0, stat=Sent
Aug 20 12:45:28 facil5-cs sendmail[2661]: STARTTLS=client, relay=fafnir.cs.unc.edu., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Aug 20 12:45:28 facil5-cs sendmail[2661]: i7KGjRUx002659: to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=32732, relay=fafnir.cs.unc.edu. [152.2.129.90], dsn=2.0.0, stat=Sent (i7KGjSWu019696 Message accepted for delivery)
A second question:
How does one reset the time record for a sender in vacation? Does it reset whenever you upload a new script?
Thank you, --Murray Anderegg --- 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