Den 20-04-2021 kl. 01:12 skrev mau...@gmx.ch: > > Hello > > Asking for litle help…. Doevecot and sieve are running fine…. One > thing now, if receiving mail from Users-spamassassin > > This mail will by forwarding from sieve to folder spam. I didn’t see > why this will transfer there. > Your message has two X-Spam-Flag's, one with YES, and another one with NO, and then you aren't stopping the Sieve parsing.
> > > Dovecot 2.3.4.1 (f79e8e7e4) - Debain 10 > > > > Sieve > > > > if header :contains "To" users@spamassassin.apache.org > <mailto:users@spamassassin.apache.org> { > > fileinto "INBOX.Spamassassin"; > > } > > if header :contains "X-Spam-Flag" "Yes" { > > fileinto :create "Junk"; > > stop; > > } > You could add "stop;" to the first one, where you file the message into INBOX.Spamassassin, which means if it moves the message for you due to a match, it won't go further with the check on the spam flag for that particular message. > -- > > [...] > > Envelope-To: mau...@gmx.ch <mailto:mau...@gmx.ch> > > X-GMX-Antispam: 5 (nemesis mail header analyzer); Detail=V3; > > X-Spam-Flag: YES > > X-UI-Filterresults: junk:10;V03:K0:oQ58xS3PZ3o=:ui > > X-UI-Loop:V01:NQ+uvMhGdNE=:SW > > X-Spam-Flag: NO > From your own snippet of headers, as you can see above, it appears like you are having two different X-Spam-Flag's to match against, which will cause some complications and potentially unpredictable results... -- Med venlig hilsen / Kind regards, Arne Jensen