OpenBSD spamd: create a fake MTA

From WTFwiki
Revision as of 11:45, 10 June 2019 by Anexit (talk | contribs) (Created page with "Openbsd comes with a greylisting daemon called "spamd". To run a fake MTA and distribute that list to real working MTA.. This article will show you how; First we need to ad...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Openbsd comes with a greylisting daemon called "spamd". To run a fake MTA and distribute that list to real working MTA.. This article will show you how;

First we need to add a few tables to pf.conf;


table <spamd> persist
table <spamd-white> persist
table <nospamd> persist file "/etc/mail/nospamd"
 
pass in log on em1 proto tcp from any to any port 25 rdr-to 127.0.0.1 port spamd
pass in log on em1 inet proto tcp from <spamd> to any port smtp divert-to 127.0.0.1 port spamd
pass in on egress proto tcp from <nospamd> to any port smtp
pass in log on egress proto tcp from <spamd-white> to any port smtp
pass out log on egress proto tcp to any port smtp