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!

block 1 address

Discussion in 'E-mail Discussion' started by hostmedic, Jan 3, 2008.

  1. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    544
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    We have someone that has been sending much of our clients an email on a daily basis.
    We would like to stop all email from their domains

    Is there a way to place this into a config file somewhere

    ie:

    if an email comes from @domain.com kill it and do not forward to our clients?

    thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not sure how others do it, but with ConfigServer MailScanner Front-End is how we do it. Right from within WHM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    Putting this after check_recipient: in your exim conf should do it (not tested it but its simple so should work), could always be expanded to check a host_list or file for banned domains.

    Code:
    deny message = Your Domain is not permitted to send to us, E-mail Rejected.
         log_message = Spamming Bastards
         senders = *@spamdomain.com
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    544
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    using a list...

    Hmmm - k

    so I would just place that right after this:

    #!!# These options specify the Access Control Lists (ACLs) that
    #!!# are used for incoming SMTP messages - after the RCPT and DATA
    #!!# commands, respectively.

    acl_smtp_rcpt = check_recipient


    ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    no sorry, i didnt explain properly before, after this:

    Code:
    [% ACL_NOTQUIT_BLOCK %]
    
    
    #!!# ACL that is used after the RCPT command
    check_recipient:
      # Exim 3 had no checking on -bs messages, so for compatibility
      # we accept if the source is local SMTP (i.e. not over TCP/IP).
      # We do this by testing for an empty sending host field.
    
     
    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