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.

dkim_signing.conf 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/dkim_signing.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/dkim_signing.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. # To configure this module, please also check the following document:
  13. # https://rspamd.com/doc/tutorials/scanning_outbound.html and
  14. # https://rspamd.com/doc/modules/dkim_signing.html
  15. # To enable this module define the following attributes:
  16. # path = "/var/lib/rspamd/dkim/$domain.$selector.key";
  17. # OR
  18. # domain { ... }, if you use per-domain conf
  19. # OR
  20. # set `use_redis=true;` and define redis servers
  21. dkim_signing {
  22. # If false, messages with empty envelope from are not signed
  23. allow_envfrom_empty = true;
  24. # If true, envelope/header domain mismatch is ignored
  25. allow_hdrfrom_mismatch = false;
  26. # If true, multiple from headers are allowed (but only first is used)
  27. allow_hdrfrom_multiple = false;
  28. # If true, username does not need to contain matching domain
  29. allow_username_mismatch = false;
  30. # Default path to key, can include '$domain' and '$selector' variables
  31. #path = "/var/lib/rspamd/dkim/$domain.$selector.key";
  32. # Default selector to use
  33. selector = "dkim";
  34. # If false, messages from authenticated users are not selected for signing
  35. sign_authenticated = true;
  36. # If false, messages from local networks are not selected for signing
  37. sign_local = true;
  38. # Symbol to add when message is signed
  39. symbol = "DKIM_SIGNED";
  40. # Whether to fallback to global config
  41. try_fallback = true;
  42. # Domain to use for DKIM signing: can be "header" or "envelope"
  43. use_domain = "header";
  44. # Whether to normalise domains to eSLD
  45. use_esld = true;
  46. # Whether to get keys from Redis
  47. use_redis = false;
  48. # Hash for DKIM keys in Redis
  49. key_prefix = "DKIM_KEYS";
  50. # Domain specific settings
  51. #domain {
  52. # example.com {
  53. # selectors [
  54. # { # Private key path
  55. # path = "/var/lib/rspamd/dkim/example.key";
  56. # # Selector
  57. # selector = "ds";
  58. # },
  59. # { # multiple dkim signature
  60. # path = "/var/lib/rspamd/dkim/eddsa.key";
  61. # selector = "eddsa";
  62. # }
  63. # ]
  64. # }
  65. #}
  66. .include(try=true,priority=5) "${DBDIR}/dynamic/dkim_signing.conf"
  67. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/dkim_signing.conf"
  68. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/dkim_signing.conf"
  69. }