Debian Codegraph @

debian/etc/plugins

raw
1 # Qpsmtpd plugin configuration
2 #
3 # This file gives a list of plugins to be loaded by qpsmtpd. Plugins affect
4 # and in some cases implement aspects of qpsmtpd's functionality.
5 #
6 # Plugins listed here can be found in /usr/share/qpsmtpd/plugins/. For
7 # documentation on each, consult their POD documentation by running perldoc
8 # on the plugin (for example, 'perldoc /usr/share/qpsmtpd/plugins/dnsbl').
9 #
10 # Each plugin hooks one or more aspect of the SMTP transaction. For each
11 # stage of the transaction, the plugins hooked to that stage are executed in
12 # the order they appear in this file. Some plugins can preempt others; for
13 # example, any plugin which issues a hard-DENY to any SMTP stage will preempt
14 # the execution of any others for that stage.
15
16 ## Filtering/SMTP exchange plugins
17
18 # check_earlytalker -- listens to the connection breifly before the SMTP
19 # greeting is issued, disconnecting (or logging) any host that starts
20 # transmitting before that point in violation of RFC; legitimate MTAs wait for
21 # the greeting, while some spam agents, many viruses and most HTTP proxy
22 # abusers do not. Although this is believed safe, buggy MTAs that do not wait
23 # for the greeting will be inadvertantly blocked.
24 #
25 # usage:
26 # check_earlytalker [wait <secs>] [action <deny|denysoft|log>] [defer-reject]
27 #
28 check_earlytalker action log
29
30 # check_relay -- checks connecting hosts against /etc/qpsmtpd/relayclients and
31 # (if present) /etc/qpsmtpd/relayclients.cdb to grant or deny mail relaying.
32 #
33 check_relay
34
35 # require_resolvable_fromhost -- checks envelope sender addresses in DNS for
36 # resovability, declining the mail if the hostname in the address has neither
37 # an A or MX record (meaning, apart from any other issue, that the mail cannot
38 # be bounced.)
39 #
40 # require_resolvable_fromhost
41
42 # rhsbl -- checks the envelope sender hostname (the "right-hand side") against
43 # a list of DNS blacklists given in /etc/qpsmtpd/rhsbl_zones. Although this
44 # plugin is enabled by default, that list has no blacklists enabled.
45 #
46 rhsbl
47
48 # dnsbl -- checks the IP address of the connecting host against a list of DNS
49 # blacklists given in /etc/qpsmtpd/dnsbl_zones, declining any mail from any
50 # hosts with a positive record. A list of IP addresses can be given in the
51 # file /etc/qpsmtpd/dnsbl_allow; any host found in this second list will be
52 # exempted from the DNSBL check. This is the conventional host-based DNS
53 # blacklisting technique. Although the plugin is enabled by default, that
54 # list has no blacklists enabled.
55 #
56 dnsbl
57
58 # check_spamhelo -- checks the HELO/EHLO greeting sent by the remote host
59 # against a blacklist given in /etc/qpsmtpd/badhelo. A host which introduces
60 # itself with a matching HELO will be rejected at the HELO stage. This can
61 # be used to block spammers who forge the domain names of common email
62 # providers as their HELO greeting, while the real providers give a real
63 # mailserver name in their greetings. While enabled by default, the list
64 # initially has no greetings listed.
65 #
66 check_spamhelo
67
68 # check_badmailfrom -- checks the envelope sender address of inbound mail
69 # against a blacklist given in /etc/qpsmtpd/badmailfrom. This plugin is
70 # enabled by default but has no addresses listed.
71 #
72 check_badmailfrom
73
74 # check_badrcptto -- checks the envelope recipient address(es) of inbound mail
75 # against a blacklist given in /etc/qpsmtpd/badrcptto. Delivery to those
76 # addresses will be declined (though if the sender lists other non-listed
77 # addresses as recipients, they will be tolerated unless another plugin
78 # refuses them.) This plugin can be used to implement disposable addresses
79 # at locally hosted domains, with no mail accepted once those addresses are
80 # closed.
81 #
82 check_badrcptto
83
84 # badrcptto_patterns -- a more sophisticated form of badrcptto, this plugin
85 # checks envelope recipient addresses against a list of perl patterns given in
86 # /etc/qpsmtpd/badrcptto_patterns.
87 #
88 # check_badrcptto
89
90 # check_loop -- implements a simple form of mail loop detection, by counting
91 # the number of "Received" and "Delivered-To" headers in the mail. If that
92 # number exceeds the given limit, the mail is decliend as looping. By
93 # default, the mail is rejected if it contains more than 100 such headers.
94 #
95 # usage:
96 # check_loop [max-hops]
97 check_loop
98
99 # count_unrecognized_commands -- disconnects a host which issues too many
100 # unrecognized SMTP commands. This can be useful to mitigate the effects of
101 # buggy hosts which spew garbage into the connection, or the abuse of some
102 # forms of proxies (e.g. some HTTP proxies) which include non-SMTP commands
103 # before the spam payload.
104 #
105 # usage:
106 # count_unrecognized_commands [count]
107
108 # greylisting -- implements SMTP greylisting (for a further discussion of
109 # which see http://en.wikipedia.org/wiki/Greylisting). The greylist plugin
110 # is configured externally by editing /etc/qpsmtpd/denysoft_greylist, or by
111 # specifying options here. For configuration details, see the plugin's
112 # POD documentation.
113 #
114 # greylisting
115
116 # milter -- integrates Sendmail milter filters for use by qpsmtpd. Requires
117 # the Net::Milter perl module (not shipped with Debian, as of this writing.)
118 #
119 # usage:
120 # milter [milter-name] [[hostname:]port]
121 # e.g. milter Brightmail bmcluster.host.tld:5513
122 #
123 # milter
124
125 # virus/clamav -- checks inbound mail with the ClamAV virus scanner. This
126 # version of the plugin uses clamscan, which executes the scan locally, at the
127 # cost of some startup time not affecting clamdscan.
128 #
129 # For details of configuring the clamav plugin, see its POD documentation.
130 #
131 # virus/clamav
132
133 # virus/clamdscan -- checks inbound mail with the ClamAV virus scanner. This
134 # version of the plugin uses clamdscan, which requests that the 'clamd' damon
135 # scan the mail in the spool. While it eliminates the startup overhead of the
136 # clamav plugin, it requires that the clamd user be able to read files from
137 # the qpsmtpd spool, which is not permitted by default.
138 #
139 # usage:
140 # virus/clamdscan [max_size size-in-kb]
141 # [clamd_socket /path/to/socket]
142 # [deny_viruses <yes|no>]
143 #
144 # virus/clamdscan
145
146 # spamassassin -- checks inbound mail with a spamassassin daemon, marking or
147 # rejecting the mail based on spamd's response. Requires that you have spamd
148 # running either via TCP or a UNIX domain socket. This plugin should
149 # generally be configured near the end of the content checks plugin list, as
150 # spamassassin is computationally quite expensive relative to many other sorts
151 # of tests.
152 #
153 # usage:
154 # spamassassin [reject_threshold <points>] [munge_subject_threshold <points>]
155 # [spamd_socket /path/to/spamd.socket]
156 # [leave_old_headers <drop|rename|keep>]
157 #
158 # spamassassin munge_subject_threshold 8 reject_threshold 10
159
160 ## (for a list of further virus scanner plugins, see the directory
161 ## /usr/share/qpsmtpd/plugins/virus)
162
163 # quit_fortune -- prints an entry from the fortune file (by running
164 # /usr/games/fortune) in the response to a QUIT message in a connection which
165 # began with a HELO (not EHLO). This does nothing whatsoever for spam, but
166 # can help amuse fellow mail administrators and make SMTP logs more bearable.
167 #
168 # quit_fortune
169
170 # rcpt_ok -- checks /etc/qpsmtpd/me and /etc/qpsmtpd/rcpthosts to see if the
171 # recipient hostname is intended to be accepted here. This should be the last
172 # plugin before the queue plugin(s), and should not be disabled unless you
173 # know what you're doing.
174 #
175 rcpt_ok
176
177 # sender_permitted_from -- performs a Sender Policy Framework (SPF, often also
178 # called "Sender Permitted From") test on inbound mail. For further details
179 # of SPF, see http://spf.pobox.com/ or
180 # http://en.wikipedia.org/wiki/Sender_Policy_Framework. For more
181 # configuration details, see the plugin's POD documentation.
182 #
183 # usage:
184 # sender_permitted_from [spf_deny <0|1|2>]
185
186 ## Queue/delivery plugins
187 ##
188 ## These plugins control what happens to mail once it has been accepted.
189 ## Queueing methods correspond generally to your particular MTA, and select
190 ## the plugin needed to inject mail into its spool. Some MTAs, such as
191 ## Postfix, Exim and Qmail, have specific plugins available for efficient
192 ## injection. For others, you should configure qpsmtpd to listen on your
193 ## external, public interface and your MTA on the loopback (127.0.0.1) only.
194 ## You can then use the queue/smtp-forward plugin as described below to
195 ## inject the mail into that MTA via SMTP proxy once qpsmtpd has decided to
196 ## accept it.
197
198 ## When first configured, the qpsmtpd package will attempt to determine the
199 ## correct queueing plugin to use, and will try to confirm its guess with a
200 ## debconf question. The result is written to a debian-managed plugins
201 ## file included from here. If you wish to configure the queueing manually,
202 ## comment out or remove the $include directive below and enable one of the
203 ## queue plugins listed here. If you do not enable a queue plugin, qpsmtpd
204 ## will defer deliveries of mail with 4xx soft-failure errors, which is
205 ## probably not what you want.
206
207 # install-time Debian default
208 $include /etc/qpsmtpd/debian-queue-method
209
210 # explicit queue options
211
212 # queue/smtp-forward -- forwards received mail into another SMTP server,
213 # possibly on a remote host. Use this if your MTA does not have a direct
214 # queue injection plugin (e.g. for use with sendmail). It can also enable
215 # qpsmtpd to act as a frontend spam-filtering proxy for a backend or DMZ
216 # mailserver.
217 #
218 # usage: queue/smtp-forward <hostname> [port]
219 # e.g. queue/smtp-forward localhost 25
220 # e.g. queue/smtp-forward smtp-in.dmz.domain.tld 1025
221 #
222 # queue/smtp-forward 127.0.0.1
223
224 # queue/exim-bsmtp -- injects received mail into a local Exim queue, using
225 # Exim's BSMTP interface. If your exim install's rsmtp binary is not in the
226 # standard Debian location (/usr/bin/rsmtp), specify that as well.
227 #
228 # usage: queue/exim-bsmtp [exim_path /path/to/rsmtp]
229 #
230 # queue/exim-bsmtp
231
232 # queue/postfix-queue -- injects received mail into a local Postfix spool.
233 # If your Postfix queue socket is not at /var/spool/postfix/public/cleanup,
234 # then you should specify that as well.
235 #
236 # usage: queue/postfix-queue [socket]
237 # e.g. queue/postfix-queue /var/spool/postfix/public/cleanup
238 #
239 # queue/postfix-queue
240
241 # queue/qmail-queue -- injects received mail into a local Qmail spool. If
242 # your qmail installation puts the qmail-queue binary at a location other
243 # than the Qmail default of /var/qmail/bin/qmail-queue, you should specify
244 # that location in the plugin configuration. If you use the Debian qmail
245 # package (via the qmail-src source-only package), it places its qmail-queue
246 # binary at /usr/sbin/qmail-queue.
247 #
248 # usage: queue/qmail-queue [/path/to/qmail-queue]
249 # e.g. queue/qmail-queue /var/qmail/bin/qmail-queue
250 #
251 # queue/qmail-queue /usr/sbin/qmail-queue
252
253 # queue/maildir -- spools received mail directly into a Maildir-format local
254 # mailbox. This is of little use on a multi-user mail system, but can be
255 # helpful for very simple mail setups or when using qpsmtpd as a spamtrap.
256 # If this queue method is selected when the qpsmtpd package is configured,
257 # the maildir will be created in the location chosen. To select a new
258 # location, specify it here or run 'dpkg-reconfigure qpsmtpd'. If you
259 # specify a new location here, first create a Maildir there (a maildir is
260 # simply a directory containing three subdirectories named 'cur', 'tmp' and
261 # 'new', each with mode 0700).
262 #
263 # usage: queue/maildir </path/to/maildir>
264 # e.g. queue/maildir /var/qpsmtpd/spool/Maildir
265 #
266 # queue/maildir /var/qpsmtpd/spool/Maildir
267