openbsd-ports/mail/mailscanner/patches/patch-etc_rules_EXAMPLES

53 lines
2.4 KiB
Plaintext

$OpenBSD: patch-etc_rules_EXAMPLES,v 1.2 2009/06/11 23:33:26 sthen Exp $
--- etc/rules/EXAMPLES.orig Mon Jun 1 11:11:58 2009
+++ etc/rules/EXAMPLES Wed Jun 3 21:44:46 2009
@@ -5,7 +5,7 @@ Here are a few ideas of how to implement features usin
1. Spam WhiteList
- Set "Is Definitely Not Spam = /opt/MailScanner/etc/rules/whitelist.rules".
+ Set "Is Definitely Not Spam = %SYSCONFDIR%/MailScanner/rules/whitelist.rules".
Set addresses to be whitelisted using rules such as
From: user@good.domain.com yes
From: *@friendly.domain.com yes
@@ -22,7 +22,7 @@ Here are a few ideas of how to implement features usin
2. Spam BlackList
- Set "Is Definitely Spam = /opt/MailScanner/etc/rules/blacklist.rules".
+ Set "Is Definitely Spam = %SYSCONFDIR%/MailScanner/rules/blacklist.rules".
Set addresses to be blacklisted using rules such as
From: user@nasty.domain.com yes
From: *@spammers.com yes
@@ -32,7 +32,7 @@ Here are a few ideas of how to implement features usin
3. Only sign outgoing messages
- Set "Sign Clean Messages = /opt/MailScanner/etc/rules/signing.rules".
+ Set "Sign Clean Messages = %SYSCONFDIR%/MailScanner/rules/signing.rules".
If your messages come from "yourdomain.com", then try this:
From: 192.168. yes
From: host:yourdomain.com yes
@@ -41,16 +41,16 @@ Here are a few ideas of how to implement features usin
4. Use different signatures for different domains
- Set "Inline Text Signature = /opt/MailScanner/etc/rules/sig.text.rules" &
- set "Inline HTML Signature = /opt/MailScanner/etc/rules/sig.html.rules".
+ Set "Inline Text Signature = %SYSCONFDIR%/MailScanner/rules/sig.text.rules" &
+ set "Inline HTML Signature = %SYSCONFDIR%/MailScanner/rules/sig.html.rules".
Use rules for each file that look like this:
- From: *@domain1.com /opt/MailScanner/etc/reports/domain1.sig.txt
- From: *@domain2.com /opt/MailScanner/etc/reports/domain2.sig.txt
+ From: *@domain1.com %SYSCONFDIR%/MailScanner/reports/domain1.sig.txt
+ From: *@domain2.com %SYSCONFDIR%/MailScanner/reports/domain2.sig.txt
with equivalent rules in the "sig.html.rules" file.
5. Only virus scan some domains
- Set "Virus Scanning = /opt/MailScanner/etc/rules/virus.scanning.rules".
+ Set "Virus Scanning = %SYSCONFDIR%/MailScanner/rules/virus.scanning.rules".
FromOrTo: *@scanme.com yes
FromOrTo: *@scanme-too.com yes
FromOrTo: default no