exim4:access_control
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exim4:access_control [2016/11/04 10:42] – peter | exim4:access_control [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 26: | Line 26: | ||
</ | </ | ||
+ | <WRAP warning> | ||
**WARNING**: | **WARNING**: | ||
+ | </ | ||
Line 252: | Line 254: | ||
###################################################################### | ###################################################################### | ||
# ACL " | # ACL " | ||
- | # hosts wich have not their own registered domain-name (probably spammer). | + | # hosts which have not their own registered domain-name (probably spammer). |
# Return ok if the HELO argument correspond to the connected HOST and | # Return ok if the HELO argument correspond to the connected HOST and | ||
# if the argument does not contain an IP in decimal or hexa. | # if the argument does not contain an IP in decimal or hexa. | ||
Line 281: | Line 283: | ||
condition | condition | ||
</ | </ | ||
- | | + | |
+ | |||
+ | ===== Anti-virus: Windows executable in attachment ===== | ||
+ | |||
+ | It's a very basic anti-virus: every emails with a windows executable as attachment is rejected. | ||
+ | |||
+ | < | ||
+ | acl_check_data: | ||
+ | . . . | ||
+ | deny message = This message contains an attachment of a type which we do not accept (.$found_extension) | ||
+ | demime = bat: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== anti-virus: clamav ===== | ||
+ | |||
+ | < | ||
+ | ###################################################################### | ||
+ | # MAIN CONFIGURATION SETTINGS | ||
+ | ###################################################################### | ||
+ | av_scanner = clamd:/ | ||
+ | . . . | ||
+ | ###################################################################### | ||
+ | # ACL CONFIGURATION | ||
+ | ###################################################################### | ||
+ | acl_check_data: | ||
+ | . . . | ||
+ | deny message = This message contains a virus or other harmful content ($malware_name) | ||
+ | demime = * | ||
+ | malware = * | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | anti-spam external detector: spamassassin | ||
+ | |||
+ | We add a " | ||
+ | |||
+ | Because of the " | ||
+ | |||
+ | < | ||
+ | ###################################################################### | ||
+ | # MAIN CONFIGURATION SETTINGS | ||
+ | ###################################################################### | ||
+ | spamd_address = 127.0.0.1 783 | ||
+ | . . . | ||
+ | ###################################################################### | ||
+ | # ACL CONFIGURATION | ||
+ | ###################################################################### | ||
+ | acl_check_data: | ||
+ | . . . | ||
+ | ## spamassassin, | ||
+ | ## limit its use under 500k. | ||
+ | accept | ||
+ | warn message = X-SA-Score: $spam_score | ||
+ | spam = nobody:true | ||
+ | warn message = X-SA-Report: | ||
+ | spam = nobody: | ||
+ | condition = ${if > | ||
+ | warn message = X-SA-Status: | ||
+ | spam = nobody: | ||
+ | condition = ${if > | ||
+ | deny message = This message scored $spam_score spam points. | ||
+ | spam = nobody:true | ||
+ | condition = ${if > | ||
+ | </ | ||
+ | |||
+ | In your " | ||
+ | |||
+ | <file bash ~/ | ||
+ | # Exim filter | ||
+ | if $h_X-SA-Status: | ||
+ | save $home/ | ||
+ | | ||
+ | endif | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Checking source of email associated with your domain in whois ===== | ||
+ | |||
+ | If you have an email published in a whois database (spammers scan these databases) but want emails just from your registrar, you can add this in your " | ||
+ | |||
+ | <file bash ~/ | ||
+ | # Exim filter | ||
+ | if $original_local_part is " | ||
+ | then | ||
+ | if $sender_address_domain is " | ||
+ | deliver john | ||
+ | else | ||
+ | save $home/ | ||
+ | finish | ||
+ | endif | ||
+ | endif | ||
+ | </ |
exim4/access_control.1478256162.txt.gz · Last modified: 2020/07/15 09:30 (external edit)