[Dovecot] Issues with Plus addressing and detail part of subaddress.
Hi all,
So, it's been a while. I'm just ramping back up with Dovecot after a hiatus of a few years.
I've been using it fine, complete with Sieve, for about a year, with little or no issues.
I finally got around to setting up a second account, to start figuring out how I want to do some plus address filtering.
In a nutshell, I want to put mail for foo+bar in foo's 'bar' folder. That's in the wiki.
I did this:
require ["fileinto", "envelope", "subaddress"];
if header :contains "subject" ["test"] { fileinto "Test"; }
if envelope :detail "to" "test" { fileinto "test"; stop; }
So, this fails miserably. No error message, nothing in the logs, no nothing. Yet, when I run
sieve-test .dovecot.sieve /path/to/testmessage
it works just fine. I even run
sieve-test -e .dovecot.sieve /path/to/testmessage
and it files it just fine into the folder.
I tried adding some debug logging, but it looks like vnd.dovecot.debug isn't in my version.
I searched the archives, and found a bit about adding (explicitly) the delimiter to the plugin section of 90-sieve.conf. So I did that.
I'm running 2.0.13 of dovecot, and pigeonhole 0.2.3 on Solaris 10.
Before I dive in and upgrade everything, am I missing something simple? The "test" bit works just fine (and in another account as well), so I think something's just not seeing the detail in subaddressing when mail is delivered (even though it works just fine with sieve-test).
Thanks, Sean
On 2012-07-15 4:50 AM, Sean Kamath kamath@moltingpenguin.com wrote:
Before I dive in and upgrade everything, am I missing something simple?
dovecot -n output maybe?
On 15-07-12 13:34, Charles Marcus wrote:
On 2012-07-15 4:50 AM, Sean Kamath kamath@moltingpenguin.com wrote:
Before I dive in and upgrade everything, am I missing something simple?
dovecot -n output maybe?
Adding some log output of a message that, according to you, should have been delivered to folder Bar but ended up somewhere else, would be nice too. Be sure to include both logging of dovecot and the MTA talking to dovecot (you didn't mention which one).
-- Tom
On Jul 15, 2012, at 1:27 PM, Tom Hendrikx wrote:
On 15-07-12 13:34, Charles Marcus wrote:
On 2012-07-15 4:50 AM, Sean Kamath kamath@moltingpenguin.com wrote:
Before I dive in and upgrade everything, am I missing something simple?
dovecot -n output maybe?
Adding some log output of a message that, according to you, should have been delivered to folder Bar but ended up somewhere else, would be nice too. Be sure to include both logging of dovecot and the MTA talking to dovecot (you didn't mention which one).
Heh. I spent 1/2 an hour rerunning all the tests, gathering detailed logs, the whole nine yards and then, as an afterthought, added this:
Here's the relevant portion of my sendmail.mc file for the MAILER definition of dovecot-lda:
FEATURE(local_procmail',
/usr/local/libexec/dovecot/dovecot-lda',/usr/local/libexec/dovecot/dovecot-lda -d $u') MODIFY_MAILER_FLAGS(
LOCAL', `-f')
MAILER(procmail)
Sure enough, since there is no "X-Original-To" header in the messages, and I don't specify the -a option to dovecot-lda, there's failure.
Does anyone happen to know the right way to get that full address through? The only note about anything remotely related to this is in the dovecot-lda which states that -d is not necessary with system users (all my accounts will be system users).
Sean
participants (3)
-
Charles Marcus
-
Sean Kamath
-
Tom Hendrikx