X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/4840604e4f365545a43f01d0e953ce33afd1c3d5..a85c067ba6c6940512cf57ec213277a370d87e70:/src/src/dmarc.h diff --git a/src/src/dmarc.h b/src/src/dmarc.h index fa0365e55..f71f1fd5a 100644 --- a/src/src/dmarc.h +++ b/src/src/dmarc.h @@ -3,30 +3,29 @@ *************************************************/ /* Experimental DMARC support. - Copyright (c) Todd Lyons 2012, 2013 + Copyright (c) The Exim Maintainers 2021 - 2022 + Copyright (c) Todd Lyons 2012 - 2014 License: GPL */ +/* SPDX-License-Identifier: GPL-2.0-only */ /* Portions Copyright (c) 2012, 2013, The Trusted Domain Project; All rights reserved, licensed for use per LICENSE.opendmarc. */ -#ifdef EXPERIMENTAL_DMARC +#ifdef SUPPORT_DMARC -#include "opendmarc/dmarc.h" -#ifdef EXPERIMENTAL_SPF -#include "spf2/spf.h" -#endif /* EXPERIMENTAL_SPF */ +# include "opendmarc/dmarc.h" +# ifdef SUPPORT_SPF +# include "spf2/spf.h" +# endif /* SUPPORT_SPF */ /* prototypes */ +gstring * dmarc_version_report(gstring *); int dmarc_init(); int dmarc_store_data(header_line *); int dmarc_process(); uschar *dmarc_exim_expand_query(int); uschar *dmarc_exim_expand_defaults(int); -uschar *dmarc_auth_results_header(header_line *,uschar *); -int dmarc_write_history_file(); -void dmarc_send_forensic_report(u_char **); -#define DMARC_AR_HEADER US"Authentication-Results:" #define DMARC_VERIFY_STATUS 1 #define DMARC_HIST_OK 1 @@ -42,7 +41,21 @@ void dmarc_send_forensic_report(u_char **); #define DMARC_RESULT_TEMPFAIL 3 #define DMARC_RESULT_QUARANTINE 4 - -#endif - -// vim:sw=2 expandtab +/* From opendmarc-ar.h */ +/* ARES_RESULT_T -- type for specifying an authentication result */ +#define ARES_RESULT_UNDEFINED (-1) +#define ARES_RESULT_PASS 0 +#define ARES_RESULT_UNUSED 1 +#define ARES_RESULT_SOFTFAIL 2 +#define ARES_RESULT_NEUTRAL 3 +#define ARES_RESULT_TEMPERROR 4 +#define ARES_RESULT_PERMERROR 5 +#define ARES_RESULT_NONE 6 +#define ARES_RESULT_FAIL 7 +#define ARES_RESULT_POLICY 8 +#define ARES_RESULT_NXDOMAIN 9 +#define ARES_RESULT_SIGNED 10 +#define ARES_RESULT_UNKNOWN 11 +#define ARES_RESULT_DISCARD 12 + +#endif /* SUPPORT_DMARC */