Re: Cyrus vacation notice

2010-04-30 Thread Allen Chen

Andrew Nash wrote:
We’ve got an email system based around Cyrus etc.  The ‘Out of Office’ 
or Vacation facility doesn’t seem to be working reliably.  From what I 
can test, it seems that if a user on the LAN sends to another internal 
email user who has set a Vacation message, then they will receive 
notification that the intended recipient is out of the office.  The 
Sieve script is in /usr/sieve/f/fred/default and also msg.script in 
the same directory.  However, when I send to a user with a set 
vacation message using an external email system (eg Hotmail) then it’s 
a bit hit and miss as to whether an out of office message gets 
delivered to the sender.  I’ve set up a test user and created a 
vacation message, and at present no out of office messages are being 
delivered, although I’m almost certain they sometimes do get through. 
 The system has been in place for a few years, and I’ve had a couple 
of users mention that it didn’t always work, but I’m only just getting 
around to investigating things in more detail.  I’ve looked at the 
header of an incoming message in the recipient’s Cyrus folder which 
should be generating an out of office message, and the ‘To’ and ‘From’ 
fields look okay, plus there is an X-Sieve: line.  I’d appreciate some 
help in trying to track down what’s going on.  I’m not sure if the out 
of office message is being generated but not delivered, or if it’s not 
being generated at all.  Are there any logs I can check, or traces I 
can set up?



I had the same issue as you said: vacation thing works for internal network,
but not 100% works for external network(senders).
I fixed it some time ago. The problem is my incoming 
server(sendmail+cyrus-imap)
itself can not 100% send emails to outside! It's blacklisted! it's not 
strange
because I have a separate outgoing server. I'm not expecting my incoming 
server
to send anything out. To fix the problem, first reconfigure sendmail to 
reject emails

on MTA level, and then reroute emails coming from my incoming server
to my outgoing server. This will make sure my incoming server can send 
emails to outside.

That's it.

Allen.




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: Cyrus vacation notice

2010-04-21 Thread Andrew Nash




Anyway none of this is a cyrus problem. I'm out of here.

Oh dear!  Thanks for all your help, Joseph, and sorry for wasting your time.
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: Cyrus vacation notice

2010-04-20 Thread Joseph Brennan

Andrew Nash  wrote:

> Return-Path:   r...@server.domain

So the vacation reply should go to r...@server.domain.



> We have a multi-drop POP3 mailbox on the ISP, and our server uses a
> program called Fetchmail to download all the messages, handing each
> downloaded message to a program called Trestlemail which examines the
> header before dropping it off to the correct recipient.

Holy expletive.

By the time cyrus gets the message, you have lost the envelope sender
and envelope recipients. So you can't send any type of delivery status
notice correctly, whether vacation replies, bounces, or receipts. It
looks like you can't deliver bcc'd messages either, if you are trying
to guess recipients by reading headers.

Anyway none of this is a cyrus problem. I'm out of here.



Joseph Brennan
Columbia University Information Technology


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: Cyrus vacation notice

2010-04-20 Thread Andrew Nash


Thanks again for your help.  I may have looked at this in a different way to 
what you suggested, but I sent a couple of test messages from outside through 
our ISP’s mail gateway.  I checked on their server using a webmail interface, 
and couldn’t see anything untoward in the message headers.  We have a 
multi-drop POP3 mailbox on the ISP, and our server uses a program called 
Fetchmail to download all the messages, handing each downloaded message to a 
program called Trestlemail which examines the header before dropping it off to 
the correct recipient.  As I said, I sent a couple of messages through, one 
when the intended recipient had an Out Of Office message set, and one when the 
Out Of Office message was off.  I then looked at the complete messages in the 
Cyrus store, and noticed that both messages had two lines which read:
 
Return-Path:   r...@server.domain
 
I’m not sure if I’m barking up the wrong tree, but I then looked at the Postfix 
master.cf file, and saw the following lines:
 
cyrus   unix  - n n - - pipe
  flags=R user=cyrus argv=/usr/cyrus/bin/deliver -e -f $sender -m ${extension} 
${user}
 
I read somewhere that the second line might need a ‘-r ${sender}’ parameter 
added.  Am I onto something here?
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: Cyrus vacation notice

2010-04-19 Thread Joseph Brennan


Andrew Nash  wrote:

> I?m not too sure, to be honest.  I?ve just sent a test message from the
> LAN to an invalid external user (eg asd...@btinternet.com), and I
> received a ?non delivery? message from the mail server of the domain
> saying the mailbox I was trying to send to was invalid.  Is this what you
> mean?



I meant the opposite, but forget that.


I am guessing that by LAN you mean a private network that is firewalled
from the Internet.  Right?

I am guessing that mail from outside arrives on a gateway host that is
on the Internet, and it re-sends the message into the private network.
Right?

Identify a message from outside that should have got a vacation reply
but did not.  For that message:

-- Find the log record on the gateway that shows it coming in, and
note the sender address.

-- Find the log record for the same message on the cyrus host, and
note the sender address.  Is it the same, or "r...@server.domain"?
If it has changed to "r...@server.domain", that is the problem.


Joseph Brennan
Columbia University Information Technology



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: Cyrus vacation notice

2010-04-19 Thread Andrew Nash
I’m not too sure, to be honest.  I’ve just sent a test message from the LAN to 
an invalid external user (eg asd...@btinternet.com), and I received a ‘non 
delivery’ message from the mail server of the domain saying the mailbox I was 
trying to send to was invalid.  Is this what you mean?
 
My postfix configuration file has the following line:
 
debug_peer_level = 2
 
What level should I set it to in order to get some more information?  I may be 
looking in the wrong places, but I’m struggling to find logs which show emails 
passing through the system.  The mail and imapd logs seem to show the same 
information, and the info is similar to that which I posted earlier, with some 
additional stuff showing users logging into their Inbox and other folders etc.

--- On Mon, 19/4/10, Joseph Brennan  wrote:


From: Joseph Brennan 
Subject: Re: Cyrus vacation notice
To: info-cyrus@lists.andrew.cmu.edu
Date: Monday, 19 April, 2010, 15:14




> From: 
> To: 
> Subject: Absence notification


This would be OK if the incoming message came from r...@server.domain.

Are you doing something funny at the gateway, such that mail gets re-sent
to the cyrus system with MAIL FROM  ?  If so, bounces
don't go back to sender either.  Have people reported that too?

Look at the log records on the gateway and the cyrus system to see what
the sender address is.


Joseph Brennan
Lead Email Systems Engineer
Columbia University Information Technology





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

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: Cyrus vacation notice

2010-04-19 Thread Joseph Brennan


> From: 
> To: 
> Subject: Absence notification


This would be OK if the incoming message came from r...@server.domain.

Are you doing something funny at the gateway, such that mail gets re-sent
to the cyrus system with MAIL FROM  ?  If so, bounces
don't go back to sender either.  Have people reported that too?

Look at the log records on the gateway and the cyrus system to see what
the sender address is.


Joseph Brennan
Lead Email Systems Engineer
Columbia University Information Technology





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: Cyrus vacation notice

2010-04-19 Thread Andrew Nash
I checked the mail and imapd logs, and this is an example of when the system is 
processing delivery to a user with an out of office messages on.  There doesn’t 
seem to be any particular error or warning related to this,
 
Apr 19 14:45:24 server lmtpd[14059]: mystore: starting txn 2147488442
Apr 19 14:45:24 server lmtpd[14059]: mystore: committing txn 2147488442
Apr 19 14:45:24 server lmtpd[14059]: duplicate_mark: 
 .fred.sieve.    1271684724
Apr 19 14:45:24 server lmtpd[14059]: duplicate_check: 
<62279.21039...@web86708.mail.ird.yahoo.com> user.fred   0
Apr 19 14:45:25 server lmtpd[14059]: mystore: starting txn 2147488443
Apr 19 14:45:25 server lmtpd[14059]: mystore: committing txn 2147488443
Apr 19 14:45:25 server lmtpd[14059]: duplicate_mark: 
<62279.21039...@web86708.mail.ird.yahoo.com> user.fred   1271684724
Apr 19 14:45:25 server lmtpd[14059]: mystore: starting txn 2147488444
Apr 19 14:45:25 server lmtpd[14059]: mystore: committing txn 2147488444
Apr 19 14:45:25 server lmtpd[14059]: duplicate_mark: 
<62279.21039...@web86708.mail.ird.yahoo.com> .fred+.sieve.   1271684725
 
 

--- On Mon, 19/4/10, Adam Tauno Williams  wrote:


From: Adam Tauno Williams 
Subject: Re: Cyrus vacation notice
To: info-cyrus@lists.andrew.cmu.edu
Date: Monday, 19 April, 2010, 14:01


On Mon, 2010-04-19 at 14:37 +0200, Marc Patermann wrote:
> > I couldn’t find any trace of a postmaster mailbox, so I changed the
> > error logging address to ‘root’.
> If postfix may not have been able to deliver to the postmaster mailbox
> there must be information in the log file about this.
> If error message go to an non existing mailbox this is an configuration
> problem. Fix this!

+1 +1 +1

Check out the Postfix configuration directives: "notify_classes",
"2bounce_notice_recipient", "bounce_notice_recipient",
"delay_notice_recipient", "double_bounce_sender", and
"error_notice_recipient".  Tuning these can make your life much simpler.

-- 
OpenGroupware developer: awill...@whitemice.org
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>


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
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: Cyrus vacation notice

2010-04-19 Thread Andrew Nash
Thanks for that.  I edited the main.cf file at the end of last week when 
I noticed the error messages weren't available!
 
In main.cf I now have:
 
error_notice_recipient = r...@server.domain
bounce_notice_recipient = $error_notice_recipient 
2bounce_notice_recipient = $error_notice_recipient
delay_notice_recipient = $error_notice_recipient

After making the above changes, I found the previously described notification 
in the root mailbox:
 
>From MAILER-DAEMON  Mon Apr 19 10:58:33 2010
Return-Path: <>
Delivered-To: r...@server.domain
Received: by server.domain (Postfix, from userid 41)
    id 4C13E7E222; Mon, 19 Apr 2010 10:58:33 +0100 (BST)
Message-ID: 
Date: Mon, 19 Apr 2010 10:58:33 +0100
X-Sieve: CMU Sieve 2.2
From: 
To: 
Subject: Absence notification
In-Reply-To: <20100419-10541090-2...@264029-mta1-03.lon.intensive.int>
Auto-Submitted: auto-replied (vacation)
 
This is an automated reply.
This person is temporarily out of the office
and has left the following note:
 
I am out of the office at a training course until Wednesday 28 April. I will 
respond to your email on my return. If you wish to speak to someone, please 
call reception on 99. 

 
I'm new to the inner workings of the mail server, so it's taking me a bit of 
time to trace messages through the system.  Is it possible to tell anything 
from the above - for example, if Cyrus is using the wrong field to deliver the 
out of office message?
 
Thanks again for your help.
 
David
 

--- On Mon, 19/4/10, Adam Tauno Williams  wrote:


From: Adam Tauno Williams 
Subject: Re: Cyrus vacation notice
To: info-cyrus@lists.andrew.cmu.edu
Date: Monday, 19 April, 2010, 14:01


On Mon, 2010-04-19 at 14:37 +0200, Marc Patermann wrote:
> > I couldn’t find any trace of a postmaster mailbox, so I changed the
> > error logging address to ‘root’.
> If postfix may not have been able to deliver to the postmaster mailbox
> there must be information in the log file about this.
> If error message go to an non existing mailbox this is an configuration
> problem. Fix this!

+1 +1 +1

Check out the Postfix configuration directives: "notify_classes",
"2bounce_notice_recipient", "bounce_notice_recipient",
"delay_notice_recipient", "double_bounce_sender", and
"error_notice_recipient".  Tuning these can make your life much simpler.

-- 
OpenGroupware developer: awill...@whitemice.org
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>


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
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: Cyrus vacation notice

2010-04-19 Thread Adam Tauno Williams
On Mon, 2010-04-19 at 14:37 +0200, Marc Patermann wrote:
> > I couldn’t find any trace of a postmaster mailbox, so I changed the
> > error logging address to ‘root’.
> If postfix may not have been able to deliver to the postmaster mailbox
> there must be information in the log file about this.
> If error message go to an non existing mailbox this is an configuration
> problem. Fix this!

+1 +1 +1

Check out the Postfix configuration directives: "notify_classes",
"2bounce_notice_recipient", "bounce_notice_recipient",
"delay_notice_recipient", "double_bounce_sender", and
"error_notice_recipient".  Tuning these can make your life much simpler.

-- 
OpenGroupware developer: awill...@whitemice.org

OpenGroupare & Cyrus IMAPd documenation @



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: Cyrus vacation notice

2010-04-19 Thread Marc Patermann
Joseph,

Andrew Nash schrieb:

> Thanks very much for your reply.  From my testing, I think all
> vacation messages to external senders are failing.
You did not provide the previously ask for log files.
What do the postfix and imapd log file say on a failing attempt?

> I had a look through various configuration files, and saw that the
> MTA (postfix) was sending errors to a postmaster address.
What errors?

> I couldn’t find any trace of a postmaster mailbox, so I changed the
> error logging address to ‘root’.
If postfix may not have been able to deliver to the postmaster mailbox
there must be information in the log file about this.

If error message go to an non existing mailbox this is an configuration
problem. Fix this!

> The outgoing vacation notices ended up in the root user’s mailbox, so
> it looks like there is something wrong with the way Cyrus/Sieve is
> replying to the sender.  I’ve copied out an example message which is
> ending up in the root mailbox (I’ve changed server and domain name
> etc):
Again: Please provide log files!


Marc

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: Cyrus vacation notice

2010-04-19 Thread Andrew Nash
Hello Joseph
 
Thanks very much for your reply.  From my testing, I think all vacation 
messages to external senders are failing.  
 
I had a look through various configuration files, and saw that the MTA 
(postfix) was sending errors to a postmaster address.  I couldn’t find any 
trace of a postmaster mailbox, so I changed the error logging address to 
‘root’.  The outgoing vacation notices ended up in the root user’s mailbox, so 
it looks like there is something wrong with the way Cyrus/Sieve is replying to 
the sender.  I’ve copied out an example message which is ending up in the root 
mailbox (I’ve changed server and domain name etc):
 
 
>From MAILER-DAEMON  Mon Apr 19 10:58:33 2010
Return-Path: <>
Delivered-To: r...@server.domain
Received: by server.domain (Postfix, from userid 41)
    id 4C13E7E222; Mon, 19 Apr 2010 10:58:33 +0100 (BST)
Message-ID: 
Date: Mon, 19 Apr 2010 10:58:33 +0100
X-Sieve: CMU Sieve 2.2
From: 
To: 
Subject: Absence notification
In-Reply-To: <20100419-10541090-2...@264029-mta1-03.lon.intensive.int>
Auto-Submitted: auto-replied (vacation)
 
This is an automated reply.
This person is temporarily out of the office
and has left the following note:
 
I am out of the office at a training course until Wednesday 28 April. I will 
respond to your email on my return. If you wish to speak to someone, please 
call reception on 99. 
 
Is there any obvious reason why the original sender isn’t receiving the out of 
office message, and is there anything I can do to correct the problem?  
 
Thanks very much.
 
David

 

--- On Thu, 15/4/10, Joseph Brennan  wrote:


From: Joseph Brennan 
Subject: Re: Cyrus vacation notice
To: info-cyrus@lists.andrew.cmu.edu
Date: Thursday, 15 April, 2010, 14:09




> However, when I send to a user with a set vacation message using an
> external email system (eg Hotmail) then it?s a bit hit and miss as to
> whether an out of office message gets delivered to the sender.

Check this by looking at your syslog or maillog, for an outgoing
message from <> to the hotmail address.  It will be within seconds
of the incoming message from the hotmail address.

Actual delivery to the hotmail inbox is not your concern, and from
stories I've heard, don't count on it to work.  The hotmail user may
have a user-level configuration that throws the mail away, without
realizing it.

If there are any other rules in the sieve filter before the vacation
rule, check whether they say to stop.  For example, if I say put mail
from f...@example.com in inbox and stop, and then have the vacation
rule after that, f...@example.com won't get the vacation message.

You know of course that vacation replies per sender only once a day,
or some longer period, right?  Just checking.


Joseph Brennan
Columbia University Information Technology



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

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: Cyrus vacation notice

2010-04-15 Thread Joseph Brennan


> However, when I send to a user with a set vacation message using an
> external email system (eg Hotmail) then it?s a bit hit and miss as to
> whether an out of office message gets delivered to the sender.

Check this by looking at your syslog or maillog, for an outgoing
message from <> to the hotmail address.  It will be within seconds
of the incoming message from the hotmail address.

Actual delivery to the hotmail inbox is not your concern, and from
stories I've heard, don't count on it to work.  The hotmail user may
have a user-level configuration that throws the mail away, without
realizing it.

If there are any other rules in the sieve filter before the vacation
rule, check whether they say to stop.  For example, if I say put mail
from f...@example.com in inbox and stop, and then have the vacation
rule after that, f...@example.com won't get the vacation message.

You know of course that vacation replies per sender only once a day,
or some longer period, right?  Just checking.


Joseph Brennan
Columbia University Information Technology



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


Cyrus vacation notice

2010-04-15 Thread Andrew Nash
We’ve got an email system based around Cyrus etc.  The ‘Out of Office’ or 
Vacation facility doesn’t seem to be working reliably.  From what I can test, 
it seems that if a user on the LAN sends to another internal email user who has 
set a Vacation message, then they will receive notification that the intended 
recipient is out of the office.  The Sieve script is in 
/usr/sieve/f/fred/default and also msg.script in the same directory.  However, 
when I send to a user with a set vacation message using an external email 
system (eg Hotmail) then it’s a bit hit and miss as to whether an out of office 
message gets delivered to the sender.  I’ve set up a test user and created a 
vacation message, and at present no out of office messages are being delivered, 
although I’m almost certain they sometimes do get through.  The system has been 
in place for a few years, and I’ve had a couple of users mention that it didn’t 
always work, but I’m only
 just getting around to investigating things in more detail.  I’ve looked at 
the header of an incoming message in the recipient’s Cyrus folder which should 
be generating an out of office message, and the ‘To’ and ‘From’ fields look 
okay, plus there is an X-Sieve: line.  I’d appreciate some help in trying to 
track down what’s going on.  I’m not sure if the out of office message is being 
generated but not delivered, or if it’s not being generated at all.  Are there 
any logs I can check, or traces I can set up? 
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: cyrus vacation notice problem

2006-04-14 Thread Patrick Radtke


On Apr 14, 2006, at 9:46 AM, Andri Herumurti wrote:


when i try cyrus vacation notice at first it runs normally,

but yesterday the probelm start, cyrus vacation notice not working  
properly,


some times sent a auto reply vacation notice, some times not.

how to fix this?

where is the file / database that save the cyrus vacation notice?

may be i need to delete or repair that files.

Thanks for your help
Andri


I think the deliver.db tracks who's been replied to with vacation.

Vacation is designed to respond only once every 'n' days to a  
specific address. If you're testing by sending mail from the same  
address then you're probably observing the correct behavior.


-Patrick

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


cyrus vacation notice problem

2006-04-14 Thread Andri Herumurti
when i try cyrus vacation notice at first it runs normally,but yesterday the probelm start, cyrus vacation notice not working properly,some times sent a auto reply vacation notice, some times not.how to fix this?where is the file / database that save the cyrus vacation notice?may be i need to delete or repair that files.Thanks for your help  Andri  
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
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