Qpsmtpd:badrcptto

From SME Server
Jump to navigationJump to search

Qpsmtpd#Plugins

SYNOPSIS

deny connections to recipients in the badrcptto file

like badmailfrom, but for recipient address rather than sender

CONFIG

Recipients are matched against entries in config/badrcptto. Entries can be a complete email address, a host entry that starts with an @ symbol, or a regular expression. For regexp pattern matches, see PATTERNS.

CONFIG FILES

more_badrcptto

Optional additional file to look for badrcptto in config. Same syntax as the default badrcptto

PATTERNS

This allows special patterns to be denied (e.g. percent hack, bangs, double ats).

Patterns are stored in the format pattern\sresponse, where pattern is a Perl pattern expression. Don't forget to anchor the pattern if you want to restrict it from matching anywhere in the string.

qpsmtpd already ensures that the address contains an @, with something to the left and right of the @.

AUTHOR

2002 - original badrcptto plugin - apparently Jim Winstead https://github.com/smtpd/qpsmtpd/commits/master/plugins/check_badrcptto

2005 - pattern feature, (c) Gordon Rowell <gordonr@gormand.com.au>

2012 - merged the two, refactored, added tests - Matt Simerson

LICENSE

This software is free software and may be distributed under the same terms as qpsmtpd itself.