Artica Wiki

Rule actions: allow, log, reject, copy, tag and backup

The core Artica Milter rule actions: allow, log, discard, reject (with optional firewalling), blind carbon copy, subject tagging and backup — with use cases for each.

Every Artica Milter rule carries an action — what happens to a message once all the rule's objects match. 
This page describes the core actions: allow, log, discard, reject (with or without firewalling), blind carbon copy, subject tagging and backup. 

The advanced actions have their own pages: DKIM, ARC, Greylisting and DLP.

How rules are evaluated

  1. Rules are processed in order. 
  2. Some actions are terminal (they stop the evaluation), others modify the message or record information and continue with the next rule. 
  3. If no rule decides, the message is accepted by default and handed to the mail transfer process.
Action Stops evaluation? Effect on the message
Allow connections yes Accepted immediately — a whitelist against all following rules
Information no Writes a log record, message continues
Discard yes Silently dropped (the sender believes it was delivered)
Reject (notify) yes Refused with an SMTP error returned to the sender
Reject and Firewall yes Refused and the sending IP is temporarily blocked in the firewall
Blind carbon copy no A copy is sent to the configured recipient, message continues
Prepend no The subject is tagged with the configured text, message continues
Backup messages no A full copy is archived in PostgreSQL, message continues

Choose a rule's action when you create it:

milter-new-rule-types.png

Each rule then appears in the list with a colored badge showing its action:

milter-rules-list.png

A rule only evaluates once at least one object is linked to it (the list shows "Please, specify at least one object" until then). Use the All object to match every message.

Allow connections (whitelist)

Accept the message immediately: none of the following rules are evaluated.

milter-settings-allow.png

Use cases

Information (log only)

Write an info: record with your text into the mail log, then keep processing the rules. The rule's settings expose the text to log:

milter-settings-info.png

Use cases

Discard (silent drop)

Claim successful delivery to the sender, then silently drop the message. The sender receives no error.

Use cases

Prefer Reject when the sender is legitimate: with Discard, a real correspondent has no way to know the message was lost.

Reject (notify)

Refuse the message: the SMTP transaction ends with a permanent error and the sender's server generates a non-delivery report. An optional text customizes the SMTP reply.

milter-settings-reject.png

Use cases

Reject (notify) and Firewall Rules

Same as Reject, but the sending IP address is also temporarily registered in the firewall, cutting any further connection from that source for the configured period.

milter-settings-reject-firewall.png

Use cases

Blind carbon copy (BCC)

Send one copy of the message to the configured recipient, then continue processing. The original recipients see nothing.

milter-settings-bcc.png

Use cases

If several BCC rules match the same SMTP transaction, only the last one applies.

Prepend (tag the subject)

Prepend the configured text to the message, then continue processing — typically used to tag the subject of external or suspicious messages.

milter-settings-prepend.png

Use cases

Backup messages

Store a complete copy of the message (compressed, in PostgreSQL) for later searching, downloading and resending, then continue processing.

milter-settings-backup.png

Use cases

Combining actions

Non-terminal actions stack naturally along the rule order. A typical layered policy:

  1. Allow — trusted partners (exempt from everything below)
  2. Prepend [EXTERNAL] — every message from the Internet
  3. BCC — copy the sales flow to a compliance mailbox
  4. Backup — archive messages to the finance department
  5. Reject — forbidden senders and attachment types
  6. Default — everything else is delivered