mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
2f9f6b1002
The dovecot-sieve plugin is installed and configured to apply sieve as soon as a .dovecot.sieve file is encountered in the virtual user's home directory (that is /var/mail/${domain}/${username}/.dovecot.sieve). Transport has been changed in the postfix configuration to use Dovecot LDA (see http://wiki.dovecot.org/LDA/Postfix) to actually enable sieve filtering. Tests have been added.
9 lines
130 B
Sieve
9 lines
130 B
Sieve
require ["fileinto", "reject"];
|
|
|
|
if address :contains ["From"] "spam@spam.com" {
|
|
fileinto "INBOX.spam";
|
|
} else {
|
|
keep;
|
|
}
|
|
|