The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to block *.domain (Hostname)

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

Tags:
  1. tui

    tui Well-Known Member

    Joined:
    Jun 15, 2007
    Messages:
    50
    Likes Received:
    4
    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:
    37,037
    Likes Received:
    1,281
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page