- Monitoring: xorlab is located out-of-band of the mail flow and is only used to monitor the traffic (it cannot intervene in your mail flow). Usually, it receives the email traffic as an additional BCC recipient and the copies are dropped after processing. This mode allows email traffic monitoring with low impact on the infrastructure. Detection and the configured actions still run in full, so emails do get the
QUARANTINEDdecision — see Decisions and quarantine in Monitoring mode. - 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 Set Up Email Routing in xorlab for on-premises or Microsoft 365.
- 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
For Monitoring mode, we recommend to generally disable delivery status notifications. This includes bounce emails. This will make sure that xorlab 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.
Decisions and quarantine in Monitoring mode
Detection and the Actions configuration screen apply exactly as they do in Inline mode:- An email whose verdict and confidence lead to a quarantine action gets the
QUARANTINEDdecision, and its copy is kept in the matching quarantine instead of being dropped. Search forstatus:quarantinedto list them. - Every other email is dropped after processing.
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 Set Up Email Routing in xorlab for on-premises or Microsoft 365.
- Click Publish. The inline mode configuration becomes active within about one minute.