Update u_e-rspamd.md
Dieser Commit ist enthalten in:
Ursprung
1bbcb4a392
Commit
ca2ad56905
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
|
@ -128,20 +128,20 @@ reject_message = "My custom reject message";
|
||||||
|
|
||||||
Save the file and restart Rspamd: `docker-compose restart rspamd-mailcow`.
|
Save the file and restart Rspamd: `docker-compose restart rspamd-mailcow`.
|
||||||
|
|
||||||
While the above works for rejected mails with a high spam score, global maps (as found in "Global filter maps" in /admin) will ignore this setting. For these maps, the multimap module in Rspamd needs to be adjusted:
|
While the above works for rejected mails with a high spam score, prefilter reject actions will ignore this setting. For these maps, the multimap module in Rspamd needs to be adjusted:
|
||||||
|
|
||||||
1. Open `{mailcow-dir}/data/conf/rspamd/local.d/multimap.conf` and find the desired map symbol (e.g. `GLOBAL_SMTP_FROM_BL`).
|
1. Find prefilet reject symbol for which you want change message, to do it run: `grep -R "SYMBOL_YOU_WANT_TO_ADJUST" /opt/mailcow-dockerized/data/conf/rspamd/`
|
||||||
|
|
||||||
2. Add your custom message as new line:
|
2. Add your custom message as new line:
|
||||||
|
|
||||||
```
|
```
|
||||||
GLOBAL_SMTP_FROM_BL {
|
GLOBAL_RCPT_BL {
|
||||||
type = "from";
|
type = "rcpt";
|
||||||
message = "Your domain is blacklisted, contact postmaster@your.domain to resolve this case.";`
|
map = "${LOCAL_CONFDIR}/custom/global_rcpt_blacklist.map";
|
||||||
map = "$LOCAL_CONFDIR/custom/global_smtp_from_blacklist.map";
|
|
||||||
regexp = true;
|
regexp = true;
|
||||||
prefilter = true;
|
prefilter = true;
|
||||||
action = "reject";
|
action = "reject";
|
||||||
|
message = "Sending mail to this recipient is prohibited by postmaster@your.domain";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren