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 mails to AOL [moved]

Discussion in 'E-mail Discussion' started by abhijith, Jun 22, 2006.

  1. abhijith

    abhijith Member

    Joined:
    Feb 18, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    india kerala
    Hi,

    I just want to know how we can block mail to aol.com from a particular domain only. Others should be able to send mail to aol. Not from a user bur from a domain whole. Please answer .:eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Delete the offending domain?
     
  3. abhijith

    abhijith Member

    Joined:
    Feb 18, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    india kerala
    Hii

    what i need is to block outgoing mails to aol.com from a paricular domain/IP :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mum

    mum Member

    Joined:
    Jul 28, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    use iptables :)
     
  5. zella

    zella Member

    Joined:
    Aug 5, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    You can also try to do that within /etc/antivirus.exim file like this

    if $header_from: contains "@thedomain_you_want_to_block_to_aol" and
    $header_to: contains "@aol.com"
    then
    fail text "The message you want to send to the originator of this email"
    seen finish
    end

    Hoping that the "if" accept "and" otherwise use 2 if
    like this

    if $header_from: contains "@thedomain_you_want_to_block_to_aol"
    then
    if $header_to: contains "@aol.com"
    then
    fail text "The message you want to send to the originator of this email"
    seen finish
    end
    end

    You can place these lines after
    if not first_delivery
    then
    finish
    endif


    Regards.
     
  6. abhijith

    abhijith Member

    Joined:
    Feb 18, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    india kerala
    Thanks a lot

    thats worked :)
     
    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