sieve filter bevor.spam, arnt take effect
Bernardo Reino
reinob at bbmk.org
Tue Apr 13 09:48:50 EEST 2021
On Mon, 12 Apr 2021, mauric at gmx.ch wrote:
>> Hi again, Your dovecot.conf neither contains the sieve settings nor includes
>> the conf.d/90-sieve.conf file, which means that you only get whatever default
>> config dovecot includes.
>> Good luck..
>
> Now i put everyting that I "need" for forward spam to folder Junk-E-Mail.tje
> the goal are that the spam email that will deliver direct to Junk-E-Mail
> folder.
I'm not sure if you still have a question, or if everything works as expected?
Please note that:
1. sieve-before scripts must be compiled (with sievec) read:
https://doc.dovecot.org/configuration_manual/sieve/usage/
2. Your script seems to do nothing if X-Spam-Flag is YES. If no such flag, then
it is filed into "Junk E-Mail".
> require "fileinto";
> if exists "X-Spam-Flag" {
> if header :contains "X-Spam-Flag" "YES" {
> } else {
> fileinto "Junk E-Mail";
> stop;
> }
> }
You probably want the opposite (and you may want to considering formatting your
script better.. for clarity)
3. Your script does 'fileinto "Junk E-Mail"' but no such mailbox is there. Your
config has a "Junk-E-Mail".
> mailbox Junk-E-Mail {
> special_use = \Junk
> }
4. Maybe you want to check the logs and see what's actually happening.
5. Maybe you're not even using LDA/LMTP, so you may want to post your postfix
configuration (assuming you're using postfix).
I don't think I can help any more here, but if you have further questions it
might be wise to write them in a language you're more comfortable with?
Good luck.
More information about the dovecot
mailing list