| Mail::MtPolicyd::Plugin::SMTPVerify(3pm) | User Contributed Perl Documentation | Mail::MtPolicyd::Plugin::SMTPVerify(3pm) |
Mail::MtPolicyd::Plugin::SMTPVerify - mtpolicyd plugin for remote SMTP address checks
version 2.05
This plugin can be used to do remote SMTP verification of addresses.
To check if the recipient exists on a internal relay and mailbox is able to receive a message of this size:
<Plugin smtp-rcpt-check>
module = "SMTPVerify"
host = "mail.company.internal"
sender_field = "sender"
recipient_field = "recipient"
# send SIZE to check quota
size_field = "size"
temp_fail_action = "defer %MSG%"
perm_fail_action = "reject %MSG%"
</Plugin>
Do some very strict checks on sender address:
<Plugin sender-sender-check>
module = "SMTPVerify"
# use a verifiable address in MAIL FROM:
sender = "horst@mydomain.tld"
recipient_field = "sender"
no_starttls_action = "reject sender address does not support STARTTLS"
temp_fail_action = "defer sender address failed verification: %MSG%"
perm_fail_action = "reject sender address does not accept mail: %MSG%"
</Plugin>
Or do advanced checking of sender address and apply a score:
<Plugin sender-sender-check>
module = "SMTPVerify"
# use a verifiable address in MAIL FROM:
sender = "horst@mydomain.tld"
recipient_field = "sender"
check_tlsa = "on"
check_openpgp = "on"
temp_fail_score = "1"
perm_fail_score = "3"
has_starttls_score = "-1"
no_starttls_score = "5"
has_tlsa_score = "-3"
has_openpgp_score = "-3"
</Plugin>
Based on the score you can later apply greylisting or other actions.
The module takes the following parameters:
This requires that your DNS resolver returns the AD flag for DNSSEC secured records.
The string "%MSG%" will be replaced by the smtp message:
perm_fail_action = "reject %MSG%"
temp_fail_action = "defer %MSG%"
Markus Benning <ich@markusbenning.de>
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
| 2022-10-15 | perl v5.36.0 |