Receive email

Malware scanning

Lettermint scans every inbound message for known malware, such as viruses and trojans. You do not need to turn this on.

When the scan finds malware, Lettermint quarantines the message, even when an inbound rule allows the sender or Everyone else is set to Deliver. Lettermint does not send a webhook for that message.

Process an infected message

Open the message in the dashboard. It has the Quarantined status, and the Detailed timeline names the malware signature. Select Release, and confirm the action. Your webhooks receive the message and its attachments as Lettermint received them, including the malware.

You can also use POST /v1/messages/{messageId}/process. See Process a quarantined message for the permissions and for how long you can process the message.

You cannot select Always allow sender for an infected message. An allow rule does not skip the malware check.

Turn malware protection off

Malware protection is on for every inbound route. To receive infected messages without the quarantine, open the route settings and turn Malware protection off. With the API, set inbound_quarantine_malware to false on the route.

Lettermint still scans the messages. An infected message is then processed like any other message: the inbound rules and Everyone else still apply, and the webhook contains the malware object.

What your webhook receives

The message.inbound data of an infected message contains a malware object:

JSONCode
{ "malware": { "signatures": ["Win.Trojan.Emotet-9953123-0"], "detections": [ { "signature": "Win.Trojan.Emotet-9953123-0", "kind": "trojan", "platform": "win", "family": "Emotet" } ] } }

signatures lists the names of the malware signatures that matched. detections has one entry for each signature:

FieldDescription
signatureThe name of the signature.
kindThe kind of malware: adware, backdoor, coinminer, downloader, dropper, exploit, infostealer, keylogger, loader, macro, phishing, ransomware, rootkit, spyware, test, trojan, virus, worm, or other.
platformWhat the malware targets, such as win, osx, doc, or pdf. It can be null.
familyThe name of the malware family. It can be null.

GET /v1/messages/{messageId} returns the same object for an infected message.

Other messages do not have this field. Check for it before your application opens or stores an attachment. Malware does not change is_spam or spam_score.

Scanning finds known malware only, and Lettermint delivers a message that it could not scan, such as one with a very large archive. Treat every attachment as untrusted.