Howto install and configure OpenBSD spamd

OpenBSD’s spamd is a SPAM deferral daemon which rejects false mail in a very efficient way. spamd is a fake MTA or mail daemon which rejects false mail. It is designed to be very efficient so that it does not slow down the receiving machine.

ADVERTISEMENTS

For large email server I put spamd infront of Postfix. If you are just using a Postfix MTA try these tips to avoid spam.

From the article:

We all know about the rampant spam email problem. Nearly all of the potential solutions offered for it are based on the idea of the mail server receiving messages, classifying them as either spam or legitimate, and then processing further (deleting or forwarding messages) as appropriate. The problem with this strategy is that you end up using extra resources on the mail server. Here’s a way to get the same result while minimizing resource usage by preventing the spam from reaching the mail server.
The order of things is as follows:
1. Decide on a physical hookup and IP addressing scheme.
2. Get spamd configured and running.
3. Tell OpenBSD to send any TCP 25 traffic to spamd for evaluation (yes, that is a required step). But we also must tell OpenBSD to forward email from “good” senders to our real email server. PF rules (OpenBSD’s version of iptables) take care of that.
4. Test, test, test!

Installing and configuring spamd

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Mikey Jan 18, 2015 @ 12:29

    If you use Linux, then greyd provides all of the feature of spamd. Check it out at greyd.org. (shameless plug from author)

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.