milter_headers.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. use = ["spam-header", "x-spamd-result", "x-rspamd-queue-id", "authentication-results", "fuzzy-hashes"];
  2. skip_local = false;
  3. skip_authenticated = true;
  4. routines {
  5. spam-header {
  6. header = "X-Spam-Flag";
  7. value = "YES";
  8. remove = 1;
  9. }
  10. fuzzy-hashes {
  11. header = "X-Rspamd-Fuzzy";
  12. }
  13. authentication-results {
  14. header = "Authentication-Results";
  15. add_smtp_user = false;
  16. remove = 1;
  17. spf_symbols {
  18. pass = "R_SPF_ALLOW";
  19. fail = "R_SPF_FAIL";
  20. softfail = "R_SPF_SOFTFAIL";
  21. neutral = "R_SPF_NEUTRAL";
  22. temperror = "R_SPF_DNSFAIL";
  23. none = "R_SPF_NA";
  24. permerror = "R_SPF_PERMFAIL";
  25. }
  26. dkim_symbols {
  27. pass = "R_DKIM_ALLOW";
  28. fail = "R_DKIM_REJECT";
  29. temperror = "R_DKIM_TEMPFAIL";
  30. none = "R_DKIM_NA";
  31. permerror = "R_DKIM_PERMFAIL";
  32. }
  33. dmarc_symbols {
  34. pass = "DMARC_POLICY_ALLOW";
  35. permerror = "DMARC_BAD_POLICY";
  36. temperror = "DMARC_DNSFAIL";
  37. none = "DMARC_NA";
  38. reject = "DMARC_POLICY_REJECT";
  39. softfail = "DMARC_POLICY_SOFTFAIL";
  40. quarantine = "DMARC_POLICY_QUARANTINE";
  41. }
  42. }
  43. }