- Monitoring: xorlab is located out-of-band of the mail flow and is only used to monitor the traffic (it cannot actively intervene). Usually, it receives the email traffic as an additional BCC recipient and all emails are dropped after processing. This mode allows email traffic Monitoring with low impact on the infrastructure.
- Inline: xorlab is inline in the mail flow and actively filters emails. This mode is configured whenever xorlab is used for inbound email security. Emails are forwarded after they have been processed.
Monitoring mode
The following changes are necessary to run xorlab in Monitoring mode:-
Open Expert Editor and navigate to the
activeguard/core/active_guard.ymlfile. -
Under the relevant SMTP handler, set
senderRecipientExtraction.recipientExtraction: MAIL_HEADERandsenderRecipientExtraction.senderExtraction: HEADER:active_guard.yml - Set up SMTP routing for Monitoring mode: see Configure for on-premises or Configure for M365.
- Disable delivery status notifications.
- Click Publish. The monitoring mode configuration becomes active within about one minute.
handler block as it is set to smtpOffline {} by default:
active_guard.yml
Sender and recipient extraction
In Monitoring mode, emails are often forwarded as copies (BCC) to xorlab. In this case, it is possible that the SMTP envelopeFROM and recipient information have been overwritten as a part of the BCC forward.
The envelope FROM might be something like MAILER-DAEMON@gateway.internal and the envelope recipient is xorlab itself like, for example, emails@xorlab.internal when the email arrives at xorlab. Therefore, you need to configure xorlab to get the envelope FROM and recipients from the correct location:
active_guard.yml
Wrong configurationThe usual symptom of a wrong envelope
FROM configuration is a missing or wrong envelope FROM shown in the detail view of an email in XCC. Consequently, xorlab cannot do various checks like, for example, SPF verification.senderRecipientExtraction.senderExtraction:
The following values are supported for
senderRecipientExtraction.recipientExtraction:
For reported email handlers,
senderRecipientExtraction.reporterExtraction controls how the sender of the report itself is extracted. Supported values are MAIL_ENVELOPE and FROM_HEADER.
You can also provide the original envelope FROM through specific headers by matching them with senderHeaderNamePattern:
active_guard.yml
senderHeaderNamePattern:
active_guard.yml
Disable delivery status notifications (e.g., bounce messages)
For Monitoring mode, we recommend to generally disable delivery status notifications. This will make sure that xorlab Security Platform will never send delivery status notifications back to the sender when being in Monitoring mode.- Open the Expert Editor and navigate to the
activeguard/mta/startup_cfg/postfix_custom/master.cffile. - Find the three lines starting with
bounce unix,defer unix, andtrace unix, and set the last word on all three lines todiscard: - Open the
activeguard/mta/startup_cfg/postfix_custom/main.cffile and comment out (e.g., using the Ctrl+/ or Cmd+/ keyboard shortcut) thedelay_warning_timeproperty (if you have multiplemain.cffiles, do it in each of them): - Disable Delivery Status Notification (DSN) for bcc deployments in each
main.cffile. - Click Publish. The new Postfix settings become active within about one minute.
Inline mode
In Inline mode, xorlab Security Platform is part of the email traffic and forwards emails accordingly. In order to activate it:- Open Expert Editor and navigate to the
activeguard/core/active_guard.ymlfile. - Under the relevant SMTP handler, set
smtpInline: {}instead ofsmtpOffline.senderExtractionandrecipientExtractioncan be omitted as they default toMAIL_ENVELOPE:active_guard.yml - Make sure that bounce messages are enabled in
activeguard/mta/startup_cfg/postfix_custom/master.cf: - Activate delivery delay notifications in
activeguard/mta/startup_cfg/postfix_custom/main.cf: - Set up SMTP routing for Inline mode: see Configure for on-premises or Configure for M365.
- Click Publish. The inline mode configuration becomes active within about one minute.