Community Forums
Connect with us on LinkedIn
Community Notice
Closed Thread
Results 1 to 3 of 3
  1. #1
    Member abhijith's Avatar
    Join Date
    Feb 2006
    Location
    india kerala
    Posts
    21

    Default Block outgoing mail to aol.com

    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 .
    with thanks & regards
    Abhiith
    http://abhisite.tk

  2. #2
    Member
    Join Date
    Aug 2005
    Posts
    13

    Default

    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. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Quote Originally Posted by abhijith
    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 .
    Please dont' cross-post on the forums.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Block Outgoing attachments !!!
    By furquan in forum E-mail Discussions
    Replies: 0
    Last Post: 02-20-2010, 01:20 AM
  2. I want to block a certain outgoing
    By bignose in forum E-mail Discussions
    Replies: 2
    Last Post: 09-15-2009, 08:06 AM
  3. Block port 25 outgoing but let Exim still connect ?
    By driverC in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-15-2009, 09:17 AM
  4. Block mails to AOL [moved]
    By abhijith in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-01-2006, 02:43 AM
  5. Mail being blocked from AOL
    By drumhtd in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-13-2005, 05:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube