ansible-role-spamassassin/templates/dmarc.cf.j2

38 lines
1.6 KiB
Plaintext
Raw Normal View History

loadplugin Mail::SpamAssassin::Plugin::Dmarc dmarc.pm
ifplugin Mail::SpamAssassin::Plugin::Dmarc
ifplugin Mail::SpamAssassin::Plugin::DKIM
ifplugin Mail::SpamAssassin::Plugin::SPF
dmarc_save_reports 0
meta __DKIM_DEP ( DKIM_VALID || DKIM_INVALID || __DKIM_DEPENDABLE )
meta __SPF_DEP ( SPF_NONE || SPF_FAIL || SPF_SOFTFAIL || SPF_PASS )
header __DMARC_REJECT eval:check_dmarc_reject()
meta DMARC_REJECT ( ( __DKIM_DEP || __SPF_DEP ) && __DMARC_REJECT )
describe DMARC_REJECT DMARC fail with reject policy
score DMARC_REJECT {{ spamassassin_dmarc_github_reject_score }}
header __DMARC_QUAR eval:check_dmarc_quarantine()
meta DMARC_QUAR ( ( __DKIM_DEP || __SPF_DEP ) && __DMARC_QUAR )
describe DMARC_QUAR DMARC fail with quarantine policy
score DMARC_QUAR {{ spamassassin_dmarc_github_qar_score }}
header __DMARC_NONE eval:check_dmarc_none()
meta DMARC_NONE ( ( __DKIM_DEP || __SPF_DEP ) && __DMARC_NONE )
describe DMARC_NONE DMARC fail with none policy
score DMARC_NONE {{ spamassassin_dmarc_github_dmarc_none_score }}
header __DMARC_MISSING eval:check_dmarc_missing()
meta DMARC_MISSING ( ( __DKIM_DEP || __SPF_DEP ) && __DMARC_MISSING )
describe DMARC_MISSING DMARC policy missing
score DMARC_MISSING {{ spamassassin_dmarc_github_dmarc_missing_score }}
header __DMARC_PASS eval:check_dmarc_pass()
meta DMARC_PASS ( ( __DKIM_DEP || __SPF_DEP ) && __DMARC_PASS )
describe DMARC_PASS DMARC tests pass
score DMARC_PASS {{ spamassassin_dmarc_github_dmarc_pass_score }}
endif
endif
endif