Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
setup_basic_mailserver_with_postfix_dovecot_sieve [02.01.2020 08:34] – [proxmox mail gateway] Pascal Suter | setup_basic_mailserver_with_postfix_dovecot_sieve [02.01.2020 09:01] – [future improvements] Pascal Suter | ||
---|---|---|---|
Line 469: | Line 469: | ||
==== future improvements ==== | ==== future improvements ==== | ||
+ | === Bayesian learning by moving mail to junk folder === | ||
in order for proxmox' | in order for proxmox' | ||
Line 475: | Line 476: | ||
* a solution on how to use imap sieve filters to trigger a bash script when a mail is moved into a specific folder can be found in the [[https:// | * a solution on how to use imap sieve filters to trigger a bash script when a mail is moved into a specific folder can be found in the [[https:// | ||
- | i' | + | === tag and deliver spam instead of quarantine === |
+ | I'm not sure I or my users would be happy with waiting for reports to find out why a recently sent mail did not reach them. after all it's always a good feeling if you can tell someone on the phone that you didn't find their email in your spam folder either, to convince them that they might have had a typo in your email address :) .. | ||
+ | |||
+ | i've started this already. First you need to make sure that spam is no longer quarantined but instead marked and forwarded. | ||
+ | |||
+ | in the PMG web interface click on '' | ||
+ | |||
+ | now on to your postfix mail server.. we need to add a global sieve rule to dovecot that will move spam into a spam folder.. edit ''/ | ||
+ | sieve_after = / | ||
+ | now create the sieve-after directory: | ||
+ | mkdir / | ||
+ | all filters found in this directory will be executed AFTER each user's own filters. so a user can create his own filters to whitelist spam in our case. | ||
+ | < | ||
+ | cat > / | ||
+ | require [" | ||
+ | |||
+ | if header :contains " | ||
+ | | ||
+ | | ||
+ | } | ||
+ | EOF | ||
+ | </ | ||
+ | ** this filter won't compile.. i need to fix this!** | ||
+ | now compile the sieve filter: | ||
+ | sievec / | ||
==== adjustments to postfix settings on our mailserver ==== | ==== adjustments to postfix settings on our mailserver ==== |