[Dovecot] Sieve Vacation for redirected email
I posted this elsewhere, but under an old post. I apologize for the repeated question.
Hello Dovecot Users,
Dovecot 2.1.7
Our emails are redirected from the home office causing all vacation
responses to fail with, "discarding vacation response for implicitly
delivered message; no known (envelope) recipient address found in
message headers".
I need to use the Sieve Vacation option but cannot figure out how to
get it working for us. If I send to the local address, it works fine.
If I send to the redirect address, it fails with above error.
Unfortunately, all of our emails are redirects from a single domain.
There's got to be some way to make it work.
Any help would be greatly appreciated,
Dave
Stephan Bosch-2 wrote
- Vacation extension: finally added support for using the original recipient in vacation address check. It is also possible to disable the recipient address check entirely. Check doc/vacation.txt for configuration information.
I think you might want to look at the :addresses paramerer
http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Vacation_auto-reply
http://tools.ietf.org/html/rfc5230#page-7
On 03/26/2013 01:10 PM, Dave Gattis wrote:
I posted this elsewhere, but under an old post. I apologize for the repeated question.
Hello Dovecot Users,
Dovecot 2.1.7
Our emails are redirected from the home office causing all vacation responses to fail with, "discarding vacation response for implicitly delivered message; no known (envelope) recipient address found in message headers". I need to use the Sieve Vacation option but cannot figure out how to get it working for us. If I send to the local address, it works fine. If I send to the redirect address, it fails with above error.
Unfortunately, all of our emails are redirects from a single domain. There's got to be some way to make it work. Any help would be greatly appreciated, DaveStephan Bosch-2 wrote
- Vacation extension: finally added support for using the original recipient in vacation address check. It is also possible to disable the recipient address check entirely. Check doc/vacation.txt for configuration information.
Here's the headers for my emails:
Return-Path: <dave.gattis@domain-a.com> X-Original-To: dave.gattis@domain-b.com Delivered-To: dave.gattis@domain-b.com Received: from spamcop.main.ch (spamcop.main.ch [83.144.241.40]) by domain-b.com (Postfix) with ESMTP id 0E4E81C101DE for <dave.gattis@domain-b.com>; Tue, 26 Mar 2013 14:35:13 -0400 (EDT) Received: from ex.domain-a.com (ex.domain-a.com [83.144.240.35]) by spamcop.main.ch with ESMTP id 0dP4XCjZrdDY5l1Q for <dave.gattis@domain-b.com>; Tue, 26 Mar 2013 19:41:36 +0100 (CET) Received: from EX2.domain-a.com ([fe80::acd3:8e53:bcb6:7a4%11]) by ex2.domain-a.com ([fe80::acd3:8e53:bcb6:7a4%11]) with Microsoft SMTP Server id 14.01.0355.002; Tue, 26 Mar 2013 19:39:54 +0100 From: Dave Gattis <friends@sender.com> To: SUMACO Gattis Dave <dave.gattis@domain-a.com> Subject: test 0 Date: Tue, 26 Mar 2013 18:41:31 +0000 Message-ID: <a19655d242144654805035ef98ca50df@EX2.domain-a.com> Resent-From: <dave.gattis@domain-a.com> Content-Type: text/plain; charset="iso-8859-1" Content-ID: <9DB22326568944448618AFEDB6FAE727@domain-a.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Resent-Message-Id: <20130326184137.22986D3422@spamcop.main.ch> Resent-Date: Tue, 26 Mar 2013 19:41:37 +0100 (CET) X-WatchGuard-AntiVirus: part scanned. clean action=allow X-MyCompanyUSA-MailScanner-Information: Please contact the ISP for more information X-MyCompanyUSA-MailScanner-ID: 0E4E81C101DE.A6387 X-MyCompanyUSA-MailScanner: Found to be clean X-MyCompanyUSA-MailScanner-From: dave.gattis@domain-a.com X-Spam-Status: No
From: Dave Gattis <friends@sender.com> is the original sender. To: SUMACO Gattis Dave <dave.gattis@domain-a.com> is where I sent it. X-Original-To: dave.gattis@domain-b.com is where it was redirected to.
Postfix and dovecot handle everything nicely, but the vacation piece reports no known recipient, or if I add my address, it reports that can't send to itself.
Dave
-- View this message in context: http://dovecot.2317879.n4.nabble.com/Sieve-Vacation-for-redirected-email-tp4... Sent from the Dovecot mailing list archive at Nabble.com.
At 12PM -0700 on 26/03/13 you (rpsuprdave) wrote:
Here's the headers for my emails:
Return-Path: <dave.gattis@domain-a.com> X-Original-To: dave.gattis@domain-b.com Delivered-To: dave.gattis@domain-b.com [...] From: Dave Gattis <friends@sender.com> To: SUMACO Gattis Dave <dave.gattis@domain-a.com> [...]
From: Dave Gattis <friends@sender.com> is the original sender. To: SUMACO Gattis Dave <dave.gattis@domain-a.com> is where I sent it. X-Original-To: dave.gattis@domain-b.com is where it was redirected to.
Postfix and dovecot handle everything nicely, but the vacation piece reports no known recipient, or if I add my address, it reports that can't send to itself.
Something's screwed up somewhere with your delivery. That Return-Path is wrong: it should be <friends@sender.com>. Vacation will only reply to the Return-Path address, so if that's wrong then the replies will never go to the right place (and, in this case, they'll never be sent since the Return-Path is your address).
Note that this would also apply to a bounce: if a message bounced because you were over quota, that bounce would loop and get thrown away and you'd never see it.
If your forwarder is rewriting MAIL FROM to work around SPF breakage, you need to switch to using SRS or something equivalent to get vacation to work.
Ben
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 26 Mar 2013, Dave Gattis wrote:
Our emails are redirected from the home office causing all vacation responses to fail with, "discarding vacation response for implicitly delivered message; no known (envelope) recipient address found in message headers".
=== headers from reply Return-Path: <dave.gattis@domain-a.com> X-Original-To: dave.gattis@domain-b.com Delivered-To: dave.gattis@domain-b.com Received: from spamcop.main.ch (spamcop.main.ch [83.144.241.40]) by domain-b.com (Postfix) with ESMTP id 0E4E81C101DE for <dave.gattis@domain-b.com>; Tue, 26 Mar 2013 14:35:13 -0400 (EDT) Received: from ex.domain-a.com (ex.domain-a.com [83.144.240.35]) by spamcop.main.ch with ESMTP id 0dP4XCjZrdDY5l1Q for <dave.gattis@domain-b.com>; Tue, 26 Mar 2013 19:41:36 +0100 (CET) Received: from EX2.domain-a.com ([fe80::acd3:8e53:bcb6:7a4%11]) by ex2.domain-a.com ([fe80::acd3:8e53:bcb6:7a4%11]) with Microsoft SMTP Server id 14.01.0355.002; Tue, 26 Mar 2013 19:39:54 +0100
From: Dave Gattis <friends@sender.com> To: SUMACO Gattis Dave <dave.gattis@domain-a.com>
You have two problems:
a) "no known (envelope) recipient address found in message headers" means, that the vacation :addresses list does not contain
dave.gattis@domain-a.com
because vacation probes the entries of the :addresses list against To and CC.
b) the messages are _resend_ not forwarded by spamcop.main.ch to your MTA. By doing so the original *envelope* sender address is lost, which is *not* the entry in "From:". Therefore vacation would send the reply to:
dave.gattis@domain-a.com
which is the return path per your excerpt. You could verify that by finding the envelope sender in the postfix logs, I guess; or by fixing a).
Actually, I'm not sure if pigeonhole can pick up the address to reply to from a mail header - I do not see any hints in the sample config. So, maybe, you need to ask spamcop.main.ch to preserve the return address.
Note: Changing the envelope sender is not bad by itself, it solves several problems with forwarding; a well-known MTA can do this, too: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/8006eab... , but you get other problems rewriting the sender address.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUVLAH13r2wJMiz2NAQJYbgf+OdgAU/KJiMANoUJ6XDiwPuNGr0IMNCev QOBtc+EgDTJ36yBAbtOn88zhHCgXuBwLxQax5cx3E5eQ0mba6IxJm7c9whaJA+IG y0Eh8bJiIfAKtGrEWoz6riktDkJ89kLpxY0zycpPgK6xGUiBvSHFb59bpIMc+WLX YHXWzX8u3216Jydr28x+Gcday/mix6zujoQucRjzPmAXc9RjFqkLxiOuIdDP+zSH war8t7QWlEVtfgCOG07V0QkqEvM047HhRbSZuTRcTHmUH2Sjfwe3fdHdnmjd4wvk wsVl9F/X7cdzh84uQ2eP2ZIfQYuC4vu/Ur1ONyaxH4DBxFyIdFjngA== =stJs -----END PGP SIGNATURE-----
participants (5)
-
Ben Morrow
-
Dave Gattis
-
Gedalya
-
rpsuprdave
-
Steffen Kaiser