mouss schreef op wo 29-12-2010 om 19:20 [+0100]:
> Le 29/12/2010 18:25, Philip Van Pelt a écrit :
> >[snip]
> > Dec 29 13:48:31 test-services amavis[11240]: (11240-02) Passed SPAM,
> > <r...@doctorvinyl.be> -> <t...@example.com>, quarantine:
> > k/spam-kEzi169drbKm.gz, Message-ID:
> > <20101229124831.9def84a...@test-services.doctorvinyl.be>, mail_id:
> > kEzi169drbKm, Hits: 1000.729, size: 1136, queued_as: BE5EC4A4AB, 178 ms
> > [snip]
> > Dec 29 13:48:31 test-services dovecot: deliver(t...@example.com): sieve:
> > msgid=<20101229124831.9def84a...@test-services.doctorvinyl.be>: stored
> > mail into mailbox 'Spam'
> 
> so this one is put into spam folder by your dovecot sieve script.
> 
> > [snip]
> > Dec 29 13:48:33 test-services amavis[11239]: (11239-03) Passed SPAM,
> > <r...@doctorvinyl.be> -> <al...@example.com>, quarantine:
> > L/spam-L9OJuBX5JIAS.gz, Message-ID:
> > [snip]
> > Dec 29 13:48:33 test-services dovecot: deliver(t...@example.com): sieve:
> > msgid=<20101229124832.ca6334a...@test-services.doctorvinyl.be>: stored
> > mail into mailbox 'INBOX'
> 
> and this one is not.
> 
> you redacted your logs. is the domain in <al...@example.com> the same as
> the one in <t...@example.com>?
> when redactig logs, please replace different entities by different
> entities. use joe.example, foo.example, .... (the list is infinite, so
> there is no reason to map two different domains to a single example
> domain).
> 
> 
> 
> 
> > [snip]


I use only one domain; t...@example.com is a normal (but virtual) user
and al...@example.com is an alias for this same user. Both emails
therefore end up in the same mailbox on my system.
My dovecot sieve just filters, based on the presence of the X-Spam-Flag
header:

require ["fileinto"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
  fileinto "Spam";
  stop;
}

The strange thing is that, although the mail is correctly flagged, this
header disappears along the way. And only for the alias, otherwise it
works like a charm.

Philip

Reply via email to