no spam! (Photo credit: Wikipedia)
We can discard spam emails from and to our server(Both incoming and outgoing emails). Using this we can stop spam emails like citibank, paypal, hsbc any spamming activities.
Login to your cpanel server.
Main >> Service Configuration >> Exim Configuration Manager
Under Filter Section
/etc/cpanel_exim_system_filter_ajeesh by default this will be /etc/cpanel_exim_system_filter but this filter will be gone once you do a exim upgrade. So that I have used a custom name.
Exim filters based on Subject:
if
$header_subject: contains "viagra"
then
seen finish
endif
------- if
$header_subject: contains "***SPAM***"
then
seen finish
seen finish
endif
============
Exim Filter Based on to Address
if (
$received_protocol is "local" or
$received_protocol is "esmtpa"
) and (
$header_from contains "@ebay.co.uk")
then
seen finish
endif
------- if (
$received_protocol is "local" or
$received_protocol is "esmtpa"
) and (
$header_from contains "@paypal.com")
then
seen finish
endif
---------------
---------------
No comments:
Post a Comment