Conditions & Exceptions

SMTP rules use the conditions and exceptions below, on their Conditions and Exceptions tabs. Each stage is offered only what is known at that point of the SMTP conversation:
| Condition | Offered from |
|---|---|
| All messages, Client address, Client host name, Received through | Connect |
| HELO name | HELO |
| Authenticated user, Sender, Empty sender, Sender in address list | Sender |
| Recipient, Recipient in address list, Message direction | Recipient |
| Number of recipients | Data |
A condition offered at a stage is offered at every later stage too. The Limit rules are offered the same conditions as Data.
Both conditions and exceptions use the same set of rules. Exceptions are simply the logical opposite of conditions.
- When an exception is met, the action will not be performed on the message.
- When a condition is met, the action will be performed on the message.
The application first checks for exceptions. If no exceptions are met, it then evaluates the conditions. If the conditions are met, the action is executed on the message.
A value the mail server did not send never matches, and the processing trace names it, see What SMTP rules need from the mail server.
At Data and in the Limit rules, the recipient conditions and Message direction are matched against all the recipients of the message.
Message
All messages
Matches every connection, sender or recipient the stage is asked about.
See All messages condition.
Message direction
Matches by direction: incoming, outgoing or internal.
See Message direction condition.
Sender
Sender
Matches the envelope sender by email address, user, group or domain.
See Message sender condition.
Empty sender
Matches the empty sender (<>) of bounces, delivery notifications and read receipts.
See Empty sender condition.
Sender in address list
Matches a sender on one of the chosen address lists.
See Sender in address list condition.
Recipients
Recipient
Matches a recipient by email address, user, group or domain.
See Message recipient condition.
Recipient in address list
Matches a recipient on one of the chosen address lists.
See Recipient in address list condition.
Number of recipients
Matches by how many recipients the mail server accepted.
See Number of recipients condition.
Connection
Client address
Matches the IP address the client connects from, by address, network or address list.
See Client address condition.
Client host name
Matches the host name of the client address, or a client without one.
See Client host name condition.
Received through
Matches how the client came in: incoming on port 25, submission, webmail from a mailbox server, or another port.
See Received through condition.
HELO name
Matches the name the client gave in HELO or EHLO.
See HELO name condition.
Authenticated user
Matches whether the sender logged in, and with which account.
See Authenticated user condition.