Hi I am trying to setup Postfix build-in content inspection, but I am a beginner in regular expression and have trouble.
What I need to do is to check if the sender send an email with attachment, he should Cc to his boss.
main.cf:
header_checks = pcre:/etc/postfix/mime_header_checks
mime_header_checks = pcre:/etc/postfix/mime_header_checks
mime_header_checks:
/^From:
my@abc.com|^Cc: [^boss@abc.com]|name=[^>]*\./ REJECT Please Cc to your supervisor.
But I can't get the desire result,
my@abc.com can send message without attachment;
my@abc.com will got reject if he send a attachment email if he does not Cc to
boss@abc.com; but
my@abc.com still not able to send the email if he Cc to
boss@abc.com
Any help would be appreciate.
Thanks.
Fred