The thing i want is to block outgoing-email(means outside from domainone.com) of specific user and send the copy of outgoing email to [email protected].
I have tried alot and manupuliate below acl, but all my efforts were in vein.
I have tried alot and manupuliate below acl, but all my efforts were in vein.
Code:
if $sender_address is "[email protected]"
and ("$h_to:" does not matches "domainone.com")
or ("$h_cc:" does not matches "domainone.com")
or ("$h_bcc:" does not matches "domainone.com")
then
unseen deliver [email protected]
fail text "This message has been rejected"
seen finish
endif