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 outgoing mail to aol.com

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

Thread Status:
Not open for further replies.
  1. abhijith

    abhijith Member

    Joined:
    Feb 18, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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 .
     
  2. zella

    zella Member

    Joined:
    Aug 5, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    You can 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.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Please dont' cross-post on the forums.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page