Hi,
Need help in below condition.
if
$header_from: contains "[email protected]"
or $header_from: contains "[email protected]"
then
if ("$h_to:, $h_cc:, $h_bcc:" contains "@client.pw")
or ("$h_to:, $h_cc:, $h_bcc:" contains "[email protected]")
or ("$h_to:, $h_cc:, $h_bcc:" contains "[email protected]")
then
finish
else
if error_message then save "/dev/null" 660 else fail "Messages from this domain or email are blocked." endif
endif
endif
the idea is my domain is dot.com and we want 2 users from this domain dot.com (harish and ravish) should be able to communicate and can send and receive emails to client.pw
example. [email protected]
can send email to [email protected] or anyemail of @client.pw
can receive email from [email protected] or anyemail of @client.pw
can not send email to any body else like [email protected], [email protected]
can no receive email from any body else like [email protected], [email protected]
which is working fine from above script when we enter one email is to or cc, issues come when we enter 2 emails in 2, one is authorized and one is un-authorized
[email protected], [email protected]
its also getting passed because we are checking contains [email protected] and thats making cndition true , we want if anyting else come aparts from [email protected], [email protected] and @client.pw this should be false.
Need help in below condition.
if
$header_from: contains "[email protected]"
or $header_from: contains "[email protected]"
then
if ("$h_to:, $h_cc:, $h_bcc:" contains "@client.pw")
or ("$h_to:, $h_cc:, $h_bcc:" contains "[email protected]")
or ("$h_to:, $h_cc:, $h_bcc:" contains "[email protected]")
then
finish
else
if error_message then save "/dev/null" 660 else fail "Messages from this domain or email are blocked." endif
endif
endif
the idea is my domain is dot.com and we want 2 users from this domain dot.com (harish and ravish) should be able to communicate and can send and receive emails to client.pw
example. [email protected]
can send email to [email protected] or anyemail of @client.pw
can receive email from [email protected] or anyemail of @client.pw
can not send email to any body else like [email protected], [email protected]
can no receive email from any body else like [email protected], [email protected]
which is working fine from above script when we enter one email is to or cc, issues come when we enter 2 emails in 2, one is authorized and one is un-authorized
[email protected], [email protected]
its also getting passed because we are checking contains [email protected] and thats making cndition true , we want if anyting else come aparts from [email protected], [email protected] and @client.pw this should be false.
Last edited by a moderator: