You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

greylist.conf 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/greylist.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/greylist.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/greylisting.html
  14. greylist {
  15. # Search "example.com" and "mail.example.com" for "mx.out.mail.example.com":
  16. whitelist_domains_url = [
  17. "$LOCAL_CONFDIR/local.d/greylist-whitelist-domains.inc",
  18. "$LOCAL_CONFDIR/local.d/maps.d/greylist-whitelist-domains.inc",
  19. ];
  20. expire = 1d; # 1 day by default
  21. timeout = 5min; # 5 minutes by default
  22. key_prefix = "rg"; # default hash name
  23. max_data_len = 10k; # default data limit to hash
  24. message = "Try again later"; # default greylisted message
  25. #symbol = "GREYLIST"; # Symbol to insert
  26. action = "soft reject"; # default greylisted action
  27. ipv4_mask = 19; # Mask bits for ipv4
  28. ipv6_mask = 64; # Mask bits for ipv6
  29. .include(try=true,priority=5) "${DBDIR}/dynamic/greylist.conf"
  30. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/greylist.conf"
  31. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/greylist.conf"
  32. }