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