finds.dev← search

// the find

LukeSmithxyz/emailwiz

★ 2,159 · Shell · GPL-3.0 · updated May 2025

Script that installs/configures a Dovecot, Postfix, Spam Assassin, OpenDKIM Debian web server

A single shell script that automates a full Postfix/Dovecot/SpamAssassin/OpenDKIM email stack on Debian/Ubuntu. It targets developers and sysadmins who want to self-host email without a control panel like Mailcow or iRedMail. The whole thing is one file, which is either the point or the problem depending on your needs.

Uses Unix system accounts directly — no SQL backend, no extra auth layer to debug. Generates DKIM keys and outputs the exact DNS records you need, which is the step that trips up most first-timers. Includes fail2ban integration for Postfix/Dovecot out of the box. The isolated/self-signed mode for LAN notification servers is a genuinely useful addition most similar scripts don't bother with.

A single-file bash script that mutates a live system with no rollback — if it fails halfway through, you get to debug a partially configured mail stack by hand. No multi-domain support built in; adddomain.sh exists but is a separate afterthought script. User management is raw useradd/usermod with no tooling around aliases, forwards, or quotas. SpamAssassin is notoriously heavy for a small VPS and the script makes no attempt to configure it beyond installation, so you get default rules that will both miss spam and false-positive legitimate mail.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →