Re: Vacation Not Working...
Hi, Nathanael D. Noblet schrieb am 12.05.2011 18:05 Uhr: I have yet to get it working. I figured I'd give a recap of what has changed since I started asking for help here. I've added sieve_extensions: vacations to imap.conf and a 'telnet localhost sieve' shows that vacation is supported. Good so far. Your sendmail path sendmail: /usr/sbin/sendmail is working, I hope!? Even for user cyrus? Here is the simple standard script we use as default: require vacation; require fileinto; if header :contains X-Spam-Flag YES { fileinto INBOX.Junk; stop; } vacation :addresses [ possible@recipient.address1, possible@recipient.address2 ] :subject subject text Message text; Pretty straight forward. Marc Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/12/2011 11:48 AM, Gary Mills wrote: Look what I found in the sieve vacation document (draft-ietf-sieve-vacation-07): Vacation is used to respond to a message with another message. Vacation's messages are always addressed to the Return-Path address (that is, the envelope from address) of the message being responded to. That's your problem. This indeed was my problem, switched a small portion of our mail system to use an lmtp socket instead of a pipe and the Return-Path is filled out correctly. This also allows the vacation message to start functioning. Thanks for all the help everyone. -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
Hello some more... ;) I have yet to get it working. I figured I'd give a recap of what has changed since I started asking for help here. I've added sieve_extensions: vacations to imap.conf and a 'telnet localhost sieve' shows that vacation is supported. Gary Mills checked the headers of the emails being sent and concluded that the envelope recipient and the header recipient do match. In this case its a test account of t...@greatexcursions.com. I set the sieve script to # Sieve Filter # Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am) require vacation; # Vacation vacation :days 3 :addresses t...@greatexcursions.com :subject Out of Office Hello? Auto responder.; I stopped cyrus and deleted the deliver.db so I could try sending from the same source multiple times. I also tried sending from three different source accounts. At no time did anything come back. Nor did I see an attempt to send anything. Is there anyway to increase the verbosity on a sieve to see why it doesn't match? or that it is at least attempting to match? -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 12/05/11 10:05 -0600, Nathanael D. Noblet wrote: Hello some more... ;) I have yet to get it working. I figured I'd give a recap of what has changed since I started asking for help here. I've added sieve_extensions: vacations to imap.conf and a 'telnet localhost sieve' shows that vacation is supported. Gary Mills checked the headers of the emails being sent and concluded that the envelope recipient and the header recipient do match. In this case its a test account of t...@greatexcursions.com. I set the sieve script to # Sieve Filter # Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am) require vacation; # Vacation vacation :days 3 :addresses t...@greatexcursions.com :subject Out of Office Hello? Auto responder.; I stopped cyrus and deleted the deliver.db so I could try sending from the same source multiple times. I also tried sending from three different source accounts. At no time did anything come back. Nor did I see an attempt to send anything. Is there anyway to increase the verbosity on a sieve to see why it doesn't match? or that it is at least attempting to match? I don't recall if this was asked, but did you install the script via timsieved (as opposed to copying it into its location directly)? Did you verify if the script got converted to bytecode? Have you tried running sieve/test.c against your script? -- Dan White Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
Nathanael D. Noblet wrote: I set the sieve script to # Sieve Filter # Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am) require vacation; # Vacation vacation :days 3 :addresses t...@greatexcursions.com :subject Out of Office Hello? Auto responder.; You may have to specify a From address for the response. E.g., require [vacation]; vacation :days 3 :addresses [t...@greatexcursions.com] :from nathan...@gnat.ca :subject Out of Office Hello? Auto responder.; You might also need to put this in a test condition such as: if address :matches From *@gnat.ca { vacation :days 3 :addresses t...@greatexcursions.com :from nathan...@gnat.ca :subject Out of Office Hello? Auto responder.; } It is also possible the mailbox needs to be a user mailbox. I had to create an auto-responder for a mailbox, and for some reason that now escapes me I had to create a user account instead of a Shared Folder. But, I don't recall why, and it may have had to do with unique names in our account management system, instead of anything Cyrus related. Mike -- Michael D. Sofka sof...@rpi.edu CMT Sr. Systems Programmer, Email, HPC, TeX, Epistemology Rensselaer Polytechnic Institute, Troy, NY. http://www.rpi.edu/~sofkam/ Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/12/2011 10:41 AM, Dan White wrote: I don't recall if this was asked, but did you install the script via timsieved (as opposed to copying it into its location directly)? Did you verify if the script got converted to bytecode? This wasn't asked, I have a default.bc file and ingo tells me it was successfully saved. Since filtering works as expected, I don't know why I would think this didn't work. [root@titanium t2]# ls -l total 20 lrwxrwxrwx 1 cyrus mail 7 May 2 10:37 defaultbc - ingo.bc -rw--- 1 cyrus mail 120 May 10 10:59 ingo.bc -rw--- 1 cyrus mail 225 May 10 10:59 ingo.script If I cat the bytecode I get: Out of OfficeHello? Auto responder. Which atleast shows the strings. Have you tried running sieve/test.c against your script? I haven't is this a source file from the package itself, or would this normally turn into sometype of sieve test binary I can use? I'll start looking in the meantime. -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/12/2011 10:41 AM, Dan White wrote: I don't recall if this was asked, but did you install the script via timsieved (as opposed to copying it into its location directly)? Did you verify if the script got converted to bytecode? If I use sieveshell I can see that the script exists and it is the default. Not sure if this has anything to do with the conversion to bytecode.. -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 12/05/11 11:12 -0600, Nathanael D. Noblet wrote: On 05/12/2011 10:41 AM, Dan White wrote: Have you tried running sieve/test.c against your script? I haven't is this a source file from the package itself, or would this normally turn into sometype of sieve test binary I can use? I'll start looking in the meantime. See sieve/README in the source for details. It is not compiled during a normal compile, and will need to be explicitly built. -- Dan White Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On Tue, May 10, 2011 at 10:33:28AM -0500, Gary Mills wrote: On Tue, May 10, 2011 at 08:59:48AM -0600, Nathanael D. Noblet wrote: On 05/10/2011 06:17 AM, Gary Mills wrote: On Tue, May 10, 2011 at 07:39:48AM +0200, Simon Matter wrote: To start, you may want to post your imapd.conf here and an example sieve script used for vacations. Find a message that should have triggered a vacation response. Check the envelope recipient and header recipient of this message. They must match to trigger vacation. Sent from a google account. I sent the sieve script in a previous message. Return-Path: That's the envelope sender, used for error returns like non-delivery reports. Nothing will be sent to that one. I don't know if sieve vacation uses it, but it wouldn't work if it did. It may also be an indication of a message that should not receive a response. Look what I found in the sieve vacation document (draft-ietf-sieve-vacation-07): Vacation is used to respond to a message with another message. Vacation's messages are always addressed to the Return-Path address (that is, the envelope from address) of the message being responded to. That's your problem. -- -Gary Mills--Unix Group--Computer and Network Services- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On Mon, 2011-05-09 at 20:03 -0600, Nathanael D. Noblet wrote: Hello, I have a mail server that we use cyrus-imap for. It works well enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely somewhat old. But it certainly worked at that version. In anycase we've used sieve for server side filtering and it has worked well for years. We have a couple users however that would like to use the 'Vacation'/'Auto responding' features. The add the rule, however no auto response is ever attempted. There are no errors in the log, nada. What SIEVE client are you using to generate the vacation script? In several clients you have to include *target* addresses that when a message is received should generate a response [this is the vacation user's addresses]. Users very commonly neglect that value. I spent a few hours trying to get something but never did. Can anyone suggest what I should be doing to see why it isn't working? Any gotcha's or other pointers? [Internet Search] has turned up many people with similar problems, but no answers. Probably the lovely people who ask questions but can never be bothered to post their solutions. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On Tue, May 10, 2011 at 07:39:48AM +0200, Simon Matter wrote: To start, you may want to post your imapd.conf here and an example sieve script used for vacations. Find a message that should have triggered a vacation response. Check the envelope recipient and header recipient of this message. They must match to trigger vacation. -- -Gary Mills--Unix Group--Computer and Network Services- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
Hi, Quoting Nathanael D. Noblet nathan...@gnat.ca: Hello, I have a mail server that we use cyrus-imap for. It works well enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely somewhat old. In anycase we've used sieve for server side filtering and it has worked well for years. We have a couple users however that would like to use the 'Vacation'/'Auto responding' features. The add the rule, however no auto response is ever attempted. There are no errors in the log, nada. I spent a few hours trying to get something but never did. Can anyone suggest what I should be doing to see why it isn't working? Any gotcha's or other pointers? Google has turned up many people with similar problems, but no answers. I could really use a hand with how to debug/track this down. Configuring and debuging Vacation is a bit tricky. First you need to make sure cyrus is able to send emails. Do forwarding rules work for you? Second you need to add vacation to sieve_extensions in imapd.conf. and the script must contain a require vacation line at the beginning. Third, there are some measures to prevent mailloops and other not intended vacationmails. So to test you have to use different senderaddresses or delete the delivery DB for each try, and you have to configure the addresses of the recipient in the vacation rule. Hope that helps to debug the problem. Regards Michael Thanks, -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ M.MengeTel.: (49) 7071/29-70316 Universität Tübingen Fax.: (49) 7071/29-5912 Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de Wächterstraße 76 72074 Tübingen smime.p7s Description: S/MIME Signatur Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/09/2011 11:39 PM, Simon Matter wrote: Hello, I have a mail server that we use cyrus-imap for. It works well enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely somewhat old. In anycase we've used sieve for server side filtering and it has worked well for years. We have a couple users however that would like to use the 'Vacation'/'Auto responding' features. The add the rule, however no auto response is ever attempted. There are no errors in the log, nada. I spent a few hours trying to get something but never did. Can anyone suggest what I should be doing to see why it isn't working? Any gotcha's or other pointers? Google has turned up many people with similar problems, but no answers. I could really use a hand with how to debug/track this down. To start, you may want to post your imapd.conf here and an example sieve script used for vacations. imapd.conf: configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true pwcheck_method: saslauthd sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem #tls/certs/ca-bundle.crt postmaster: postmaster allowanonymouslogin: no allowplaintext: yes servername: titanium.nobletdesign.com reject8bit: no quotawarn: 80 timeout: 30 poptimeout: 10 sieve_maxscriptsize: 32 sieve_maxscripts: 5 unixhierarchysep: yes sieve: # Sieve Filter # Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am) require vacation; # Vacation vacation :days 0 :addresses t...@greatexcursions.com :subject Out of Office Hello? Auto responder.; -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/10/2011 07:24 AM, Michael Menge wrote: Hi, Quoting Nathanael D. Noblet nathan...@gnat.ca: Hello, I have a mail server that we use cyrus-imap for. It works well enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely somewhat old. In anycase we've used sieve for server side filtering and it has worked well for years. We have a couple users however that would like to use the 'Vacation'/'Auto responding' features. The add the rule, however no auto response is ever attempted. There are no errors in the log, nada. I spent a few hours trying to get something but never did. Can anyone suggest what I should be doing to see why it isn't working? Any gotcha's or other pointers? Google has turned up many people with similar problems, but no answers. I could really use a hand with how to debug/track this down. Configuring and debuging Vacation is a bit tricky. First you need to make sure cyrus is able to send emails. Do forwarding rules work for you? They do yes. Second you need to add vacation to sieve_extensions in imapd.conf. and the script must contain a require vacation line at the beginning. Hmm that's new. I had seen things about require vacation in the sieve script (which is present). However looking at a list of files installed as part of the cyrus-imapd package I see nothing about vacation. Looking at the man page I see that that is necessary now. Third, there are some measures to prevent mailloops and other not intended vacationmails. So to test you have to use different senderaddresses or delete the delivery DB for each try, and you have to configure the addresses of the recipient in the vacation rule. I've added it restarted cyrus and sent mail from a different account than my previous test. Hope that helps to debug the problem. It has definitely given me some more info to look at I was previously unaware of. Thanks! -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/10/2011 09:10 AM, Nathanael D. Noblet wrote: On 05/10/2011 07:24 AM, Michael Menge wrote: Third, there are some measures to prevent mailloops and other not intended vacationmails. So to test you have to use different senderaddresses or delete the delivery DB for each try, and you have to configure the addresses of the recipient in the vacation rule. What if I want every email to get an autoresponse? The following is the script being tested. require vacation; # Vacation vacation :days 0 :addresses t...@greatexcursions.com :subject Out of Office Hello? Auto responder.; I've added it restarted cyrus and sent mail from a different account than my previous test. Unfortunately it has been delivered, and no vacation message was sent. :( Any additional ideas? -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
Hi, Quoting Nathanael D. Noblet nathan...@gnat.ca: On 05/09/2011 11:39 PM, Simon Matter wrote: Hello, I have a mail server that we use cyrus-imap for. It works well enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely somewhat old. In anycase we've used sieve for server side filtering and it has worked well for years. We have a couple users however that would like to use the 'Vacation'/'Auto responding' features. The add the rule, however no auto response is ever attempted. There are no errors in the log, nada. I spent a few hours trying to get something but never did. Can anyone suggest what I should be doing to see why it isn't working? Any gotcha's or other pointers? Google has turned up many people with similar problems, but no answers. I could really use a hand with how to debug/track this down. To start, you may want to post your imapd.conf here and an example sieve script used for vacations. imapd.conf: configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true pwcheck_method: saslauthd sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem #tls/certs/ca-bundle.crt postmaster: postmaster allowanonymouslogin: no allowplaintext: yes servername: titanium.nobletdesign.com reject8bit: no quotawarn: 80 timeout: 30 poptimeout: 10 sieve_maxscriptsize: 32 sieve_maxscripts: 5 unixhierarchysep: yes you may need to set sieve_extensions sieve: # Sieve Filter # Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am) require vacation; # Vacation vacation :days 0 :addresses t...@greatexcursions.com :subject Out of Office Hello? Auto responder.; IMHO :days 0 is not allowed/ignored M.MengeTel.: (49) 7071/29-70316 Universität Tübingen Fax.: (49) 7071/29-5912 Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de Wächterstraße 76 72074 Tübingen smime.p7s Description: S/MIME Signatur Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/10/2011 09:21 AM, Michael Menge wrote: you may need to set sieve_extensions Yeah, another list member suggested the same, which I've added but still no response. IMHO :days 0 is not allowed/ignored Ok, I've set it to 1. However then I need to delete the deliver.db between attempts. Do I need to stop/restart or otherwise touch running cyrus imap processes when I delete the deliver.db? Meaning, do I stop cyrus, then delete deliver.db, then start it. Or can I simply delete it out from under a running cyrus-imap system? -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On Tue, May 10, 2011 at 08:59:48AM -0600, Nathanael D. Noblet wrote: On 05/10/2011 06:17 AM, Gary Mills wrote: On Tue, May 10, 2011 at 07:39:48AM +0200, Simon Matter wrote: To start, you may want to post your imapd.conf here and an example sieve script used for vacations. Find a message that should have triggered a vacation response. Check the envelope recipient and header recipient of this message. They must match to trigger vacation. Sent from a google account. I sent the sieve script in a previous message. Return-Path: That's the envelope sender, used for error returns like non-delivery reports. Nothing will be sent to that one. I don't know if sieve vacation uses it, but it wouldn't work if it did. It may also be an indication of a message that should not receive a response. Received: from postman ([unix socket]) by titanium.nobletdesign.com (Cyrus v2.3.7-Invoca-RPM-2.3.7-7.el5_4.3) with LMTPA; Tue, 10 May 2011 09:57:50 -0500 X-Sieve: CMU Sieve 2.3 Received: from titanium.nobletdesign.com (localhost.localdomain [127.0.0.1]) by titanium.nobletdesign.com (Postfix) with ESMTP id 93332F78069 for t...@greatexcursions.com; Tue, 10 May 2011 09:57:50 -0500 (CDT) That will be the envelope recipient. [...] Subject: TEsting auto responder From: Nathanael Noblet nathanaelnob...@gmail.com To: t...@greatexcursions.com That's the header recipient. They do match. -- -Gary Mills--Unix Group--Computer and Network Services- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/10/2011 09:26 AM, Nathanael D. Noblet wrote: On 05/10/2011 09:21 AM, Michael Menge wrote: you may need to set sieve_extensions Yeah, another list member suggested the same, which I've added but still no response. IMHO :days 0 is not allowed/ignored Ok, I've set it to 1. However then I need to delete the deliver.db between attempts. Do I need to stop/restart or otherwise touch running cyrus imap processes when I delete the deliver.db? Meaning, do I stop cyrus, then delete deliver.db, then start it. Or can I simply delete it out from under a running cyrus-imap system? I stopped cyrus, deleted deliver.db and resent from the google test account. (With days == 1)... nothing came back, no messages in the logs. :( -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
--On Tuesday, May 10, 2011 9:43 -0600 Nathanael D. Noblet nathan...@gnat.ca wrote: IMHO :days 0 is not allowed/ignored Ok, I've set it to 1. Try 3. Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On 05/10/2011 09:46 AM, Joseph Brennan wrote: --On Tuesday, May 10, 2011 9:43 -0600 Nathanael D. Noblet nathan...@gnat.ca wrote: IMHO :days 0 is not allowed/ignored Ok, I've set it to 1. Try 3. No difference. Set to 3, stopped cyrus, deleted deliver.db, sent from two different accounts. They were received, however no attempt to respond happened. -- Nathanael d. Noblet t 403.875.4613 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation Not Working...
On Tue, May 10, 2011 at 08:58:43AM -0600, Nathanael D. Noblet wrote: sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail sieve_maxscriptsize: 32 sieve_maxscripts: 5 Here's what else we have in our config file: sievenotifier: mailto sieve_extensions: fileinto reject vacation imapflags notify envelope body relational regex subaddress copy Also, as people said - you need to have the right envelope sender, because that's what sieve is keying off. Finally, what's happening in your syslog files? There should be something from sieve about processing the message. Bron. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Vacation not working, seeing 2 return paths in headers
On Wed, Feb 27, 2002 at 12:24:44AM -0600, Mike Grommet wrote: I'm not sure how to go about setting sendmail to use lmtp exclusively... One way to do this is explained at: http://mail.cc.umanitoba.ca/source Look for `feature/local_cyrus.m4'. -- -Gary Mills--Unix Support--U of M Academic Computing and Networking-
Re: Vacation not working, seeing 2 return paths in headers
This more or less solved my problems... I'm still getting double return paths in my messages, but they are identical now, and contain valid information so everythings works... I'm still a bit queasy about having 2 return paths. I wish I knew how to eliminate the 2nd one, just to have a cleaner solution. - Original Message - From: Gary Mills [EMAIL PROTECTED] To: Mike Grommet [EMAIL PROTECTED] Cc: Michael Bacon [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 8:37 AM Subject: Re: Vacation not working, seeing 2 return paths in headers On Wed, Feb 27, 2002 at 12:24:44AM -0600, Mike Grommet wrote: I'm not sure how to go about setting sendmail to use lmtp exclusively... One way to do this is explained at: http://mail.cc.umanitoba.ca/source Look for `feature/local_cyrus.m4'. -- -Gary Mills--Unix Support--U of M Academic Computing and Networking-
Re: Vacation not working, seeing 2 return paths in headers
Hmmm ok, I've gotten much closer... Actually, I got vacation to properly respond... but I'm not really happy with what is going on yet... mainly because I'm still seeing 2 return paths but things at least work right... Part of my problem is that somehow on my machine, under my sendmail config files I have a mailer/cyrus.m4 When I specified MAILER(cyrus) it was pulling in a bunch of definitions from there... In my sendmail .mc file, I had my own definition for the cyrus mailer, but the others were getting dumped in there too, and my guess is that sendmail was taking the first one... Here is the relevant part of my generated sendmail.cf... the last Mcyrus is mine, the others were just added from the cyrus.m4 file Well, I'm still getting multiple return paths, but they are just copies of each other... Still, I dont like having 2 of them, and this concerns me... Example Headers: Return-Path: [EMAIL PROTECTED] X-Sieve: cmu-sieve 2.0 Return-Path: [EMAIL PROTECTED] Received: from elucidations.net ([64.9.213.129]) From: Mike Grommet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: blah I'm happy its working, don't get me wrong, I've working on this for way too long, but isnt the fact that I have to return paths a Really Bad Thing(tm) ? Any ideas where its coming from? Understanding is a good thing, yes? --- Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/, T=X-Unix/X-Unix/X-Unix, A=smrsh -c $u ## ### Cyrus Mailer specification ### ## # $Id: cyrus.m4,v 8.23 2001/11/12 23:11:34 ca Exp $ (Carnegie Mellon) # Mcyrus, P=/usr/cyrus/bin/deliver, F=lsDFMnPqAh5@/:|, S=EnvFromL, R=EnvToL/HdrToL, U=cyrus:mail, T=DNS/RFC822/X-Unix, A=deliver -e -m $h -- $u Mcyrusbb, P=/usr/cyrus/bin/deliver, F=lsDFMnPu, S=EnvFromL, R=EnvToL/HdrToL, U=cyrus:mail, T=DNS/RFC822/X-Unix, A=deliver -e -m $u Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE /var/imap/socket/lmtp - Original Message - From: Mike Grommet [EMAIL PROTECTED] To: Michael Bacon [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 12:24 AM Subject: Re: Vacation not working, seeing 2 return paths in headers Bingo. Sounds pretty darn close... I'm not sure how to go about setting sendmail to use lmtp exclusively... I tried something like this in my .mc file, coming from an example I found in the 2.1.1 version (which I'm not running, but anyway), just a snippet... MAILER_DEFINITIONS Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE /var/imap/socket/lmtp LOCAL_RULE_0 Rbb + $+ @ $=w . $#cyrus $: + $1 No luck... The dastardly double return paths still exist... - Original Message - From: Michael Bacon [EMAIL PROTECTED] To: Mike Grommet [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 11:09 PM Subject: Re: Vacation not working, seeing 2 return paths in headers Here's a guess: You're using the old sendmail cyrus configure which delivers mail by calling the deliver binary as the mailer. In the mailer definition in the cf file, you've specified to sendmail the option to add a return-path header to the message before delivery. And the name of your machine is sammonsmail and the cyrus user there is cyrus. About right? It's possible to get things right with the deliver command, but if you're using Sendmail 8.12.2, there's no need. In that case, you really probably want to configure sendmail to do all delivery directly to the cyrus socket usign LMTP. (somewhere in the cyrus build -- I forget where -- there's instructions on how to do this.) This will get rid of the double return-path header, as well as supply the return-path to sieve in a way that it can interperet, which will allow it to send out a response message. Michael --On Tuesday, February 26, 2002 7:08 PM -0600 Mike Grommet [EMAIL PROTECTED] wrote: Relevant details: Sendmail 8.12.2 Cyrus Imap 2.0.16 As I've posted in the past, I'm having some fun trying to get vacation working in Cyrus 2.0.16 Cyrus recieves and delivers mail properly, I'm not seeing any problems there What I've uncovered, through the help of several individuals is that other sieve scripts such as fileinto's and redirects work fine... Reject scripts
Re: Vacation not working, seeing 2 return paths in headers
Hello, I also have 2 return-path from the beginning : Return-Path: cyrus@nynaeve X-Sieve: cmu-sieve 2.0 Return-Path: [EMAIL PROTECTED] Received: by mail.slortar.net (Postfix, from userid 102) id 4D61372C006; Wed, 27 Feb 2002 08:27:47 +0100 (CET) X-Sieve: cmu-sieve 2.0 Received: from lists2.andrew.cmu.edu (LISTS2.ANDREW.CMU.EDU [128.2.10.216]) by mail.slortar.net (Postfix) with ESMTP id 3832972C005 for [EMAIL PROTECTED]; Wed, 27 Feb 2002 08:27:46 +0100 (CET) The 2 are added by sieve, one when it comes to my mailing-lists account and is forwarded to my main account, the 2nd one from my account when sieve file it into the correct folder. slortar.net is my domain, nynaeve is the name of my server From the little that I know They don't seem to be a bother at all, they are added by the local delivery agent when mail is already accepted and therefore there is no need to have a return-path that is used by the MTA when, for example, local recipient doesn't exist. Vacation should better used the from header ? Maybe I am completly wrong ... Regards Luc Mike Grommet said: Hmmm ok, I've gotten much closer... Actually, I got vacation to properly respond... but I'm not really happy with what is going on yet... mainly because I'm still seeing 2 return paths but things at least work right... Part of my problem is that somehow on my machine, under my sendmail config files I have a mailer/cyrus.m4 When I specified MAILER(cyrus) it was pulling in a bunch of definitions from there... In my sendmail .mc file, I had my own definition for the cyrus mailer, but the others were getting dumped in there too, and my guess is that sendmail was taking the first one... Here is the relevant part of my generated sendmail.cf... the last Mcyrus is mine, the others were just added from the cyrus.m4 file Well, I'm still getting multiple return paths, but they are just copies of each other... Still, I dont like having 2 of them, and this concerns me... Example Headers: Return-Path: [EMAIL PROTECTED] X-Sieve: cmu-sieve 2.0 Return-Path: [EMAIL PROTECTED] Received: from elucidations.net ([64.9.213.129]) From: Mike Grommet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: blah I'm happy its working, don't get me wrong, I've working on this for way too long, but isnt the fact that I have to return paths a Really Bad Thing(tm) ? Any ideas where its coming from? Understanding is a good thing, yes?