Guest User

Untitled

a guest
Apr 8th, 2014
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. acl_smtp_connect:
  2.  
  3. accept
  4. hosts = +trustedmailhosts
  5. accept
  6. condition = ${if match_ip{$sender_host_address}{iplsearch;/etc/trustedmailhosts}{1}{0}}
  7. accept
  8. hosts = +relay_hosts : +loopback
  9. accept
  10. hosts = +relay_hosts : +backupmx_hosts
  11. accept
  12. condition = ${if eq {$interface_port}{25}{no}{yes}}
  13. defer
  14. message = The server has reached its limit for processing requests from your host. Please try again later.
  15. log_message = "Host is ratelimited ($sender_rate/$sender_rate_period max:$sender_rate_limit)"
  16. ratelimit = 1.2 / 1h / strict / per_conn / noupdate
  17. warn
  18. # host had a success in the last hour
  19. ratelimit = 1 / 1h / noupdate / per_conn / slow_fail_accept_$sender_host_address
  20. set acl_m4 = 1
  21. defer
  22. condition = ${if eq {${acl_m4}}{1}{0}{1}}
  23. log_message = "Host is ratelimited due to multiple failure only connections ($sender_rate/$sender_rate_period max:$sender_rate_limit)"
  24. ratelimit = 5 / 1h / noupdate / per_conn / slow_fail_block_$sender_host_address
  25. drop
  26. message = Your host is not allowed to connect to this server.
  27. log_message = Host is banned
  28. hosts = +spammeripblocks
  29.  
  30. # do not change the comment in the line below, it is required for /usr/local/cpanel/bin/check_exim_config
  31. #acl_smtp_notquit is required for this to work (exim 4.68)
  32. accept
RAW Paste Data