Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to block *.domain (Hostname)

Discussion in 'E-mail Discussion' started by tui, Apr 12, 2017.

Tags:
  1. tui

    tui Well-Known Member

    Joined:
    Jun 15, 2007
    Messages:
    79
    Likes Received:
    5
    Trophy Points:
    58
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    I have been reading all similar threads to block mails in exim, but none apply's to my case:

    There is a company sending mails to one of my server, the domain use the hostname *.mailendo.com to send mails but they send mails from a lot of domains/accounts like jerry@domain1.com, paula@domain2.com but the sender hostname is always *.mailendo.com

    How can i block *.mailendo.com HOSTNAMES from sending us mails?

    Ip block is impossible, every hostname has different ip (obviously)

    block accounts domain is impossible they have a lot domains, the only thing that is constant is the hostname *.mailendo.com

    This list code (and similars) does not work because it check only the "to", "from" not the sender hostname:

    if first_delivery
    and ("$h_to:, $h_cc:" contains ".link")
    or ("$h_from:" contains ".link")
    then
    seen finish
    endif

    Is there any way to blacklist sender hostnames directly?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,667
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice