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.

block 1 address

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

  1. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    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.
     
  3. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    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
    
     
  4. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    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


    ?
     
  5. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    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.
    
     
Loading...

Share This Page