RE: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8

2004-08-23 Thread Sujit Choudhury
I am bit confused here.  We don't have any local users and hence no
.forward file for postfix to look at.

=
This is the header of a mail that works:

Return-Path: <[EMAIL PROTECTED]>
Received: from chico.wmin.ac.uk ([unix socket])
 by chico (Cyrus v2.2.6) with LMTPA;
 Fri, 20 Aug 2004 14:12:45 +0100
X-Sieve: CMU Sieve 2.2
Received: from ncs-maila.intranet.wmin.ac.uk (ncs-mail2.wmin.ac.uk
[161.74.160.106])
by chico.wmin.ac.uk (Postfix) with ESMTP id A429BA0F
for <[EMAIL PROTECTED]>; Fri, 20 Aug 2004 14:12:45 +0100
(BST)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: testing
x-mimeole: Produced By Microsoft Exchange V6.0.6249.0
Date: Fri, 20 Aug 2004 14:13:15 +0100
Message-ID:
<[EMAIL PROTECTED]>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: testing
Thread-Index: AcSGt5icbIjCkIuBTAGiDMcgLrMmnQ==
From: "Sujit Choudhury" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>

This is the reply I got from vacation filter - showing it worked (in one
case):

Microsoft Mail Internet Headers Version 2.0
Received: from ncs-maila.intranet.wmin.ac.uk ([161.74.160.177]) by
NCS-MAILB.intranet.wmin.ac.uk with Microsoft SMTPSVC(5.0.2195.6713);
 Fri, 20 Aug 2004 14:13:17 +0100
Received: from garuda.wmin.ac.uk ([161.74.160.7]) by
ncs-maila.intranet.wmin.ac.uk with Microsoft SMTPSVC(5.0.2195.6713);
 Fri, 20 Aug 2004 14:13:17 +0100
Received: from chico.wmin.ac.uk ([161.74.160.77])
by garuda.wmin.ac.uk with esmtp (Exim 4.12)
id 1By9Dn-0001qo-00
for [EMAIL PROTECTED]; Fri, 20 Aug 2004 14:14:19
+0100
Received: by chico.wmin.ac.uk (Postfix, from userid 80)
id BB6C7B72; Fri, 20 Aug 2004 14:12:45 +0100 (BST)
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 20 Aug 2004 14:12:45 +0100
X-Sieve: CMU Sieve 2.2
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Testing
In-Reply-To:
<[EMAIL PROTECTED]>
Auto-Submitted: auto-replied (vacation)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/)
*1By9Dn-0001qo-00*4jiKCZsHI92*
Return-Path: <>
X-OriginalArrivalTime: 20 Aug 2004 13:13:17.0206 (UTC)
FILETIME=[74ED4360:01C486B7]


This is another message from another user that does not work:


Return-Path: <[EMAIL PROTECTED]>
Received: from chico.wmin.ac.uk ([unix socket])
 by chico (Cyrus v2.2.6) with LMTPA;
 Fri, 20 Aug 2004 14:25:32 +0100
X-Sieve: CMU Sieve 2.2
Received: from garuda.wmin.ac.uk (garuda.wmin.ac.uk [161.74.160.7])
by chico.wmin.ac.uk (Postfix) with ESMTP id DA853A0F
for <[EMAIL PROTECTED]>; Fri, 20 Aug 2004 14:25:32 +0100
(BST)
Received: from cougar.wmin.ac.uk ([161.74.160.93])
by garuda.wmin.ac.uk with esmtp (Exim 4.12)
id 1By9Q9-0002Yr-00
for [EMAIL PROTECTED]; Fri, 20 Aug 2004 14:27:05 +0100
Received: from panda.irs.wmin.ac.uk ([161.74.75.56] helo=panda)
by cougar.wmin.ac.uk with smtp (Exim 4.12)
id 1By9Q7-0005Oi-00
for [EMAIL PROTECTED]; Fri, 20 Aug 2004 14:27:03 +0100
Date: Fri, 20 Aug 2004 14:12:02 +0100 (BST)
From: "M.Choy" <[EMAIL PROTECTED]>
Reply-To: "M.Choy" <[EMAIL PROTECTED]>
Subject: test message
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: tAAjXRD4yTOj3D1IK13snQ==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.6_06 SunOS 5.8 sun4u sparc 
Message-Id: <[EMAIL PROTECTED]>
X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/)
*1By9Q9-0002Yr-00*v4nMt2dKhgI*



=

In our postfix configuration, we smarthost to main mail gateway, i.e.
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = chico.wmin.ac.uk
#inet_interfaces = 127.0.0.1
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain, $myhostname.$mydomain,
cyrus.$
mydomain
mynetworks = 161.74.0.0/16, 10.0.0.0/8
myorigin = wmin.ac.uk
defer_transports =
disable_dns_lookups = no
relayhost = wmin.ac.uk
content_filter =
mailbox_command =
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =


I shall appreciate some help on this.

Many thanks

Sujit

>-----Original Message-----
>From: Carsten Hoeger [mailto:[EMAIL PROTECTED] 
>Sent: 23 August 2004 09:14
>To: [EMAIL PROTECTED]
>Subject: Re: Getting vacation to run under cyrus-imapd 2.2.6 
>and cyrus-imapd 2.2.

Re: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8

2004-08-23 Thread Carsten Hoeger
On Fri, Aug 20, Sujit Choudhury wrote:

> We are running SuSE 8.1 and I understand people had problem with this
> version. We are using name space as follows: user/johndoe; user/johndoe/Sent
> Mail etc.  Kendrik Vargas inform me that sendmail parameter was required and
> since then vacation DOES WORK when there is just one hop to the mail, but
> whenever there is multiple hops it seems to fail.We are running out of
> ideas.  Can anybody help?

Please note that cyrus-sieve does only autoreply, if the ENVELOPE-FROM address
is different to the final recipient!

If you are automatically FORWARDING messages, the envelope from address is
normaly changed to the users account, which is forwarding the mail (e.g. when
using .forward) and in this case, sieve will NOT respond!

-- 
With best regards,

Carsten Hoeger


pgpDM7Rwu5IYT.pgp
Description: PGP signature


Re: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8

2004-08-20 Thread John Wade
I know this is a stupid point, but I banged my head against the wall a long time with 
testing vacation scripts before I realized that you have to send the message from a 
user who has not
sent a message within the "days:" interval, since sieve will only send one vacation 
autoreply message within the interval.   I kept trying to test by sending from the 
same user over and
over and never got a subsequent response :-)   Also you might want to add the reply to 
address or addresses to your sieve script:

Like this:

vacation :days 1 :addresses ["@"] text:
Autogenerated Message:
On vacation for the next week
.
;

:addresses ["@"]

Probably not the issue, but I had to mention it.
John

Sujit Choudhury wrote:

> We are experiencing similar problem with our set up.  Vacation does work, but only 
> if there is one hop involved (I only tried from Exchange Server).  At other times, 
> it does not work.
> Our /etc/imapd.conf which has the following permission looks like this:
>
> -rw-r--r--1 root root  365 2004-08-20 15:52 /etc/imapd.conf
>
> configdirectory: /var/imap
> partition-default: /var/imap/spool
> admins: mpk cyrus sujit malcolm neil hassan ming userreg
> sasl_pwcheck_method: saslauthd
> sasl_mech_list: plain
> altnamespace: yes
> unixhierarchysep: yes
> tls_cert_file: /var/imap/server.pem
> tls_key_file: /var/imap/server.pem
> virtdomains: userid
> defaultdomain: cyrus.wmin.ac.uk
>
> telnet to port 2000 shows the following:
> telnet localhost 2000
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> "IMPLEMENTATION" "Cyrus timsieved v2.2.6"
> "SASL" "PLAIN"
> "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational 
> regex"
> "STARTTLS"
> OK
>
> We are running cyrus on SuSE 8.1 and are running out of ideas of how to make the 
> vacation work.
>
> Many thanks
>
> Sujit Choudhury
>
>
> -Original Message-
> From: Murray Anderegg [mailto:[EMAIL PROTECTED]
> Sent: Fri 20/08/2004 17:48
> To: [EMAIL PROTECTED]
> Cc:
> Subject: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 
> 2.2.8
>
>
>
> I have built both versions listed above of the cyrus-imapd from Invoca RPMs.
> 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.anderegg0
> 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:
> req

RE: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8

2004-08-20 Thread Sujit Choudhury
We are experiencing similar problem with our set up.  Vacation does work, but only if 
there is one hop involved (I only tried from Exchange Server).  At other times, it 
does not work.
Our /etc/imapd.conf which has the following permission looks like this:
 
-rw-r--r--1 root root  365 2004-08-20 15:52 /etc/imapd.conf

configdirectory: /var/imap
partition-default: /var/imap/spool
admins: mpk cyrus sujit malcolm neil hassan ming userreg
sasl_pwcheck_method: saslauthd
sasl_mech_list: plain
altnamespace: yes
unixhierarchysep: yes
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem
virtdomains: userid
defaultdomain: cyrus.wmin.ac.uk

telnet to port 2000 shows the following:
telnet localhost 2000
Trying ::1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.2.6"
"SASL" "PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational 
regex"
"STARTTLS"
OK

We are running cyrus on SuSE 8.1 and are running out of ideas of how to make the 
vacation work. 
 
Many thanks
 
Sujit Choudhury
 

-Original Message- 
From: Murray Anderegg [mailto:[EMAIL PROTECTED] 
Sent: Fri 20/08/2004 17:48 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8



I have built both versions listed above of the cyrus-imapd from Invoca RPMs.
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.anderegg0
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]: dupl

RE: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8

2004-08-20 Thread Sujit Choudhury
I am having somewhat similar problem with the vacation scipt.
If I do telnet localhost 2000, I get
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.2.6"
"SASL" "PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational 
regex"
"STARTTLS"
OK
 
Now our /etc/imapd.conf has the following:
configdirectory: /var/imap
partition-default: /var/imap/spool
admins: cyrus
sasl_pwcheck_method: saslauthd
sasl_mech_list: plain
altnamespace: yes
unixhierarchysep: yes
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem
virtdomains: userid
defaultdomain: cyrus.wmin.ac.uk
sendmail: /usr/sbin/sendmail
 
and the permission is as follows:
-rw-r--r--1 root root  365 2004-08-20 15:52 /etc/imapd.conf

We are running SuSE 8.1 and I understand people had problem with this version. We are 
using name space as follows: user/johndoe; user/johndoe/Sent Mail etc.
Kendrik Vargas inform me that sendmail parameter was required and since then vacation 
DOES WORK when there is just one hop to the mail, but whenever there is multiple hops 
it seems to fail.We are running out of ideas.  Can anybody help?
 
Sujit

 

-Original Message- 
From: Murray Anderegg [mailto:[EMAIL PROTECTED] 
Sent: Fri 20/08/2004 17:48 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Getting vacation to run under cyrus-imapd 2.2.6 and cyrus-imapd 2.2.8



I have built both versions listed above of the cyrus-imapd from Invoca RPMs.
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.anderegg0
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