RE: Sieve: Vacation not working (solved)

2009-05-28 Thread Sebastian Hagedorn
--On 27. Mai 2009 22:42:30 -0400 Gottschalk, David dgot...@emory.edu 
wrote:



Well, I tried to enable this same feature this evening in sendmail, but
ran into some problems. Forgive me as I am complete novice when it comes
to enabling this feature in sendmail. I enabled this in my sendmail.cf,


You didn't actually edit the .cf file, did you? That's not how it works ... 
you need to edit the .mc and generate the .cf.



then got the following error:

unknown mailer cyrusv2

--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
.:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.

pgpGH6Rpkaax6.pgp
Description: PGP signature

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Sieve: Vacation not working (solved)

2009-05-28 Thread Garry
Sebastian Hagedorn wrote:
 --On 27. Mai 2009 22:42:30 -0400 Gottschalk, David
 dgot...@emory.edu wrote:

 Well, I tried to enable this same feature this evening in sendmail, but
 ran into some problems. Forgive me as I am complete novice when it comes
 to enabling this feature in sendmail. I enabled this in my sendmail.cf,

 You didn't actually edit the .cf file, did you? That's not how it
 works ... you need to edit the .mc and generate the .cf.
He didn't, he put it in the .mc and m4'd it ... anyway, I suppose the
cause is the rather old sendmail 8.12 he is running, which most likely
doesn't have the appropriate files for cyrusv2 as a mailer yet ...

I'm not sure if it will be sufficient to just add the appropriate config
files, or if the cyrusv2-files require some additional functionality
inside sendmail 8.13.x that might not be present in earlier versions ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working (solved)

2009-05-28 Thread Sebastian Hagedorn

--On 28. Mai 2009 11:39:03 +0200 Garry ga...@glendown.de wrote:


You didn't actually edit the .cf file, did you? That's not how it
works ... you need to edit the .mc and generate the .cf.

He didn't, he put it in the .mc and m4'd it ...


Wouldn't the m4 command have thrown an error in that case if it didn't know 
the cyrusv2 mailer? Unless you use the m4 files of a newer sendmail than 
the one you're actually running, that is.



anyway, I suppose the
cause is the rather old sendmail 8.12 he is running, which most likely
doesn't have the appropriate files for cyrusv2 as a mailer yet ...


Actually it does, at least with 8.12.6 and higher. 8.12.2 doesn't seem to 
have it.

--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
.:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.

pgpNlKAiwoQRI.pgp
Description: PGP signature

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

RE: Sieve: Vacation not working (solved)

2009-05-28 Thread Gottschalk, David
Gary,
   I actually have this file in my /usr/share/sendmail-cf/mailer folder 
already. Is there something special I have to do to make sendmail build this 
into the .cf file? I didn't think there was, but maybe I'm missing something.

Thanks.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: Garry Glendown [mailto:ga...@glendown.de]
Sent: Wednesday, May 27, 2009 11:18 PM
To: Gottschalk, David
Subject: Re: Sieve: Vacation not working (solved)

Gottschalk, David wrote:
 I put the lines in  my sendmail.mc file then built the sendmail.cf file.

 I'm running a old version of Redhat.

 Sendmail version is 8.12.11.

That could be the cause of the problem ... I reckon 8.12 doesn't have
the cyrusv2 mailer config files yet ... if you have access to some newer
systems, try whether you can copy the files from
/usr/share/sendmail/mailer/cyrusv2.m4 (or similar) to your system and
see if that gets it working ...

The resulting .cf has these differences on my system: (SuSE Enterprise
10 w/ sendmail 8.13):

787c786
 R@  $#cyrus $: @  special case error msgs
---
 R@  $#cyrusv2 $: @special case
error msgs
866,867c865,866
 R$=L  @ $=w .   $#cyrus $: @ $1 special local names
 R$+  @ $=w .$#cyrus $: $1   regular
local name
---
 R$=L  @ $=w .   $#cyrusv2 $: @ $1   special
local names
 R$+  @ $=w .$#cyrusv2 $: $1 regular
local name
889,890c888,889
 R$=L  $#cyrus $: @ $1 special local names
 R$+   $#cyrus $: $1   regular local names
---
 R$=L  $#cyrusv2 $: @ $1   special local names
 R$+   $#cyrusv2 $: $1 regular local names
907,908c906,907
 R$+ + *   $#cyrus $@ $h $: $1
 R$+ + $*  $#cyrus $@ + $2 $: $1 + *
---
 R$+ + *   $#cyrusv2 $@ $h $: $1
 R$+ + $*  $#cyrusv2 $@ + $2 $: $1 + *
921c920
 R   $+  + $*  $#cyrus $@ $2 $: @ $1   strip the extra +
---
 R   $+  + $*  $#cyrusv2 $@ $2 $: @ $1 strip the extra +
975,976c974,975
 R  $*  @ $*  $*   $#cyrus $@ $...@$2 $: $1
 R  $+   $#cyrus $@ $1$: $1
---
 R  $*  @ $*  $*   $#cyrusv2 $@ $...@$2 $: $1
 R  $+   $#cyrusv2 $@ $1$: $1
982,983c981,982
 R $+  $* @ $*  $* $#cyrus $@ $...@$3 $: $1
 R $+  $*$#cyrus $@ $2$: $1
---
 R $+  $* @ $*  $* $#cyrusv2 $@ $...@$3 $: $1
 R $+  $*$#cyrusv2 $@ $2$: $1
1873,1877c1872,1874
 ##
 ###   Cyrus Mailer specification   ###
 ##

 #  $Id: cyrus.m4,v 8.23 2001/11/12 23:11:34 ca Exp $ (Carnegie
Mellon)  #
---
 #
 ###   Cyrus V2 Mailer specification   ###
 #
1878a1876
 #  $Id: cyrusv2.m4,v 1.1 2002/06/01 21:14:57 ca Exp $  #
1880,1886c1878,1881
 Mcyrus,   P=/usr/lib/cyrus/bin/deliver, F=lsDFMnPqAh5@/:|,
S=EnvFromL, R=EnvToL/HdrToL,
   U=cyrus:mail, T=DNS/RFC822/X-Unix,
   A=deliver -e -f $f -m $h -- $u

 Mcyrusbb, P=/usr/lib/cyrus/bin/deliver, F=lsDFMnPu, S=EnvFromL,
R=EnvToL/HdrToL,
   U=cyrus:mail, T=DNS/RFC822/X-Unix,
   A=deliver -e -m $u
---
 Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
   S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
   T=DNS/RFC822/SMTP,
   A=FILE /var/lib/imap/socket/lmtp


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working (My issue resolved!!)

2009-05-28 Thread Gottschalk, David
Good news!

I was able to get it working. I had the lines in the wrong order, and that 
apparently caused sendmail to not recognize the mailer.

Now, the vacation replies are working, and it appears sieve is working well.

Thanks to everyone for their help!

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: Garry [mailto:ga...@glendown.de]
Sent: Thursday, May 28, 2009 10:17 AM
To: Gottschalk, David
Subject: Re: Sieve: Vacation not working (solved)

Gottschalk, David wrote:
 Oh, one thing I forgot to mention.

 I got the unknown mailer error in a SMTP conversation after rebuilding the 
 .cf file. I didn't get it when doing a make on the .mc file, or even when 
 restarting sendmail.

Phew ... sounds weird ...  normally, m4 barfs when there is something
wrong or missing ... please note that I pulled th lines apart, having
the first two well above any MAILER lines, and the MAILER(cyrusv2) at
the end ... dunno if that might cause a problem with your setup ...


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working (solved)

2009-05-28 Thread Garry Glendown
Garry wrote:
 define(`confLOCAL_MAILER', `cyrus')dnl
 ifdef(`CYRUS_MAILER_ARGS',,
  `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
 dnl MAILER(`cyrus')dnl

Of course, that was

MAILER(`cyrus')dnl

Also, please note that the define/ifdef part was well above all the
other MAILER lines, whereas the MAILER line was inserted as the last
MAILER line, on both versions ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Garry
Adam Tauno Williams wrote:
 On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote:
   
 See, I'm using this entirely custom deliver script in .procmailrc, and
 I think that is my problem. I think if Sieve doesn't get a proper from
 address, it will not reply. The question is how do you know if this is
 occurring?
 

 Sendmail has been able to perform LMTP delivery (no deliver required)
 for a long time.

   
 You might try different configuration options of that. I've seen searching 
 the web that some people had vacation reply issues with different 
 configurations of the Cyrus mailer(s).
 
 How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
 my issue, maybe yours too.
   
 I'm using the cyrus feature
 define(`confLOCAL_MAILER', `cyrus')dnl
 ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
 in the mc file, and as the regular sorting seems to work (moving certain
 mails to other folders e.g.), as well as storing incoming mail in the
 appropriate inboxes, I assume the Cyrus interface as such should be
 working fine, as well as the Sieve call ... what puzzles me is that I
 don't even see Sieve attempt to deliever anything, at least not locally
 - plus I can't seem to find any config file that would contain
 definitions about what to do with mails generated by Sieve (like, e.g.,
 what Mailserver to use)
 

 This is specified in imapd.conf via the sendmail directive.
   
Yes, found that in the meantime ... anyway, still no success ...
according to the mail log, it's not being called, at least there are
still no messages from it ... I enabled the debugging_command, using
strace to get some infos on whether it is even trying to call sendmail
... from what I can tell, it doesn't even attempt to do anything ... is
the vacation line valid the way it is in the script?

Also, the logfile created by this line:

debug_command: /usr/bin/strace -tt -f -s256 -o /tmp/strace.cyrus.%s.%d
-p %2$d - 21 

doesn't show up right away either ...

Isn't there any way to make timsieved more verbose about what it's (not)
doing and why?

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Garry

 Also, the logfile created by this line:
 [..]
 doesn't show up right away either ...
   
Actually, I just noticed that timsieved of course isn't even the process
responsible for doing any filtering, but only for doing the back-end
script stuff ... so I added the -D to the lmtpd line, which I _assume_
(please correct me if I'm wrong) is the process that actually should be
doing the sieve checking and processing ... anyway, there was no sign
that lmtpd attempted to do any sendmail interaction ...

Help, anybody?

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Carsten Hoeger
On Wed, May 27, Garry wrote:

  Also, the logfile created by this line:
  [..]
  doesn't show up right away either ...

 Actually, I just noticed that timsieved of course isn't even the process
 responsible for doing any filtering, but only for doing the back-end
 script stuff ... so I added the -D to the lmtpd line, which I _assume_
 (please correct me if I'm wrong) is the process that actually should be
 doing the sieve checking and processing ... anyway, there was no sign
 that lmtpd attempted to do any sendmail interaction ...

AFAIR the Mail headers must contain the addresses you specified in the
vacation rules. Did you check that?

Also keep in mind, that vacation mail is not sent, when sender and recipient
are the same.

-- 
With best regards,

Carsten Hoeger


pgplHmVSCKyux.pgp
Description: PGP signature

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Sieve: Vacation not working

2009-05-27 Thread Adam Tauno Williams
On Wed, 2009-05-27 at 16:35 +0200, Carsten Hoeger wrote:
 On Wed, May 27, Garry wrote:
   Also, the logfile created by this line:
   [..]
   doesn't show up right away either ...
  Actually, I just noticed that timsieved of course isn't even the process
  responsible for doing any filtering, but only for doing the back-end
  script stuff ... so I added the -D to the lmtpd line, which I _assume_
  (please correct me if I'm wrong) is the process that actually should be
  doing the sieve checking and processing ... anyway, there was no sign
  that lmtpd attempted to do any sendmail interaction ...
 AFAIR the Mail headers must contain the addresses you specified in the
 vacation rules. Did you check that?

His [custom] delivery mech is rewriting/inserting a Return-Path: to
*himself* for *every* message.   So when this message arrives in his
INBOX the Return-Path will not be the sender (me) or even the list, but
his address (the destination).  That will break just about everything.

 Also keep in mind, that vacation mail is not sent, when sender and recipient
 are the same.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Garry
Carsten Hoeger wrote:
 On Wed, May 27, Garry wrote:

   
 Also, the logfile created by this line:
 [..]
 doesn't show up right away either ...
   
   
 Actually, I just noticed that timsieved of course isn't even the process
 responsible for doing any filtering, but only for doing the back-end
 script stuff ... so I added the -D to the lmtpd line, which I _assume_
 (please correct me if I'm wrong) is the process that actually should be
 doing the sieve checking and processing ... anyway, there was no sign
 that lmtpd attempted to do any sendmail interaction ...
 

 AFAIR the Mail headers must contain the addresses you specified in the
 vacation rules. Did you check that?
   
Yes ...
 Also keep in mind, that vacation mail is not sent, when sender and recipient
 are the same.
   
No, tried sending from a multitude of different places, like GMX and
GMail, my own servers, etc ...

Can someone please clarify what process' job it is to generate the mail
by calling sendmail? Is it lmtpd which I assumed? I really need to stop
wasting time on looking at the wrong places and got to move on to more
important work ...

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Andrew Morgan
On Wed, 27 May 2009, Garry wrote:

 Can someone please clarify what process' job it is to generate the mail
 by calling sendmail? Is it lmtpd which I assumed? I really need to stop
 wasting time on looking at the wrong places and got to move on to more
 important work ...

lmtpd processes sieve scripts as messages are given to it, including 
sending vacation notices and reject emails.

Andy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working (solved)

2009-05-27 Thread Garry
Well, found another post on this ... seems to be that depending on the
way the MTA does the local delivery causes vacation (and only vacation)
to work or not...

Originally, I had this in my .mc file:

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
dnl MAILER(`cyrus')dnl

After replacing this with:

define(`confLOCAL_MAILER',`cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

I finally got vacation replies from Cyrus ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working (solved)

2009-05-27 Thread Gottschalk, David
Good news!

I'm thinking that is the same issue I have.

I will be trying it out today off hours, and report what I find.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu 
[mailto:info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu] On Behalf Of 
Garry
Sent: Wednesday, May 27, 2009 3:45 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Re: Sieve: Vacation not working (solved)

Well, found another post on this ... seems to be that depending on the
way the MTA does the local delivery causes vacation (and only vacation)
to work or not...

Originally, I had this in my .mc file:

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
dnl MAILER(`cyrus')dnl

After replacing this with:

define(`confLOCAL_MAILER',`cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

I finally got vacation replies from Cyrus ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working

2009-05-26 Thread Gottschalk, David
Check out my thread going on this.

I'm having the same issue.

How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be my 
issue, maybe yours too.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu 
[mailto:info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu] On Behalf Of 
Garry
Sent: Monday, May 25, 2009 4:12 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Sieve: Vacation not working

I have a SuSE Enterprise 10 system set up, which is running smoothly ...
I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth,
the whole 9 yards ... even Sieve itself is fine, messages are moved to
the appropriate folders as directed in the Sieve config ...

Here's an excerpt from the Sieve script:

require [ vacation , fileinto ] ;

## Flag: |UniqueId:1|Rulename: SpamMsg
if header :contains From gkg
{
fileinto INBOX.Spam ;
}

## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung
if true
{
vacation :days 7 :addresses [ ad...@ox6.mydomain.de ,
ad...@mydomain.de ] :subject Ich bin nicht da ... blah ;
}


The message is received, but according to /var/log/messages, nothing
happens apart from it being stored locally ...

I'm somewhat at a loss as to where else I can check for the reason of it
not working ... couldn't find anything on Google that would have been
helpful, either ... maybe somebody could point me in the right direction
... ?!

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working

2009-05-26 Thread Gottschalk, David
See, I'm using this entirely custom deliver script in .procmailrc, and I think 
that is my problem. I think if Sieve doesn't get a proper from address, it will 
not reply. The question is how do you know if this is occurring?

You might try different configuration options of that. I've seen searching the 
web that some people had vacation reply issues with different configurations of 
the Cyrus mailer(s).

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: Garry [mailto:ga...@glendown.de]
Sent: Tuesday, May 26, 2009 9:14 AM
To: Gottschalk, David
Subject: Re: Sieve: Vacation not working

Gottschalk, David wrote:
 Check out my thread going on this.

 I'm having the same issue.

 How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
 my issue, maybe yours too.

I'm using the cyrus feature

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
`define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')

in the mc file, and as the regular sorting seems to work (moving certain
mails to other folders e.g.), as well as storing incoming mail in the
appropriate inboxes, I assume the Cyrus interface as such should be
working fine, as well as the Sieve call ... what puzzles me is that I
don't even see Sieve attempt to deliever anything, at least not locally
- plus I can't seem to find any config file that would contain
definitions about what to do with mails generated by Sieve (like, e.g.,
what Mailserver to use)

-garry

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working

2009-05-26 Thread Adam Tauno Williams
On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote:
 See, I'm using this entirely custom deliver script in .procmailrc, and
 I think that is my problem. I think if Sieve doesn't get a proper from
 address, it will not reply. The question is how do you know if this is
 occurring?

Sendmail has been able to perform LMTP delivery (no deliver required)
for a long time.

 You might try different configuration options of that. I've seen searching 
 the web that some people had vacation reply issues with different 
 configurations of the Cyrus mailer(s).
  How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
  my issue, maybe yours too.
 I'm using the cyrus feature
 define(`confLOCAL_MAILER', `cyrus')dnl
 ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
 in the mc file, and as the regular sorting seems to work (moving certain
 mails to other folders e.g.), as well as storing incoming mail in the
 appropriate inboxes, I assume the Cyrus interface as such should be
 working fine, as well as the Sieve call ... what puzzles me is that I
 don't even see Sieve attempt to deliever anything, at least not locally
 - plus I can't seem to find any config file that would contain
 definitions about what to do with mails generated by Sieve (like, e.g.,
 what Mailserver to use)

This is specified in imapd.conf via the sendmail directive.

quote
sendmail: /usr/sbin/sendmail
The pathname of the sendmail executable.  Sieve invokes sendmail  for
sending  rejections, redirects and vacation responses.
Note:  This Invoca RPM build uses /usr/sbin/sendmail by default instead
of /usr/lib/sendmail for sendmail.

sendsms: /usr/bin/sendsms
The pathname of the sendsms executable.  Sieve invokes sendsms for
sending  SMS  notifications.
/quote


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve: Vacation not working

2009-05-25 Thread Garry
I have a SuSE Enterprise 10 system set up, which is running smoothly ...
I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth,
the whole 9 yards ... even Sieve itself is fine, messages are moved to
the appropriate folders as directed in the Sieve config ...

Here's an excerpt from the Sieve script:

require [ vacation , fileinto ] ;

## Flag: |UniqueId:1|Rulename: SpamMsg
if header :contains From gkg
{
fileinto INBOX.Spam ;
}

## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung
if true
{
vacation :days 7 :addresses [ ad...@ox6.mydomain.de ,
ad...@mydomain.de ] :subject Ich bin nicht da ... blah ;
}


The message is received, but according to /var/log/messages, nothing
happens apart from it being stored locally ...

I'm somewhat at a loss as to where else I can check for the reason of it
not working ... couldn't find anything on Google that would have been
helpful, either ... maybe somebody could point me in the right direction
... ?!

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve Vacation not working (filter does work)

2006-10-27 Thread Georg Glas
Martin Schweizer schrieb:

 Did you use umlauts or other non 8 bit characters in the vacation text
 (that was my problem at the beginning)?
 the script itself is really simple:

 require vacation;
 vacation :days 7 :addresses [ [EMAIL PROTECTED], [EMAIL PROTECTED]] Out 
 of
 office ...;

no plain 7-bit as seen in the lines above

regards
Georg Glas

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve Vacation not working (filter does work)

2006-10-27 Thread Jo Rhett
Did you enable the mailto method in imapd.conf?  Without this  
enabled, all of the functions that send mail are disabled.


--
Jo Rhett
Senior Network Engineer
Network Consonance


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve Vacation not working (filter does work)

2006-10-26 Thread Martin Schweizer

Hello Georg


Did you use umlauts or other non 8 bit characters in the vacation text
(that was my problem at the beginning)?

Regards,
Martin

2006/10/24, Georg Glas [EMAIL PROTECTED]:

Hi list,

i have a cyrus 2.2.12 installation (debians kolab-cyrus-imapd package
with AutoCreate Inbox patch). It seems that every filter works but the
vacation action is simply ignored.

When email is delivered i see an stat/open syscall for the script, and
the precompiled script seems to be parsed, but no execve call/stat call
for sendmail binary or such.

the script itself is really simple:

require vacation;
vacation :days 7 :addresses [ [EMAIL PROTECTED], [EMAIL PROTECTED]] Out of
office ...;

Any hints ?

regards.
Georg Glas

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




--
Martin Schweizer
[EMAIL PROTECTED]
Fax: +1 619 3300587
Tel.: +1 619 3300597 (VoIP)

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve Vacation not working (filter does work)

2006-10-24 Thread Georg Glas
Hi list,

i have a cyrus 2.2.12 installation (debians kolab-cyrus-imapd package
with AutoCreate Inbox patch). It seems that every filter works but the
vacation action is simply ignored.

When email is delivered i see an stat/open syscall for the script, and
the precompiled script seems to be parsed, but no execve call/stat call
for sendmail binary or such.

the script itself is really simple:

require vacation;
vacation :days 7 :addresses [ [EMAIL PROTECTED], [EMAIL PROTECTED]] Out of
office ...;

Any hints ?

regards.
Georg Glas

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve vacation not working

2003-06-06 Thread Mathieu Arnold
Hi,

I do have a set of rules, which are all working, and then, I add :

require vacation;

if header :contains subject vacation sieve {
  vacation I'm outta here;
  fileinto INBOX/mat;
  stop;
}

It does file the mail into INBOX/mat but does not respond with anything.

Am I doing something wrong ?

-- 
Mathieu Arnold


Re: Sieve vacation not working

2003-06-06 Thread John Hayward
I believe you need an address option.
The vacation facility will only  send out a message if the to address
matches the addresse(s) in the address option.  This allows sieve to
prevent messages being sent to mailing lists, spam.

johnh...

On Fri, 6 Jun 2003, Mathieu Arnold wrote:

Hi,

I do have a set of rules, which are all working, and then, I add :

require vacation;

if header :contains subject vacation sieve {
  vacation I'm outta here;
  fileinto INBOX/mat;
  stop;
}

It does file the mail into INBOX/mat but does not respond with anything.

Am I doing something wrong ?

--
Mathieu Arnold




Sieve Vacation not working

2002-12-18 Thread Ricardo T. Muggli
I have the following script that I have installed and activated using
sieveshell.

require [vacation,reject];

if address :is From [EMAIL PROTECTED] {
   reject Please do not email me anymore.;
} else {
   vacation I'm on vacation.;
}

When I send a message from [EMAIL PROTECTED] I get a
reject message and the message does not get delivered to the
cyrus mailstore, just as expected. When I send a message from another
e-mail address there is no vacation reply. The message gets
delivered to the cyrus mailstore though as expected.

I have been following the documentation at
http://www.cyrusoft.com/sieve/drafts/sieve-vacation-04.txt

Is there a newer document about sieve vacation?
Is my syntax broken?
Is it possible that the sieve vacation functionality is broken?

I am using cyrus-imapd-2.1.11, cyrus-sasl-2.1.10, and sendmail.8.12.6.

Thanks,

-- 
Ricardo Muggli ([EMAIL PROTECTED])
Information and Technology Services - System Management
Minnesota State University, Mankato
3010 Memorial Library
Mankato, MN  56001
Phone: 507-389-1164   Fax: 507-389-6115




Sieve Vacation not working

2002-10-23 Thread Eric Minto
I know this has been discussed several times on this list, but I have an 
additional wrench to add to the problem:

Sieve works perfectly for all functions except for vacation.  We are 
using sendmail as the MTA, Cyrus as the IMAP server, and procmail to 
process some advanced SPAM filtering.  Many would ask: Why not use the 
vacation functionality in procmail?  We already use our own web-based 
interface to generate the sieve scripts, and for various security 
reasons, we want the vacation function to be handled by sieve, not procmail.

At one time, the vacation reply *did* execute, but it tried to send the 
reply to root@unspecified-domain.  But now, using the config below, 
nothing happens.

Here are the relevant lines from config files:

from sendmail.cf
##
###   Cyrus Mailer specification   ###
##

#  $Id: cyrus.m4,v 8.23 2001/11/12 23:11:34 ca Exp $ (Carnegie 
Mellon)  #

Mcyrus, P=/usr/bin/procmail, F=lsDFMnPqSA5@|:/w, S=EnvFromL, 
R=EnvToL/HdrToL,
   M=5000, U=cyrus:mail, T=DNS/RFC822/X-Unix,
   A=procmail -Y -m /etc/mail/procmailrules/procmail.global 
$u $h

Mcyrusbb,   P=/usr/bin/procmail, F=lsDFMnPS, S=EnvFromL, 
R=EnvToL/HdrToL,
   M=5000, U=cyrus:mail, T=DNS/RFC822/X-Unix,
   A=procmail -Y -m /etc/procmailrules/procmail.global $u $h


from sendmail.mc
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`Red Hat Linux with cyrus')dnl
OSTYPE(`linux')
define(`confTRUSTED_USER', `cyrus')
define(`confLOCAL_MAILER', `cyrus')
define(`confDOMAIN_NAME',`studiesabroad.com')dnl
define(`confDEF_USER_ID',``cyrus:mail'')dnl
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`CYRUS_MAILER_FLAGS',`SA5@|:/w')
define(`CYRUS_MAILER_PATH',`/usr/bin/procmail')
define(`CYRUS_MAILER_USER',`cyrus:mail')
define(`CYRUS_MAILER_ARGS',`procmail -Y -m 
/etc/mail/procmailrules/procmail.global $u $h')
define(`CYRUS_MAILER_MAX',`5000')
define(`CYRUS_BB_MAILER_FLAGS',`S')
define(`CYRUS_BB_MAILER_ARGS',`procmail -Y -m 
/etc/procmailrules/procmail.global $u $h')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
MAILER(`local')
MAILER(`smtp')dnl
MAILER(`cyrus')
dnl MAILER(procmail)dnl
dnl MAILER_DEFINITIONS
dnl Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
dnl S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
dnl A=FILE /var/imap/socket/lmtp


from default (sieve script)
require [fileinto, reject, vacation, envelope, imapflags, 
subaddress];

if header :contains [to,cc] 
[[EMAIL PROTECTED],[EMAIL PROTECTED]] {
   fileinto INBOX.Discussions.Cyrus;
   stop;
}

vacation
   :addresses [EMAIL PROTECTED]
   :days 1
   :subject Thank You for your email
   Thank you for your email.  I will respond as soon as I can.;


Any help is greatly appreaciated.

--
Eric Minto
International Studies Abroad  
[EMAIL PROTECTED] 





Re: Sieve Vacation not working

2002-10-23 Thread Gary Mills
On Wed, Oct 23, 2002 at 12:10:05PM -0500, Eric Minto wrote:
 
 Sieve works perfectly for all functions except for vacation.  We are 
 using sendmail as the MTA, Cyrus as the IMAP server, and procmail to 
 process some advanced SPAM filtering.  Many would ask: Why not use the 
 vacation functionality in procmail?  We already use our own web-based 
 interface to generate the sieve scripts, and for various security 
 reasons, we want the vacation function to be handled by sieve, not procmail.
 
 At one time, the vacation reply *did* execute, but it tried to send the 
 reply to rootunspecified-domain.  But now, using the config below, 
 nothing happens.

That's a good clue.  `lmtp' appends `unspecified-domain' to
unqualified e-mail addresses.  If your MTA strips the domain portion
from the envelope recipient, as sendmail does, the sieve vacation
handler will never generate vacation responses, because the envelope
recipient will never match the header recipient.  To make it work
here, I've modified imap/lmtpengine.c so that it appends the server
name parameter from /etc/imapd.conf, which is also the domain that
sendmail uses for masquerading.  This could be made more general by
using a separate configuration parameter.

-- 
-Gary Mills--Unix Support--U of M Academic Computing and Networking-



Re: sieve vacation not working

2002-02-27 Thread Ian Macdonald

On Wed 27 Feb 2002 at 00:44:50 -0500, you wrote:

 When Cyrus puts the return-path into the message, it qualifies it
 with the value of 'servername' (defaulting to gethostname()).  It
 doesn't pass that qualification to the Sieve subsystem.

Doesn't Cyrus only qualify it if the MAIL FROM in the envelope wasn't
qualified? I have verified that I am being passed a fully qualified
address in the MAIL FROM.

Ian
-- 
Ian Macdonald   | God created a few perfect heads.  The rest 
System Administrator| he covered with hair. 
Google, Inc.| 
[EMAIL PROTECTED]  | 
650.330.0100 x1265  | 



Re: sieve vacation not working

2002-02-27 Thread Lawrence Greenfield

--On Wednesday, February 27, 2002 12:18 AM -0800 Ian Macdonald 
[EMAIL PROTECTED] wrote:

 On Wed 27 Feb 2002 at 00:44:50 -0500, you wrote:

 When Cyrus puts the return-path into the message, it qualifies it
 with the value of 'servername' (defaulting to gethostname()).  It
 doesn't pass that qualification to the Sieve subsystem.

 Doesn't Cyrus only qualify it if the MAIL FROM in the envelope wasn't
 qualified? I have verified that I am being passed a fully qualified
 address in the MAIL FROM.

Based on the information you've sent so far, I don't think lmtpd is getting 
a fully qualified address in the MAIL FROM line.

You can try to run /usr/cyrus/bin/deliver -l and have the LMTP conversation 
by hand to test.

Larry




Re: sieve vacation not working

2002-02-26 Thread Lawrence Greenfield

   Date: Mon, 25 Feb 2002 16:11:23 -0800
   From: Ian Macdonald [EMAIL PROTECTED]
[...]
   Return-Path: [EMAIL PROTECTED]
   Received: from lovelace.corp.google.com ([unix socket])
   by lovelace.corp.google.com (Cyrus v2.1.2) with LMTP; Mon, 25 Feb 2002
   +16:00:45 -0800
   X-Sieve: CMU Sieve 2.0
   Return-Path: [EMAIL PROTECTED]
[...]
   Even though the return path is wrong, it's still fully qualified, so
   why doesn't Cyrus try to send the vacation reponse to
   [EMAIL PROTECTED] instead of
   [EMAIL PROTECTED]?

When Cyrus puts the return-path into the message, it qualifies it
with the value of 'servername' (defaulting to gethostname()).  It
doesn't pass that qualification to the Sieve subsystem.

Thus Sieve attempts to send a message to cyrus@unspecified-domain
which your MTA is qualifying as [EMAIL PROTECTED]

Hmm, sounds like a FAQ entry about double Return-Paths and unqualified
envelopes is in order here.  Can anyone give me a Q/A for doc/faq.html?

thanks,
Larry




Re: sieve vacation not working

2002-02-25 Thread Ian Macdonald

On Fri 22 Feb 2002 at 19:04:17 -0600, you wrote:

 On Fri, Feb 22, 2002 at 05:48:35PM -0500, Ken Murchison wrote:
  
  
  [EMAIL PROTECTED] wrote:
   
   I have been following this thread, and
   humbly suggest looking for where the line:
   
   unspecified-domain.google.com
   
   is lurking.
  
  The unspecified-domain is almost certainly being added by lmtpd/sieve.
 
 Yes.  In my Cyrus installation, for example, the sendmail MTA deletes
 the host portion of the envelope recipient addresses.  lmtpd/sieve then
 appends `@unspecified-domain' domain to these addresses.  This behavior
 means that they will never match the recipients real address.

My MTA is Postfix, though, and I have verified that the host is not
being stripped from the RCPT TO: part of the envelope.

 I posted a patch some time ago that allowed lmtpd/sieve to append a
 domain specified in /etc/imapd.conf instead.  It used the
 `servername' parameter, although a separate parameter might be
 better.  Doing this at least gives a chance for the recipient
 addresses to match.

For want of any better suggestions so far, I'll take a look at your
patch and maybe apply it. I hope it still applies to 2.1.2

Ian
-- 
Ian Macdonald   | The thrill is here, but it won't last long 
System Administrator| You'd better have your fun before it moves 
Google, Inc.| along... 
[EMAIL PROTECTED]  | 
650.330.0100 x1265  | 



Re: sieve vacation not working

2002-02-25 Thread Lawrence Greenfield

What's the Return-Path header indicate?

If Return-Path isn't right, vacation won't work either, since the
vacation message will attempt to go to the Return-Path.

If Return-Path isn't right, then it's almost certainly your MTA
rewriting the return-path to something bogus and there's nothing we
can do since it's destroying information we need.

Larry




sieve vacation not working

2002-02-22 Thread Ian Macdonald

Hi,

I'm running Cyrus 2.1.2/Postfix 1.1.3 here and Sieve is working
nicely, apart from the vacation extension.

Redirects are working, so I know that Postfix is being spawned
correctly to send the message.

When the vacation module tries to send a response, this is what I'm
seeing in my logs:

Feb 22 11:28:32 lovelace postfix/smtp[18102]: 604051775: 
to=[EMAIL PROTECTED], relay=none, delay=0, status=bounced (Name 
service error for unspecified-domain.google.com: Host not found)

It tries to send the vacation response to
[EMAIL PROTECTED], but the address it should have
been responding to is an off-site address.

A Google search yielded only a few results and suggested that the
e-mail to which vacation is replying may not contain a fully qualified
e-mail address. Not only is that not the case here, but a tcpdump
proves that the envelope also provides a fully qualified address in
the RCPT TO line.

The :addresses section of my sieve vacation script contains both the
To e-mail address from the e-mail itself and the slightly different
address passed in the envelope, so this can't be the problem either.

How do I make vacation responses go where they're supposed to?

Ian
-- 
Ian Macdonald   | The ripest fruit falls first.   -- William 
System Administrator| Shakespeare, Richard II 
Google, Inc.| 
[EMAIL PROTECTED]  | 
650.330.0100 x1265  | 



Re: sieve vacation not working

2002-02-22 Thread Ken Murchison



Ian Macdonald wrote:
 
 Hi,
 
 I'm running Cyrus 2.1.2/Postfix 1.1.3 here and Sieve is working
 nicely, apart from the vacation extension.
 
 Redirects are working, so I know that Postfix is being spawned
 correctly to send the message.
 
 When the vacation module tries to send a response, this is what I'm
 seeing in my logs:
 
 Feb 22 11:28:32 lovelace postfix/smtp[18102]: 604051775: 
to=[EMAIL PROTECTED], relay=none, delay=0, status=bounced (Name 
service error for unspecified-domain.google.com: Host not found)
 
 It tries to send the vacation response to
 [EMAIL PROTECTED], but the address it should have
 been responding to is an off-site address.

I'm not a Postfix expert (heck, I don't even use it), but my guess would
be that Postfix is re-writing the envelope 'from' address which Sieve
uses as the 'reply-to' address.  I believe that this has been discussed
on the list before.

Ken
-- 
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



Re: sieve vacation not working

2002-02-22 Thread Ian Macdonald

On Fri 22 Feb 2002 at 15:09:12 -0500, you wrote:

  I'm running Cyrus 2.1.2/Postfix 1.1.3 here and Sieve is working
  nicely, apart from the vacation extension.
  
  Redirects are working, so I know that Postfix is being spawned
  correctly to send the message.
  
  When the vacation module tries to send a response, this is what I'm
  seeing in my logs:
  
  Feb 22 11:28:32 lovelace postfix/smtp[18102]: 604051775: 
to=[EMAIL PROTECTED], relay=none, delay=0, status=bounced (Name 
service error for unspecified-domain.google.com: Host not found)
  
  It tries to send the vacation response to
  [EMAIL PROTECTED], but the address it should have
  been responding to is an off-site address.
 
 I'm not a Postfix expert (heck, I don't even use it), but my guess would
 be that Postfix is re-writing the envelope 'from' address which Sieve
 uses as the 'reply-to' address.  I believe that this has been discussed
 on the list before.

Postfix _is_ doing some rewriting of the MAIL FROM in the envelope,
but even if I add the address it's using to the addresses that
vacation should recognise, it still doesn't work.

Ian
-- 
Ian Macdonald   | It is bad luck to be superstitious.   --
System Administrator| Andrew W. Mathis 
Google, Inc.| 
[EMAIL PROTECTED]  | 
650.330.0100 x1265  | 



Re: sieve vacation not working

2002-02-22 Thread Ken Murchison



Ian Macdonald wrote:
 
 On Fri 22 Feb 2002 at 15:09:12 -0500, you wrote:
 
   I'm running Cyrus 2.1.2/Postfix 1.1.3 here and Sieve is working
   nicely, apart from the vacation extension.
  
   Redirects are working, so I know that Postfix is being spawned
   correctly to send the message.
  
   When the vacation module tries to send a response, this is what I'm
   seeing in my logs:
  
   Feb 22 11:28:32 lovelace postfix/smtp[18102]: 604051775: 
to=[EMAIL PROTECTED], relay=none, delay=0, status=bounced (Name 
service error for unspecified-domain.google.com: Host not found)
  
   It tries to send the vacation response to
   [EMAIL PROTECTED], but the address it should have
   been responding to is an off-site address.
 
  I'm not a Postfix expert (heck, I don't even use it), but my guess would
  be that Postfix is re-writing the envelope 'from' address which Sieve
  uses as the 'reply-to' address.  I believe that this has been discussed
  on the list before.
 
 Postfix _is_ doing some rewriting of the MAIL FROM in the envelope,
 but even if I add the address it's using to the addresses that
 vacation should recognise, it still doesn't work.

The envelope FROM has nothing to do with :addresses.  :addresses is used
to compare against the TO/CC/BCC _headers_ in the message.  The envelope
FROM is what vacation uses as the address to reply to.  This _should_ be
the same for redirect and reject, I don't know why it would be different
for vacation (unless Postfix somehow knows the disposition of the
message before it gets to Sieve -- highly unlikely).

Ken
-- 
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



Re: sieve vacation not working

2002-02-22 Thread Ian Macdonald

On Fri 22 Feb 2002 at 16:16:00 -0500, you wrote:

 Ian Macdonald wrote:
  
  On Fri 22 Feb 2002 at 15:09:12 -0500, you wrote:
  
I'm running Cyrus 2.1.2/Postfix 1.1.3 here and Sieve is working
nicely, apart from the vacation extension.
   
Redirects are working, so I know that Postfix is being spawned
correctly to send the message.
   
When the vacation module tries to send a response, this is what I'm
seeing in my logs:
   
Feb 22 11:28:32 lovelace postfix/smtp[18102]: 604051775: 
to=[EMAIL PROTECTED], relay=none, delay=0, status=bounced (Name 
service error for unspecified-domain.google.com: Host not found)
   
It tries to send the vacation response to
[EMAIL PROTECTED], but the address it should have
been responding to is an off-site address.
  
   I'm not a Postfix expert (heck, I don't even use it), but my guess would
   be that Postfix is re-writing the envelope 'from' address which Sieve
   uses as the 'reply-to' address.  I believe that this has been discussed
   on the list before.
  
  Postfix _is_ doing some rewriting of the MAIL FROM in the envelope,
  but even if I add the address it's using to the addresses that
  vacation should recognise, it still doesn't work.
 
 The envelope FROM has nothing to do with :addresses.  :addresses is used
 to compare against the TO/CC/BCC _headers_ in the message.  The envelope
 FROM is what vacation uses as the address to reply to.  This _should_ be
 the same for redirect and reject, I don't know why it would be different
 for vacation (unless Postfix somehow knows the disposition of the
 message before it gets to Sieve -- highly unlikely).

Well, it's not being sent to the MAIL FROM address either, I'm
afraid. The MAIL FROM is a fully qualified on-site address that I
receive mail at, but instead the [EMAIL PROTECTED]
address is used.

Does anyone else have an inkling what might be going on here?

Ian
-- 
Ian Macdonald   | knowledge, n.:  Things you believe. 
System Administrator| 
Google, Inc.| 
[EMAIL PROTECTED]  | 
650.330.0100 x1265  | 



Re: sieve vacation not working

2002-02-22 Thread Amos Gouaux

 On Fri, 22 Feb 2002 13:18:33 -0800,
 Ian Macdonald [EMAIL PROTECTED] (im) writes:

im Well, it's not being sent to the MAIL FROM address either, I'm
im afraid. The MAIL FROM is a fully qualified on-site address that I
im receive mail at, but instead the [EMAIL PROTECTED]
im address is used.

I'm folloiwng this thread (trying to) and I'm afraid I'm totally
baffled.  I'm not seeing this with our Postfix/Cyrus setup.

-- 
Amos




Re: sieve vacation not working

2002-02-22 Thread kboyd

I have been following this thread, and 
humbly suggest looking for where the line:

unspecified-domain.google.com

is lurking.

I'm not certain where Postfix gets this, but 
when I see wierd stuff of this ilk in my 
Sendmail/cyrus config, it is usually some 
daft alias in my hosts file.(Legacy)
Depending on your DNS resolution it could 
even becoming from your nameserver look up?

Hope that might help!

haul out the grep find commands!

-Kiarna



 On Fri 22 Feb 2002 at 16:16:00 -0500, you 
wrote:
 
  Ian Macdonald wrote:
   
   On Fri 22 Feb 2002 at 15:09:12 -0500, 
you wrote:
   
 I'm running Cyrus 2.1.2/Postfix 
1.1.3 here and Sieve is working
 nicely, apart from the vacation 
extension.

 Redirects are working, so I know 
that Postfix is being spawned
 correctly to send the message.

 When the vacation module tries to 
send a response, this is what I'm
 seeing in my logs:

 Feb 22 11:28:32 lovelace 
postfix/smtp[18102]: 604051775:
to=[EMAIL PROTECTED], 
relay=none, delay=0, status=bounced (Name
service error for unspecified-
domain.google.com: Host not found)

 It tries to send the vacation 
response to
 cyrus@unspecified-
domain.google.com, but the address it should 
have
 been responding to is an off-site 
address.
   
I'm not a Postfix expert (heck, I 
don't even use it), but my guess would
be that Postfix is re-writing the 
envelope 'from' address which Sieve
uses as the 'reply-to' address.  I 
believe that this has been discussed
on the list before.
   
   Postfix _is_ doing some rewriting of 
the MAIL FROM in the envelope,
   but even if I add the address it's 
using to the addresses that
   vacation should recognise, it still 
doesn't work.
  
  The envelope FROM has nothing to do 
with :addresses.  :addresses is used
  to compare against the TO/CC/BCC 
_headers_ in the message.  The envelope
  FROM is what vacation uses as the 
address to reply to.  This _should_ be
  the same for redirect and reject, I 
don't know why it would be different
  for vacation (unless Postfix somehow 
knows the disposition of the
  message before it gets to Sieve -- 
highly unlikely).
 
 Well, it's not being sent to the MAIL FROM 
address either, I'm
 afraid. The MAIL FROM is a fully qualified 
on-site address that I
 receive mail at, but instead the 
[EMAIL PROTECTED]
 address is used.
 
 Does anyone else have an inkling what 
might be going on here?
 
 Ian
 -- 
 Ian Macdonald   | knowledge, 
n.:  Things you believe. 
 System Administrator| 
 Google, Inc.| 
 [EMAIL PROTECTED]  | 
 650.330.0100 x1265  | 
 







Re: sieve vacation not working

2002-02-22 Thread Ken Murchison



[EMAIL PROTECTED] wrote:
 
 I have been following this thread, and
 humbly suggest looking for where the line:
 
 unspecified-domain.google.com
 
 is lurking.

The unspecified-domain is almost certainly being added by lmtpd/sieve.


 
 I'm not certain where Postfix gets this, but
 when I see wierd stuff of this ilk in my
 Sendmail/cyrus config, it is usually some
 daft alias in my hosts file.(Legacy)
 Depending on your DNS resolution it could
 even becoming from your nameserver look up?
 
 Hope that might help!
 
 haul out the grep find commands!
 
 -Kiarna
 
  On Fri 22 Feb 2002 at 16:16:00 -0500, you
 wrote:
 
   Ian Macdonald wrote:
   
On Fri 22 Feb 2002 at 15:09:12 -0500,
 you wrote:
   
  I'm running Cyrus 2.1.2/Postfix
 1.1.3 here and Sieve is working
  nicely, apart from the vacation
 extension.
 
  Redirects are working, so I know
 that Postfix is being spawned
  correctly to send the message.
 
  When the vacation module tries to
 send a response, this is what I'm
  seeing in my logs:
 
  Feb 22 11:28:32 lovelace
 postfix/smtp[18102]: 604051775:
 to=[EMAIL PROTECTED],
 relay=none, delay=0, status=bounced (Name
 service error for unspecified-
 domain.google.com: Host not found)
 
  It tries to send the vacation
 response to
  cyrus@unspecified-
 domain.google.com, but the address it should
 have
  been responding to is an off-site
 address.

 I'm not a Postfix expert (heck, I
 don't even use it), but my guess would
 be that Postfix is re-writing the
 envelope 'from' address which Sieve
 uses as the 'reply-to' address.  I
 believe that this has been discussed
 on the list before.
   
Postfix _is_ doing some rewriting of
 the MAIL FROM in the envelope,
but even if I add the address it's
 using to the addresses that
vacation should recognise, it still
 doesn't work.
  
   The envelope FROM has nothing to do
 with :addresses.  :addresses is used
   to compare against the TO/CC/BCC
 _headers_ in the message.  The envelope
   FROM is what vacation uses as the
 address to reply to.  This _should_ be
   the same for redirect and reject, I
 don't know why it would be different
   for vacation (unless Postfix somehow
 knows the disposition of the
   message before it gets to Sieve --
 highly unlikely).
 
  Well, it's not being sent to the MAIL FROM
 address either, I'm
  afraid. The MAIL FROM is a fully qualified
 on-site address that I
  receive mail at, but instead the
 [EMAIL PROTECTED]
  address is used.
 
  Does anyone else have an inkling what
 might be going on here?
 
  Ian
  --
  Ian Macdonald   | knowledge,
 n.:  Things you believe.
  System Administrator|
  Google, Inc.|
  [EMAIL PROTECTED]  |
  650.330.0100 x1265  |
 

-- 
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



Re: sieve vacation not working

2002-02-22 Thread Amos Gouaux

 On Fri, 22 Feb 2002 17:48:35 -0500,
 Ken Murchison [EMAIL PROTECTED] (km) writes:

km The unspecified-domain is almost certainly being added by lmtpd/sieve.

If that's the case, then I bet the .google.com is getting tacked
on by Postfix because it don't care for unqualified addresses.

What a weird afternoon.

Oh, is postmaster set in imapd.conf?  Could it maybe be cyrus in
this case?  Could that be a factor?

-- 
Amos




Re: sieve vacation not working

2002-02-22 Thread Gary Mills

On Fri, Feb 22, 2002 at 05:48:35PM -0500, Ken Murchison wrote:
 
 
 [EMAIL PROTECTED] wrote:
  
  I have been following this thread, and
  humbly suggest looking for where the line:
  
  unspecified-domain.google.com
  
  is lurking.
 
 The unspecified-domain is almost certainly being added by lmtpd/sieve.

Yes.  In my Cyrus installation, for example, the sendmail MTA deletes
the host portion of the envelope recipient addresses.  lmtpd/sieve then
appends `@unspecified-domain' domain to these addresses.  This behavior
means that they will never match the recipients real address.  I posted
a patch some time ago that allowed lmtpd/sieve to append a domain specified
in /etc/imapd.conf instead.  It used the `servername' parameter, although
a separate parameter might be better.  Doing this at least gives a chance
for the recipient addresses to match.

-- 
-Gary Mills--Unix Support--U of M Academic Computing and Networking-