Qpsmtpd:badmailfrom

From SME Server
Revision as of 12:28, 17 July 2017 by Mmccarn (talk | contribs) (perldoc output)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Qpsmtpd#Plugins

NAME

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

DESCRIPTION

Reads the "badmailfrom" configuration like qmail-smtpd does. From the qmail-smtpd docs:

"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."

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

CONFIGURATION

reject

  badmailfrom reject [ 0 | 1 | naughty ]

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.

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.

 ^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$

AUTHORS

2002 - Jim Winstead - initial author of badmailfrom

2010 - Johan Almqvist <johan-qpsmtpd@almqvist.net> - pattern matching plugin

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