The command internal() refers to emails from Managed domains to Managed domains.
This command checks whether an email originating from a Managed domain is addressed to a Managed domain. If not all recipients of the email are exclusively from a Managed domain, two groups are formed.
Structure of the command
internal();
Return value
positive |
for emails of a sender from a Managed domain to recipients in Managed domains. |
negative |
for the group of recipients the communication with whom is not purely internal, i.e. (sender or recipient) or (sender and recipient) who do not originate from any Managed domains. |
Parameters
none
Example 1
Line |
Code |
---|---|
01 |
if (internal()) { |
02 |
# Ruleset statements for emails which originate from a Managed domain and which are to be sent to a Managed domain. |
03 |
# instruction block 1 - Return value: positive |
04 |
} else { |
05 |
# Ruleset statements for all emails that are not delivered from a Managed domain and/or are not to be delivered to a Managed domain. |
06 |
# instruction block 2 - Return value: negative |
07 |
} |
Explanation
In this example, an email originating from a Managed domain, to the addressees of a Managed domain will cause instruction block 1 (lines 02, 03) to be implemented. For addressees of a foreign domain and/or if the sender is from a foreign domain, instruction block 2 (lines 05, 06) is executed.