On Mon, 12 Apr 2021, mauric@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:
sieve-before scripts must be compiled (with sievec) read: https://doc.dovecot.org/configuration_manual/sieve/usage/
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)
- 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 }
Maybe you want to check the logs and see what's actually happening.
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.