-
Notifications
You must be signed in to change notification settings - Fork 178
PerlModules
Andreas Vögele edited this page Jan 25, 2022
·
9 revisions
A list of Perl modules for use with Exim's embedded Perl interpreter.
The Perl module Mail::Exim::ACL::Attachments checks email attachments and Zip archives for blocked filenames. The module identifies filenames that are blocked by Outlook, that belong to macro-enabled Office documents or that are associated with 7-Zip.
acl_check_mime:
warn
condition = ${if and{{def:mime_filename} \
{!match{${lc:$mime_filename}}{\N\.((json|xml)\.gz|zip)$\N}} \
{eq{${perl{check_filename}{$mime_filename}}}{blocked}}}}
set acl_m_blocked = yes
warn
condition = ${if match{${lc:$mime_filename}}{\N\. *(jar|zip)$\N}}
decode = default
condition = ${if eq{${perl{check_zip}{$mime_decoded_filename}}} \
{blocked}}
set acl_m_blocked = yes
The Perl module Mail::Exim::ACL::Geolocation maps IP addresses to two-letter country codes such as "DE", "FR" and "US". SpamAssassin can use these country codes to filter junk email.
acl_check_rcpt:
warn
domains = +local_domains : +relay_to_domains
set acl_m_country_code = ${perl{country_code}{$sender_host_address}}
add_header = X-Sender-Host-Country: $acl_m_country_code
bayes_ignore_header X-Sender-Host-Country
header UNCOMMON_COUNTRY X-Sender-Host-Country !~ /^(?:DE|FR|US)/ [if-unset: US]
describe UNCOMMON_COUNTRY Message is sent from uncommon country
tflags UNCOMMON_COUNTRY noautolearn
score UNCOMMON_COUNTRY 0.1