Block Script Emails
I want to blocked script emails for specific users, currently i have define acls in exim filter is it a proper way to blocked outgoing script emails ?
logfile /var/log/filter.log 0644
if
($received_protocol is "local"
or $received_protocol is "smtp"
or $received_protocol is "smtps"
or $received_protocol is "esmtp"
or $received_protocol is "esmtpa"
or $received_protocol is "esmtps"
or $received_protocol is "esmtpsa")
and ("$h_to:, $h_cc:" contains "Username")
or ("$h_from:" contains "Username")
then
logwrite "$tod_full $message_id from $sender_address contained Username (Cpanel User) keywords"
seen finish
endif
-
Hello, Yes, you can disable scripts mail for any user by disabling phpmail function for that user. 0 -
Hello :) The filter rules will block incoming email. Have you considered simply disabling the PHP mail function for the accounts in question? Thank you. 0 -
How disable php mail() to send an E-mail to stop spaming from server for single domain ? 0
Please sign in to leave a comment.
Comments
4 comments