asked on
/etc/cpanel_exim_system_filter_new
# Filters all incoming an outgoing mail logfile /var/log/filter.log 0644
# reject spam based on email body
# logfile /var/log/filter.log 0644
if
$message_body contains "Good Day" or
$message_body contains "Hello PayPal" or
$message_body contains "Dear valued PayPal" or
$message_body contains "forward to your positive reply"
then
fail text "This message has been rejected because it looks like you are spamming us."
endif
if
$header_from contains "rezult" or
$header_from contains "secret"
then
fail text "Your email has been rejected because it looks like you are spamming us."
endif
ASKER
Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.
TRUSTED BY
ASKER
The below code now works except for the logwrite, how do I make sure make sure that the exim user is the owner of the file.
Do I specify the logfile /var/log/filter.log 0644 at the top of the code or do I have to code it just above every logwrite command?
Open in new window