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.7KB

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