User Tools

Site Tools


doc:appunti:linux:sa:rspamd_spamassassin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:rspamd_spamassassin [2024/07/17 17:55] – [Whitelist From using multimap] niccolodoc: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 module =====
  
-It is possibile replicate the **whitelist_from** of SpamAssassin ... FIXME +It is possibile replicate the **whitelist_from** option found in **SpamAssassin** using the multimap module of **rspamd**In the **/etc/rspamd/local.d/multimap.conf** we create a symbol called e.g. **WHITELIST_FROM**:
- +
- +
-**/etc/rspamd/local.d/multimap.conf**+
  
 <file> <file>
Line 585: Line 582:
 ^ %%\b%%  | Matches the empty string at the edge of a word.  | ^ %%\b%%  | Matches the empty string at the edge of a word.  |
  
-Also the standard **flags** can be used:+The regex must be enclosed into a pair of **%%/%%** chars and the standard **flags** can be used:
  
 ^ %%i%%   | Case insensitive match.  | ^ %%i%%   | Case insensitive match.  |
  
-Here are an example to whitelist a single email address and an entire mail domain:+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):
  
 <file> <file>
Line 596: Line 593:
 </file> </file>
  
-The regex is enclosed into a pair of **%%/%%** chars and a  
  
 ===== Customizing the headers ===== ===== Customizing the headers =====
doc/appunti/linux/sa/rspamd_spamassassin.1721231740.txt.gz · Last modified: 2024/07/17 17:55 by niccolo