Skip to main content

Blocking email with Exim4 using the IP

Comments

2 comments

  • keat63
    If you have CSF installed, you could add the offending IP the the CSF blocklist. One thing I find with frequent spam though, is that it's usually done by bots, where the IP will change, so whilst adding the IP may fix the issue today, it's likley to resurface from another source tomorrow. The way I normally get around this would be to create a global filter in cpanel, along the lines: If body contains "some common phrase" Then fail and discard the message. I guess you could just discard the message without the fail, but i live in hope that somewhere, someone will see the fail and realise his server/pc/email address may have been hacked and fix it.
    0
  • cPanelLauren
    I'd also like to add that when you create a global filter through the cPanel UI it uses: $header_from or $message_headers
    0

Please sign in to leave a comment.