Layers of spam defence along one SMTP conversation: cheap checks first

Layers of spam defence along one SMTP conversation: cheap checks first A workflow diagram generated by Archify. 01 / What is checked 02 / The conversation EX / If it fails Before the message: cheap After the message: costly The user Blocklists, rDNS · early talkers, limits · What is checked › Before the message: cheap Blocklists, rDNS early talkers, limits SPF · MAIL FROM and HELO · What is checked › Before the message: cheap SPF MAIL FROM and HELO Recipient exists? · greylisting · What is checked › Before the message: cheap Recipient exists? greylisting DKIM, DMARC, ARC · needs the whole message · What is checked › After the message: costly DKIM, DMARC, ARC needs the whole message Content and viruses · Rspamd, SpamAssassin, ClamAV · What is checked › After the message: costly Content and viruses Rspamd, SpamAssassin, ClamAV Connect · from 192.0.2.99 · The conversation › Before the message: cheap Connect from 192.0.2.99 EHLO, MAIL FROM · The conversation › Before the message: cheap EHLO, MAIL FROM RCPT TO · The conversation › Before the message: cheap RCPT TO DATA · the message itself · The conversation › After the message: costly DATA the message itself Final reply · decide before the 250 · The conversation › After the message: costly Final reply decide before the 250 Inbox · or junk folder · The conversation › The user Inbox or junk folder Refused: 554 · listed, or a bot · If it fails › Before the message: cheap Refused: 554 listed, or a bot Not now: 451 · greylisted; real servers retry · If it fails › Before the message: cheap Not now: 451 greylisted; real servers retry Refused: 550 · DMARC reject, spam, virus · If it fails › After the message: costly Refused: 550 DMARC reject, spam, virus Report spam · trains filters and reputation · If it fails › The user Report spam trains filters and reputation 250 user Legend Where the message ends up The SMTP conversation Checks Try again later