Changes

Jump to navigation Jump to search
2,029 bytes added ,  12:28, 17 July 2017
perldoc output
<span id="_top">[[Qpsmtpd#Plugins]]</span>
= [[#___top|NAME]] =

check_badmailfrom - checks the badmailfrom config, with per-line reasons

= [[#___top|DESCRIPTION]] =

Reads the &quot;badmailfrom&quot; configuration like qmail-smtpd does. From the qmail-smtpd docs:

&quot;Unacceptable envelope sender addresses. qmail-smtpd will reject every recipient address for a message if the envelope sender address is listed in badmailfrom. A line in badmailfrom may be of the form @host, meaning every address at host.&quot;

You may include an optional message after the sender address (leave a space), to be used when rejecting the sender.

= [[#___top|CONFIGURATION]] =

== [[#___top|reject]] ==

<pre> badmailfrom reject [ 0 | 1 | naughty ]</pre>
''0'' will not reject any connections.

''1'' will reject naughty senders.

''connect'' is the most efficient setting. It's also the default.

To reject at any other connection hook, use the ''naughty'' setting and the '''naughty''' plugin.

= [[#___top|PATTERNS]] =

This plugin also supports regular expression matches. This allows special patterns to be denied (e.g. FQDN-VERP, percent hack, bangs, double ats).

Patterns are stored in the format pattern(\s+)response, where pattern is a Perl pattern expression. Don't forget to anchor the pattern (front ^ and back $) if you want to restrict it from matching anywhere in the string.

<pre> ^streamsendbouncer@.*\.mailengine1\.com$ Your right-hand side VERP doesn't fool me
^return.*@.*\.pidplate\.biz$ I don't want it regardless of subdomain
^admin.*\.ppoonn400\.com$</pre>
= [[#___top|AUTHORS]] =

2002 - Jim Winstead - initial author of badmailfrom

2010 - Johan Almqvist &lt;johan-qpsmtpd@almqvist.net&gt; - pattern matching plugin

2012 - Matt Simerson - merging of the two and plugin tests

<!-- Generated Mon Jul 17 07:28:02 EDT 2017 using
perldoc -T -ohtml /usr/share/qpsmtpd/plugins/badmailfrom |pandoc -f html -t mediawiki |sed 1 i\\n\n\n<span id="_top">[[Qpsmtpd#Plugins]]</span> |sed -e s#</d.>##
-->

Navigation menu