With the MX Gateway, email for your domain reaches the SPFBL.net MX servers first. Messages are filtered there, and only the approved ones go on to the domain hosting server.
How it works
The sender delivers the message to one of the SPFBL.net MX servers, which applies the SPFBL filters. An approved message is passed on to one of the destination servers you registered. The hosting server still keeps the mailboxes; only the way in changes: the SPFBL.net MX servers become the edge of your email network.
Step by step
- Add the domain on the MX Gateway screen, with the destination servers. Each server is tested right away.
- Publish the TXT record shown on the domain card, in the domain DNS.
- Wait for verification. It runs automatically every 15 minutes for up to 7 days. The Verify now button checks immediately. Once the TXT matches, the domain becomes Active and you get an email.
- Allow the SPFBL.net MX IPs on the destination server, as explained in Allow the SPFBL.net MX. The IPs are on the MX Gateway screen.
- Replace the MX records of the domain with the two at the top of the screen: priority 10 for
mx-br.spfbl.netand priority 20 formx-us.spfbl.net. Delete every other MX.
Why wait: until then, our MX servers are not ready to receive the domain messages yet and refuse them. If the MX is changed earlier, senders start delivering to our servers and important messages may be lost in that interval.
Only the SPFBL.net MX
Destination servers
- Use the hosting server name (
mail.company.com) or its IP, in IPv4 or IPv6. - The allowed ports are 25 and 2525. For another port, contact the system administrator.
- Register more than one server for redundancy: if the first one does not answer, delivery tries the next.
- In the test, the server must accept a message to the domain
postmaster@. Any refusal blocks the registration, including temporary (4xx) replies like "Relay access denied"; only greylisting is accepted. - Private or reserved IPs, names pointing to them and the SPFBL.net servers themselves are not accepted.
Changing servers
When you change the destination server (for example, when moving to another hosting), keep the domain hosted on the old server as well for at least one hour. Our MX servers take a few minutes to receive the change and, in that interval, some messages may still be delivered to the old server. After that, remove the domain from the old server and move the messages that arrived there to the new server, so that nothing is lost.
Allow the SPFBL.net MX on the destination server
With the MX Gateway, the SPFBL.net MX servers are the edge of your email network: filtering has already happened there. The destination server must accept without restriction everything they relay, with no blocklists, no SPF, no greylisting and no rate limit for these IPs. This cuts relay delay and prevents lost mail: a message your server refuses after SPFBL approved it goes back to the sender or is lost.
Use the IPs shown on the MX Gateway screen, under SPFBL.net MX IPs. In the examples below they appear as 192.0.2.10, 192.0.2.20 and 2001:db8::10; replace them with the real IPs.
Postfix
Just add the IPs to the mynetworks list, keeping what is already there:
postconf mynetworks postconf -e "mynetworks = <current value> 192.0.2.10/32 192.0.2.20/32 [2001:db8::10]/128" postfix reload
permit_mynetworks must come before the reject rules in smtpd_client_restrictions, smtpd_helo_restrictions, smtpd_sender_restrictions and smtpd_recipient_restrictions, as in the Postfix default. If the server uses Amavis, SpamAssassin or Rspamd, add the same IPs to the filter's trusted networks.
Zimbra (Postfix)
In the Admin Console, add the IPs to the server's MTA Trusted Networks field. From the command line, as the zimbra user, keeping the current value:
zmprov gs $(zmhostname) zimbraMtaMyNetworks zmprov ms $(zmhostname) zimbraMtaMyNetworks '<current value> 192.0.2.10/32 192.0.2.20/32 [2001:db8::10]/128' zmmtactl reload
Plesk (Postfix)
In Tools & Settings > Mail Server Settings, White List tab, use Add Network for each IP.
cPanel/WHM (Exim)
- In WHM, under Service Configuration > Exim Configuration Manager, Basic Editor tab, Access Lists section, edit Backup MX hosts and add the IPs, one per line. On cPanel, this list plays the role of Postfix's
mynetworks. - After changing the MX, open the domain's cPanel, Email > Email Routing, and choose Local Mail Exchanger.
DirectAdmin (Exim)
Add the IPs, one per line, to /etc/virtual/whitelist_hosts_ip. If Easy Spam Fighter is active, also add them to /etc/virtual/esf_skip_hosts. Then restart Exim: systemctl restart exim.
Other Exim servers
Create a list with the IPs and accept these hosts at the start of the RCPT ACL, for local domains only, before any check. The list uses <; to change the separator, because of IPv6:
hostlist spfbl_mx = <; 192.0.2.10 ; 192.0.2.20 ; 2001:db8::10
acl_check_rcpt:
accept hosts = +spfbl_mx
domains = +local_domains
# ... existing rules ...
If there is a DATA ACL with antispam, make accept hosts = +spfbl_mx its first rule as well. On Debian and Ubuntu with the split configuration, the ACLs live in /etc/exim4/conf.d/acl/; after editing, run update-exim4.conf and systemctl restart exim4.
TXT record
The TXT proves that you control the domain DNS. It lives at _spfbl.<domain>, with the value spfbl-verify=<code>. The code is unique to your account and the domain; copy both from the domain card.
Keep the TXT published while the domain uses the MX Gateway.
States
| State | What it means |
|---|---|
| Awaiting verification | The request was made, but the TXT has not matched yet. The request is removed after 7 days without verification. |
| Active | The TXT matched and the SPFBL.net MX servers deliver the domain messages. |
| Suspended | The TXT was missing in 7 checks in a row, or a destination server started pointing to a refused address. The MX servers stop delivering the domain messages. |
| Administrator | Registered by the system administrator. It does not depend on the TXT and cannot be changed in the panel until taken over (see below). |
Domain registered by the administrator
A domain in the Administrator state can only be removed in the panel. To change its servers, take it over: publish the TXT record shown on the card, wait for DNS propagation and click Verify now. Once the TXT matches, the domain becomes Active, with no downtime, and editable under the same rules as any domain: daily TXT check and ports 25 or 2525.
Daily check
Once a day, SPFBL checks the TXT of every active domain. If it is not found, you get an email with the attempt number (for example, "2 of 7"). On the seventh attempt in a row, the domain is suspended. Temporary DNS failures do not count.
In the same check, SPFBL reviews the domain MX records. If one of the two SPFBL.net MX is missing, if the priorities are inverted (mx-br.spfbl.net must have the lower number) or if there is any other MX, you get an email every day until it is fixed, and the domain card shows the problem. The domain stays active.
To reactivate a suspended domain, publish the TXT again and use Verify now. If the suspension was caused by the destination server, change the server.
Domain in another account
A domain has a single owner. If you add a domain that is already in another account, the request waits for verification. When your TXT matches, the newest record wins: the domain moves to your account and the other account gets an email notice.
So whoever controls the domain DNS controls its forwarding. If you get a transfer notice you do not recognize, check who has access to the DNS.
Security
- Changing the servers or removing an active domain needs the authenticator code (TOTP). Turn on the authenticator in the account settings.
- Every server change of an active domain sends a notice email.
- The MX Gateway is managed only through the panel; there is no API for it.