forked from jcbf/smf-spf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smf-spf-tests.conf
130 lines (113 loc) · 2.51 KB
/
smf-spf-tests.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# /etc/mail/smfs/smf-spf.conf
#
# smf-spf configuration file v2.0.2 (it's read at start)
#
# Whitelist by a sender IP address
#
# The syntax is an IP address followed by a slash
# and a CIDR netmask (if the netmask is omitted, /32 is assumed)
#
WhitelistIP 127.0.0.0/8
#WhitelistIP 10.0.0.0/8
WhitelistIP 172.16.0.0/12
WhitelistIP 192.168.0.0/16
# Whitelist by a sender PTR record (reverse DNS record)
#
# Performs a case insensitive substring match
#
WhitelistPTR .example.com
WhitelistPTR .example.net
WhitelistPTR .example.org
#WhitelistPTR friendlyhost.friendlydomain.tld
# Whitelist by an envelope sender e-Mail address
#
# Performs a case insensitive substring match
#
WhitelistFrom friend@
WhitelistFrom @example.org
WhitelistFrom friend2@mail.example.org
# Whitelist by an envelope recipient e-Mail address
#
# Performs a case insensitive substring match
#
WhitelistTo postmaster@
WhitelistTo @example.com
WhitelistTo spamlover@example.com
# Refuse e-Mail messages at SPF Fail results (RFC-4408)
#
# Default: on
#
RefuseFail off # (on|off)
# When refusing e-Mail messages use a 450 SMTP code
#
# Default: off
#
SoftFail on # (on|off)
#
# Accept email when SPF evaluation return a TEMPERROR
#
# Default: on
#
AcceptTempError on
# Subject tagging of e-Mail messages at SPF SoftFail
# and Fail (if RefuseFail set to off) results
#
# Default: on
#
TagSubject on # (on|off)
# Subject tagging string
#
# Default: [SPF:fail]
#
Tag [SPF:FAIL]
# Build a standard Received-SPF: header
#
# Default: on
#
AddHeader on # (on|off)
# Quarantine of e-Mail messages at SPF SoftFail
# and Fail (if RefuseFail set to off) results
#
# Default: off
#
Quarantine off # (on|off)
# Quarantine mailbox
#
# Default: postmaster
#
QuarantineBox postmaster
#QuarantineBox spambox@yourdomain.tld
# In-memory cache engine TTL settings
#
# The time is given in seconds, except if a unit is given:
# m for minutes, h for hours, and d for days
# Specify zero to disable caching
#
# Default: 1h
#
TTL 1D
TTL 1h
# Run as a selected user (smf-spf must be started by root)
#
# Default: smfs
#
User nobody
# Socket used to communicate with Sendmail daemon
#
# Default: unix:/var/run/smfs/smf-spf.sock
#
Socket inet:2424@127.0.0.1
#Socket unix:/tmp//smf-spf.sock
# Facility for logging via Syslog daemon
#
# Default: mail
#
Syslog mail # (daemon|mail|local0...local7)
# Run as a daemon process in the background
#
# When disabled, the process will stay in the foreground.
# This is preferred by some init systems, f.i. systemd
#
# Default: on
#
Daemonize off # (on|off)