Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- acl_smtp_connect:
- accept
- hosts = +trustedmailhosts
- accept
- condition = ${if match_ip{$sender_host_address}{iplsearch;/etc/trustedmailhosts}{1}{0}}
- accept
- hosts = +relay_hosts : +loopback
- accept
- hosts = +relay_hosts : +backupmx_hosts
- accept
- condition = ${if eq {$interface_port}{25}{no}{yes}}
- defer
- message = The server has reached its limit for processing requests from your host. Please try again later.
- log_message = "Host is ratelimited ($sender_rate/$sender_rate_period max:$sender_rate_limit)"
- ratelimit = 1.2 / 1h / strict / per_conn / noupdate
- warn
- # host had a success in the last hour
- ratelimit = 1 / 1h / noupdate / per_conn / slow_fail_accept_$sender_host_address
- set acl_m4 = 1
- defer
- condition = ${if eq {${acl_m4}}{1}{0}{1}}
- log_message = "Host is ratelimited due to multiple failure only connections ($sender_rate/$sender_rate_period max:$sender_rate_limit)"
- ratelimit = 5 / 1h / noupdate / per_conn / slow_fail_block_$sender_host_address
- drop
- message = Your host is not allowed to connect to this server.
- log_message = Host is banned
- hosts = +spammeripblocks
- # do not change the comment in the line below, it is required for /usr/local/cpanel/bin/check_exim_config
- #acl_smtp_notquit is required for this to work (exim 4.68)
- accept
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement