1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-23 22:04:47 +02:00

Use rspamd as a milter service instead of deprecated rmilter

This commit is contained in:
kaiyou
2017-11-05 16:54:23 +01:00
parent f943dc85a2
commit 1d9b3b00a7
12 changed files with 46 additions and 16 deletions

View File

@@ -155,11 +155,10 @@ plugin {
# Include the recipient in vacation replies so that DKIM applies
sieve_vacation_send_from_recipient = yes
# extract spam score from
# X-Spam-Result: .... [<value> / <max_value] ...
sieve_spamtest_status_type = score
sieve_spamtest_status_header = X-Spamd-Result: .*\[(-?[[:digit:]]+\.[[:digit:]]+) .*\]
sieve_spamtest_max_header = X-Spamd-Result: .*\[.* ([[:digit:]]+\.[[:digit:]]+)\]
# extract spam score from headers
sieve_spamtest_status_type = strlen
sieve_spamtest_status_header = X-Spam-Level
sieve_spamtest_max_value = 15
# Learn from spam
imapsieve_mailbox1_name = Junk

View File

@@ -19,6 +19,11 @@ if allof (string :is "${extdata.spam_enabled}" "1",
stop;
}
if exists "X-Virus" {
discard;
stop;
}
if string :is "${extdata.reply_enabled}" "1" {
vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}";
}

View File

@@ -93,7 +93,7 @@ smtpd_recipient_restrictions =
# Milter
###############
smtpd_milters = inet:milter:9900
smtpd_milters = inet:antispam:9900
milter_protocol = 6
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_default_action = tempfail