Guest User

Untitled

a guest
Oct 22nd, 2017
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. I added the following to my data acl:
  2. acl_check_content:
  3. warn senders = *@+yahoo_domains
  4. message = Yeah, found it
  5.  
  6. where yahoo_domains is defined as:
  7. domainlist yahoo_domains = yahoo.com.hk : yahoo.com.tw
  8.  
  9. It 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.  
  19. Repeated 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.  
  29. Using:
  30.  
  31. senders = *@+yahoo_domains : *@foo.com
  32.  
  33. it 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
Add Comment
Please, Sign In to add comment