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