Skip to content

Most people think about email security as a wall around the inbox. The other direction gets less attention: what leaves your domain. Yet outgoing mail is where a single compromised account can quietly do the most lasting damage, by sending spam or malware under your name, getting your server listed as a source of abuse, and making your legitimate messages land in junk folders around the world. Outgoing email filtering is the layer that watches that direction.

This article explains what outgoing filtering does, how mail is routed through it, what it can and cannot catch, and how to put it in place. We describe the idea in general terms. Details differ by service and plan, so check the product page for what a particular plan offers.

Why outgoing mail needs attention

Your domain has a reputation, built from the behaviour of every server that sends mail in its name. Receiving systems remember it. When the reputation is good, your messages arrive. When it is poor, they are delayed, sent to junk or refused outright. A few situations can damage it without anyone intending to.

  • A compromised mailbox. An attacker who steals a password can use the account to send phishing or spam to the account's whole address book, and to anyone else. The messages come from a real, authenticated account, so receivers have little reason to doubt them.
  • An infected computer. Malware on a workstation can send mail through the user's own mail settings.
  • A misused web form or script. A contact form or an old script on your website can be exploited to send mail to arbitrary addresses.
  • A forgotten device. A printer or scanner that emails documents may be configured loosely and be abused.
  • A careless bulk send. A legitimate newsletter sent to an out-of-date list can trigger complaints and blocklisting.

In all of these cases the person responsible may not know anything has happened until a customer calls to say "I received something strange from you", or until your own mail begins to bounce.

What outgoing filtering looks at

An outgoing filter examines messages as they leave and applies checks that mirror those on incoming mail, plus some that are specific to outbound traffic.

Check What it is looking for
Volume and rate A sudden burst of messages, or an account sending far more than usual
Recipient patterns Mail to thousands of unrelated addresses in a short time
Content Spam-like text, known phishing wording, links to known bad destinations
Attachments Known malicious files or risky file types leaving the network
Sender identity A message whose From address is not one the account should use
Authentication Whether the message will pass SPF, DKIM and DMARC at the destination

The aim is not to read every sentence your staff write. It is to detect behaviour that does not look like normal business mail and to act before the harm spreads. Many services let an administrator set limits, such as the maximum number of messages or recipients per account in a given period, so that abnormal behaviour is slowed or stopped by default.

How mail is routed through an outgoing filter

Incoming filtering changes your MX records. Outgoing filtering works differently, because the sending side is controlled by your mail server settings rather than public DNS. In a common arrangement:

  1. Your mail server, or each user's mail app, is configured to send outbound mail to the filtering service instead of directly to the internet. This is often called using a smart host or relay.
  2. The filtering service receives the message over SMTP (see RFC 5321), after checking that the sender is one of your authorised accounts or servers.
  3. It applies its checks and either delivers the message to the destination, holds it for review or rejects it.
  4. Your SPF record is updated to authorise the filtering service as a legitimate sender for your domain, so that receivers see consistent results (RFC 7208).
  5. If the service signs outgoing mail with DKIM, you publish the matching public key in DNS (RFC 6376).

Because the filter sees all outbound mail, it can also notify an administrator when something unusual happens, such as a mailbox suddenly sending to hundreds of new recipients.

A worked example

Take a ten-person logistics firm. One afternoon, a dispatcher's password is stolen through a convincing fake sign-in page. The attacker logs in from another country and starts sending messages with a link to a fake shipping notice to everyone in the dispatcher's address book and to thousands of other addresses.

Without outgoing filtering, those messages leave unchecked. Customers receive them from a genuine firm address and some click. Receiving providers see the sudden volume and may start rejecting or junking mail from the firm's domain, including real invoices and delivery confirmations. The firm learns about it from an angry customer the next morning, and spends days cleaning up and asking to be removed from blocklists.

With outgoing filtering, the picture changes. The service sees an account that normally sends a few dozen messages a day suddenly attempting hundreds in a few minutes, with content that matches known phishing patterns. It holds the messages and alerts the administrator. The administrator disables the account, resets the password, turns on multi-factor sign-in, reviews the quarantined messages and confirms none left. The reputation damage is small and short.

No tool makes such an incident impossible. The value is in reducing how far it spreads and how long it lasts. The article on stopping phishing email before the inbox covers the steps that reduce the chance of the password being stolen in the first place.

Setting it up

If you decide to add outgoing filtering, follow a careful order.

  1. List every system that sends mail for your domain. Staff mail apps, the website, accounting and invoicing tools, CRM systems, printers, scanners and newsletter services.
  2. Decide which of these should go through the filter. Third-party services that send on your behalf often have their own authenticated route and should be handled in line with their documentation.
  3. Configure the relay. Point your mail server or users at the filtering service as the outbound smart host, with the credentials or address restrictions the provider requires.
  4. Update SPF. Add the provider's authorised sending range to your SPF record, remembering that SPF has a limit on DNS lookups and that too many includes will break it.
  5. Publish DKIM if the service signs mail, and confirm that signatures validate.
  6. Check DMARC reports. After a few days, confirm that legitimate sources pass and nothing unexpected appears.
  7. Set sensible limits. Choose a per-account rate that covers normal days with some room, and decide who is alerted when it is exceeded.
  8. Decide what happens to held mail. Name an administrator who reviews it quickly, because a legitimate message that waits all day is a real cost.
  9. Test with messages sent from several accounts and devices, and send to outside addresses on different providers.

Many companies set up outgoing filtering together with incoming filtering so that policy is consistent. The companion article on what incoming email filtering is describes the other half. If you also need to keep a record of mail that has been sent, see what email archiving is and who needs it. For services you can compare, visit the Email Security page and the business email page.

What to do when an alert arrives

An alert from an outgoing filter is only useful if someone knows what to do with it. Agree a short routine before you need it.

  1. Look at the account and the time. Does the activity match the person's working hours and normal behaviour?
  2. Check the held messages. Are they ordinary business messages caught by a strict limit, or do they look like the same text sent to many unrelated recipients?
  3. Contact the user through another channel. A phone call or a message in person is better than an email from the same account.
  4. If compromise is likely, act first and investigate after. Disable the sign-in, reset the password, end active sessions and remove any forwarding rules or unknown connected apps.
  5. Release or delete the held mail. Release genuine messages and delete the rest, noting the reason.
  6. Tell the people who may have been affected if any message did leave before the filter acted, so they know to ignore it.
  7. Record what happened and adjust limits or training if the incident revealed a gap.

A calm, rehearsed routine turns an alarming alert into a short task. Without one, the first minutes of an incident are spent deciding who is responsible, which is exactly the time an attacker uses.

Good habits that support filtering

Filtering reduces the damage of a compromise, but it works best when combined with simple habits.

  • Use unique passwords and multi-factor sign-in on every mailbox, starting with accounts that send the most mail.
  • Review forwarding rules and connected apps after any suspected incident. Attackers often add rules to hide their activity.
  • Close unused accounts promptly when someone leaves, because dormant accounts are easy targets.
  • Limit who can send as a shared address, such as accounts or sales, and log who has access.
  • Keep devices updated so malware has fewer opportunities to send mail from a workstation.
  • Tell staff what normal looks like. A short note explaining that business email is scanned for spam and malware, and why, avoids surprises and builds trust.

Limits and what to watch for

  • It is not data-loss prevention. Outgoing spam and malware filters look for abuse patterns, not for every confidential document leaving by mistake. If you need to control specific data types, check whether a service offers that separately.
  • False positives are possible. A genuine campaign, a legitimate bulk send or a staff member working through a long contact list may trip a rule. Plan a quick way to release held messages.
  • SPF has a lookup limit. Adding several services to SPF can exceed the allowed number of DNS lookups and cause failures. Review the record after each addition.
  • Not every sender goes through the filter. Websites, third-party tools and devices may send directly. Make sure you know which routes bypass the filter, and secure them in other ways.
  • Encrypted content cannot be read. Content that is encrypted end to end cannot be scanned for text, so rate limits and sender controls matter more.
  • Delays can occur. Held messages wait for review. Decide in advance how urgent messages are handled.
  • Review the privacy terms. Outgoing filtering processes message content. Understand how long data is kept and who can see it, and tell staff.
  • Check the plan details. Whether outgoing filtering is included, and any limits on volume, depend on the plan. Read the product page rather than assuming.

Summary

Outgoing email filtering watches mail leaving your domain, so a compromised account, an infected computer or a misused form cannot quietly send spam or malware in your name. Mail is routed through the filtering service as a relay, which checks volume, recipients, content and attachments, and then delivers, holds or rejects the message. Setting it up means listing every sending system, configuring the relay, updating SPF, publishing DKIM where needed, setting sensible limits and naming someone to review held mail. It does not replace strong passwords, multi-factor sign-in or careful staff, and it is not a full data-loss solution. Together with incoming filtering it protects both what arrives and what leaves. To see what is available for your mailboxes, visit the Email Security page.

Frequently asked questions

Why would I filter mail that my own staff send?

Because a compromised account, an infected computer or a misused form can send spam or malware in your name without anyone noticing. Outgoing filtering spots unusual volume and content, holds it and warns an administrator before your domain's reputation suffers.

Does outgoing filtering read my staff's private messages?

Filtering scans messages automatically for spam and malware signals. As with incoming filtering, the service has to process message content to do that. Read the provider's terms to understand how content is handled and stored, and tell your staff that business email is scanned.

Will outgoing filtering slow down sending?

Normally the added delay is small. Messages that trigger a rule, such as a sudden burst of sending, may be held for review, which is the intended behaviour.

Do I need to change SPF when I send through a filtering service?

Often yes. If outgoing mail leaves through the filtering service, that service becomes a sender for your domain, so your SPF record should authorise it. Follow the provider's instructions and test after the change.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Protect your email and stop spoofing

Spam filtering and DMARC monitoring for your domain.

See email security

Keep reading

Business Email Guides

What Is Incoming Email Filtering?

Incoming email filtering inspects every message sent to your domain before delivery. Learn the stages, the possible outcomes and how to run it without losing good mail.

9 min read

Business Email Guides

Email Archiving Explained: Which Businesses Need It

Email archiving keeps a searchable, protected copy of business messages for the long term. See how it differs from backup, which businesses need it, and what to plan first.

10 min read

Business Email Guides

How to Stop Phishing Email Before It Reaches the Inbox

Phishing works because one message reaches one tired person. Learn how layered filtering, sender authentication and a few simple rules cut the risk before the inbox.

10 min read