# File location: /etc/postfix/mxfilter.cf
#
# Test enable/disable
#
# mxfilter config file
# enable set 1
# disable set 0
# default_result (all enabled tests return: record not found) default 2
#   -1 - dns error
#    0 - pass "v=spf1 +all"
#    1 - fail "v=spf1 -all"
#    2 - unknown "v=spf1 ?all"
#    3 - softfail "v=spf1 ~all"
#
# only spf1 config with "v=spf1 ?all" (default config, if file not exist)

test_spf	1
test_dmp	0
test_a	0
test_mx	0
default_result	2

# enable mail delivery/reject if:

dunno_on_error	0
dunno_on_fail	0
fail_on_softfail	0
ok_on_pass	0

# if envelope_sender empty rmxf may use helo
skip_helo_check	0

# messages (accept macro like exp modifier)
# example:
#   message_fail	Undelivered, http://spf.pobox.com/why.html?sender=%{l}%%40%{d}&ip=%{i}

message_fail		Undelivered, check spf records. http://spf.pobox.com/
message_acl_error	Email system error: mxfilter.acl problem. http://rmxf.comm.pl/
message_dns_error	DNS error, try again later.
message_fail_on_unknown	Setup spf records. http://spf.pobox.com/

# Change hostname
#myhostname	host.domain.tld

# Add to header information (smathost mode)
#prepend_spf_after_relay	0

dns_query_limit	1000

# How many lines 'Received: from' mxfilter must skip (--procmail only) excluding lan area and localhost
# procmail_skip_line	0
