doc:appunti:linux:sa:rspamd_spamassassin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:rspamd_spamassassin [2024/07/17 17:25] – [Whitelist From using multimap] niccolo | doc:appunti:linux:sa:rspamd_spamassassin [2024/07/17 18:23] (current) – [Whitelist-From using the multimap module] niccolo | ||
---|---|---|---|
Line 556: | Line 556: | ||
The **message** is eventually used if the mail matches this rule and the action is set to //reject// or //soft reject//. In this case the sender MTA will be notified with this message in reply to end of DATA command. The SMTP message code will be 554 for reject or 451 for soft reject. | The **message** is eventually used if the mail matches this rule and the action is set to //reject// or //soft reject//. In this case the sender MTA will be notified with this message in reply to end of DATA command. The SMTP message code will be 554 for reject or 451 for soft reject. | ||
- | ===== Whitelist From using multimap ===== | + | ===== Whitelist-From using the multimap |
- | It is possibile replicate the **whitelist_from** | + | It is possibile replicate the **whitelist_from** |
- | + | ||
- | + | ||
- | **/ | + | |
< | < | ||
Line 575: | Line 572: | ||
</ | </ | ||
- | **/ | + | In the file **/ |
+ | |||
+ | Standard regex **meta-characters** can be used, e.g. (see '' | ||
+ | |||
+ | ^ %%^%% | Matches the start of the line. | | ||
+ | ^ %%$%% | Matches the end of the line. | | ||
+ | ^ %%.%% | Matches a single character. | ||
+ | ^ %%\.%% | ||
+ | ^ %%\b%% | ||
+ | |||
+ | The regex must be enclosed into a pair of **%%/%%** chars and the standard **flags** can be used: | ||
+ | |||
+ | ^ %%i%% | Case insensitive match. | ||
+ | |||
+ | Here are an example to whitelist a single email address and an entire mail domain (NOTICE: if the map is updated, it will be reloaded automatically): | ||
< | < | ||
+ | / | ||
+ | / | ||
</ | </ | ||
+ | |||
===== Customizing the headers ===== | ===== Customizing the headers ===== |
doc/appunti/linux/sa/rspamd_spamassassin.1721229913.txt.gz · Last modified: 2024/07/17 17:25 by niccolo