Qpsmtpd:check goodrcptto

From SME Server
Jump to navigation Jump to search

Qpsmtpd#Plugins

NAME

check_goodrcptto

DESCRIPTION

This plugin denies all recipients except those in the goodrcptto config file (i.e. like badrcptto, but whitelisting). It supports recipient username extension stripping, and both domain ('@domain.com') and username (bare 'postmaster') wildcard entries in the config file.

Useful where something like check_delivery is overkill or not an option (e.g. relays, bastion hosts).

CONFIG

The following parameters can be passed to check_goodrcptto:

extn <char>
If set, check_goodrcptto does its checks using both the username as given and the username stripped of any extensions beginning with <char>.
deny_note <name>
If set, check_goodrcptto will set a connection note with the given name when denying a recipient. If <name> is of the form 'name=value', then the specified value will be used instead of the default '1'. If the connection note already exists, the value will be incremented (if numeric), instead of set.