filter bcc catch all
Hi People :)
i wish make a script who catch all incoming and outgoing email who have any bcc:
FOR EXAMPLE CASE:
a user sent a normal email: the server don't resent the email
a user sent a normal email but with a bcc: in this case the server resent the email
a user have an incoming email with bcc: in this case the server resent the email
a user have an incoming email without bcc: in this case the server don't resent the email
THE CODE:
#Resent incoming email who have BCC
if $h_to: contains "mydomain.com" and $h_bcc contains "mydomain.com"
then
unseen deliver "resent@mydomain.com"
endif
#Resent outgoing email who have BCC
if $h_from: contains "mydomain.com" and $h_bcc contains "."
then
unseen deliver "resent@mydomain.com"
endif
THE PROBLEM:
dont work but the exim_mainlog dont have any error.
which may be the problem?
THANKS A LOT
-
Hi Infopro thanks, i read that But may be the error is in the syntaxis in the operator "and" which may be the problem? 0 -
i wish make a script who catch all incoming and outgoing email who have any bcc:
Hello :) Could you elaborate on how you have developed this script? For instance, are you creating filter rules in cPanel? Thank you.0 -
As far as I know, Exim does not support BCC filtering. I've done multiple filters for exim and BCC never worked. 0
Please sign in to leave a comment.
Comments
4 comments