· 8 years ago · Oct 22, 2017, 07:00 AM
1I added the following to my data acl:
2acl_check_content:
3 warn senders = *@+yahoo_domains
4 message = Yeah, found it
5
6where yahoo_domains is defined as:
7domainlist yahoo_domains = yahoo.com.hk : yahoo.com.tw
8
9It matches in the following test where the envelope sender is "tlyons@yahoo.com.tw"
10
11>>> using ACL "acl_check_content"
12>>> processing "warn"
13>>> check senders = *@+yahoo_domains
14>>> yahoo.com.tw in "yahoo.com.hk : yahoo.com.tw"? yes (matched "yahoo.com.tw")
15>>> yahoo.com.tw in "+yahoo_domains"? yes (matched "+yahoo_domains")
16>>> tlyons@yahoo.com.tw in "*@+yahoo_domains"? yes (matched "*@+yahoo_domains")
17>>> warn: condition test succeeded
18
19Repeated the test, and it properly did not match where sender is "tlyons@gmail.com"
20
21>>> using ACL "acl_check_content"
22>>> processing "warn"
23>>> check senders = *@+yahoo_domains
24>>> gmail.com in "yahoo.com.hk : yahoo.com.tw"? no (end of list)
25>>> gmail.com in "+yahoo_domains"? no (end of list)
26>>> tlyons@gmail.com in "*@+yahoo_domains"? no (end of list)
27>>> warn: condition test failed
28
29Using:
30
31senders = *@+yahoo_domains : *@foo.com
32
33it still works:
34
35>>> using ACL "acl_check_content"
36>>> processing "warn"
37>>> check senders = *@+yahoo_domains : *@foo.com
38>>> yahoo.com.tw in "yahoo.com.hk : yahoo.com.tw"? yes (matched "yahoo.com.tw")
39>>> yahoo.com.tw in "+yahoo_domains"? yes (matched "+yahoo_domains")
40>>> tlyons@yahoo.com.tw in "*@+yahoo_domains : *@foo.com"? yes (matched "*@+yahoo_domains")
41>>> warn: condition test succeeded