Mail::MtPolicyd::Plugin::Greylist(3pm) | User Contributed Perl Documentation | Mail::MtPolicyd::Plugin::Greylist(3pm) |
Mail::MtPolicyd::Plugin::Greylist - This plugin implements a greylisting mechanism with an auto whitelist.
version 2.05
This plugin implements a greylisting mechanism with an auto whitelist.
If a client connects it will return an defer and create a greylisting "ticket" for the combination of the address of the sender, the senders address and the recipient address. The ticket will be stored in memcached and will contain the time when the client was seen for the first time. The ticket will expire after the max_retry_wait timeout.
The client will be deferred until the min_retry_wait timeout has been reached. Only in the time between the min_retry_wait and max_retry_wait the request will pass the greylisting test.
When the auto-whitelist is enabled (default) a record for every client which passes the greylisting test will be stored in the autowl_table. The table is based on the combination of the sender domain and client_address. If a client passed the test at least autowl_threshold (default 3) times the greylisting test will be skipped. Additional an last_seen time stamp is stored in the record and records which are older then the autowl_expire_days will expire.
Please note the greylisting is done on a triplet based on the
client_address + sender + recipient
The auto-white list is based on the
client_address + sender_domain
You can set this 'accept' or 'dunno' if you want skip further checks.
If a client retries too fast the time left till min_retry_wait is reach will be appended to the string.
The database handle specified in the global configuration will be used. (see man mtpolicyd)
This can be used to catch early retries at the begin of your configuration before more expensive checks are processed.
Example:
<Plugin greylist> module = "Greylist" score = -5 mode = "passive" create_ticket = 0 query_autowl = 0 </Plugin> # ... a lot of RBL checks, etc... <Plugin ScoreGreylist> module = "ScoreAction" threshold = 5 <Plugin greylist> module = "Greylist" score = -5 mode = "passive" </Plugin> </Plugin>
This will prevent early retries from running thru all checks.
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.34.0 |