-
Notifications
You must be signed in to change notification settings - Fork 5
/
smf-spf.conf
166 lines (140 loc) · 3.39 KB
/
smf-spf.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# /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 .friendlydomain.tld
#WhitelistPTR friendlyhost.friendlydomain.tld
# Whitelist by an envelope sender e-Mail address
#
# Performs a case insensitive substring match
#
#WhitelistFrom friend@
#WhitelistFrom @friendlydomain.tld
#WhitelistFrom friend@friendlydomain.tld
# Whitelist by an envelope recipient e-Mail address
#
# Performs a case insensitive substring match
#
#WhitelistTo postmaster@
#WhitelistTo @yourspamloverdomain.tld
#WhitelistTo spamlover@yourdomain.tld
# Don't check localpart size. RFC 821/2821/5321 states
# localpart must be less that 64 octects. With relaxed on
# only total mailfrom ( localpart @ domain.tld ) size is checked
#
# Default: off
#
#RelaxedLocalPart off # (on|off)
# Refuse e-Mail messages at SPF None results
# On empty senders this restriction will not be applied
#
# Default: off
#
#RefuseSPFNone off # (on|off)
# Refuse e-Mail messages when there is an empty sender
# and there isn't an SPF policy fro the server name
# Server name is the HELO identity
#
# Default: off
#
#RefuseSPFNoneHelo off # (on|off)
# Refuse e-Mail messages at SPF Fail results (RFC-4408)
#
# Default: on
#
#RefuseFail on # (on|off)
# When refusing e-Mail messages use a 450 SMTP code
#
# Default: off
#
#SoftFail off # (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]
# Add the deprecated Received-SPF: header
#
# Default: off
#
# AddReceivedHeader off
# Build a standard Authentication-Results: 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 1h
# Run as a selected user (smf-spf must be started by root)
#
# Default: smfs
#
#User smfs
# Socket used to communicate with Sendmail daemon
#
# Default: unix:/var/run/smfs/smf-spf.sock
#
#Socket unix:/var/run/smfs/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 on # (on|off)
# AuthservID string
# default (hostname provided by milter)
#
# Defines the "authserv-id" token to be used when generating
# Authentication-Results headers after sender verification.
# AuthservID example.com