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.

worker-proxy.inc 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Proxy worker setup
  2. # Please don't modify this file as your changes might be overwritten with
  3. # the next update.
  4. #
  5. # You can modify 'local.d/worker-proxy.inc' to add and merge
  6. # parameters defined inside this section
  7. #
  8. # You can modify 'override.d/worker-proxy.inc' to strictly override all
  9. # parameters defined inside this section
  10. #
  11. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  12. # for details
  13. # Module documentation: https://rspamd.com/doc/workers/rspamd_proxy.html
  14. milter = yes; # Enable milter mode
  15. # This timeout is mostly specific to the milter mode.
  16. # Please also bear in mind that if this timeout is longer than `task_timeout`,
  17. # your messages might be processed for much longer due to this timeout (this is
  18. # true for self-scan mode).
  19. # If this behaviour is not desired, then it is recommended to reduce and adjust this
  20. # value accordingly
  21. timeout = 60s;
  22. upstream "local" {
  23. default = yes;
  24. hosts = "localhost";
  25. }
  26. count = 1; # Do not spawn too many processes of this type
  27. max_retries = 5; # How many times master is queried in case of failure
  28. discard_on_reject = false; # Discard message instead of rejection
  29. quarantine_on_reject = false; # Tell MTA to quarantine rejected messages
  30. spam_header = "X-Spam"; # Use the specific spam header
  31. reject_message = "Spam message rejected"; # Use custom rejection message