fplanzer

block send exim

Feb 7th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. Create a file named /etc/eximblacklist and add the domains to block
  2.  
  3.  
  4. WHM >> Exim configuration editor >> Advanced Editor.
  5.  
  6. "#!!# cPanel Exim 4 Config"
  7.  
  8.     domainlist exim_blacklist = lsearch;/etc/eximblacklist
  9.  
  10.     add inside the section under "ROUTERS CONFIGURATION "
  11.  
  12.     reject_domains:
  13.  
  14.     driver = redirect
  15.     # RBL Blacklist incoming hosts
  16.     domains = +exim_blacklist
  17.     allow_fail
  18.     data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.
  19.  
  20.     Save the configuration and see the exim error log. You can see the domain blocked.
Advertisement
Add Comment
Please, Sign In to add comment