OpenBSD

the main OpenBSD page

OpenSMTPD Is The Mail Server For The Future

3 comments

Lobsters
Thanks to #opensmtpd and #OpenBSD and #openbsdamsterdam my mail server setup just got better. Now I have a working smtp (dkim rspamd SPF dmarc ptr) relay and IMAP frontend that brings the connections with #wireguard to my main mail server. First tests indicate that I don't need external relays anymore. Setup was fun, documentation was perfect.

We are very close to a new OpenBSD release. "You Have Installed OpenBSD. Now For The Daily Tasks." https://nxdomain.no/~peter/openbsd_installed_now_for_the_daily_tasks.html can help you prepare for the upgrade.

If you are using exim as your MTA (or any other non-base system MTA), "OpenSMTPD Is The Mail Server For The Future" https://nxdomain.no/~peter/time_for_opensmtpd.html contains useful pointers for a better mail future.

#openbsd #newrelease #openbsd79 #opensmtpd #email #smtp #rspamd #antispam #spam #exim

You Have Installed OpenBSD. Now For The Daily Tasks.

Repost for the Sunday crowd:

Migrating mail servers from exim to OpenSMTPD (smtpd) is fun and useful https://www.undeadly.org/cgi?action=article;sid=20260516064650 #openbsd #opensmtpd #smtpd #exim #email #smtp #mail #spam #antispam #greylisting #greytrapping #mailmigration

Migrating mail servers from exim to OpenSMTPD (smtpd) is fun and useful

OpenSMTPD Is The Mail Server For The Future https://nxdomain.no/~peter/time_for_opensmtpd.html Migrating to OpenSMTPD from exim on OpenBSD was joyfully painless and smooth. #openbsd #opensmtpd #email #smtpd #rspamd #spam #antispam #greylisting #greytrapping #mailserver
OpenSMTPD Is The Mail Server For The Future

Are there people here that have examples of #opensmtpd filtering and/or adress rewriting ?

I am interested in two cases :

- want to block mail pretending to originate from my own domain (without breaking my own conf' ofc)

- want to rewrite all mail directed towards the dk tld so that it looks like originating from my dk domain (this is a simple rewrite of the address, I am legit owner and the MX is legit sender/receiver)

#email #filtering #openbsd

I submitted a Pull Request to update MacPorts' OpenSMTPD to 7.8.0p1 here:

https://github.com/macports/macports-ports/pull/31850

2 of 3 GitHub Continuous Integration checks passed OK!

One of them failed with another wtfh:


7s
Run . ports/.github/workflows/bootstrap.sh mpbb
Fetching files
Info
2026-03-27 02:14:50.001 mdutil[47287:114060] mdutil disabling Spotlight: / -> kMDConfigSearchLevelFSSearchOnly
Disabling Spotlight
Uninstalling Homebrew
Selecting Xcode version
Installing getopt
Installing MacPorts
Configuring MacPorts
Updating PortIndex
From https://github.com/macports/macports-ports
  • branch master -> FETCH_HEAD
  • [new branch] master -> macports/master
Creating port index in /Users/runner/work/macports-ports/macports-ports/ports
Adding port graphics/openexr
Adding port graphics/OpenJPH
Adding port lang/unicon
Adding port mail/opensmtpd
Adding port perl/p5-unicode-utf8
Adding port perl/p5-xml-parser
Adding port perl/p5-yaml-syck
Adding subport p5.28-unicode-utf8
Adding subport p5.30-unicode-utf8
Adding subport p5.32-unicode-utf8
Adding subport p5.34-unicode-utf8
Adding subport p5.28-xml-parser
Adding subport p5.30-xml-parser
Adding subport p5.32-xml-parser
Adding subport p5.34-xml-parser
Adding subport p5.28-yaml-syck
Adding subport p5.30-yaml-syck
Adding subport p5.32-yaml-syck
Adding subport p5.34-yaml-syck
Adding port php/php-imagick
Adding subport php53-imagick
Adding subport php54-imagick
Adding subport php55-imagick
Adding subport php56-imagick
Adding subport php70-imagick
Adding subport php71-imagick
Adding subport php72-imagick
Adding subport php73-imagick
Adding subport php74-imagick
Adding subport php80-imagick
Adding subport php81-imagick
Adding subport php82-imagick
Adding subport php83-imagick
Adding subport php84-imagick
Adding subport php85-imagick
Adding port python/py-sunpy
Adding subport py310-sunpy
Adding subport py311-sunpy
Adding subport py312-sunpy
Adding subport py313-sunpy
Adding subport py314-sunpy
Adding port sysutils/gearmand
signal interp lost
ports/.github/workflows/bootstrap.sh: line 150: 47369 Abort trap: 6 portindex
Error: Process completed with exit code 134.

Last time I ran into some GitHub CI BS? It seemed to resolve itself (maybe some other MacPorts person kicked something? I dunno). Anyway, hopefully something similar will happen there.

Regardless, it's up to someone else with commit access to merge it.

#MacPorts #OpenSMTPD #OpenBSD #OpenSource #SMTPD #SMTP #email
opensmtpd: update to 7.8.0p1 by artkiver · Pull Request #31850 · macports/macports-ports

Description Type(s) bugfix enhancement security fix Tested on macOS 26.4 25E246 arm64 Command Line Tools 26.4.0.0.1774242506 Verification Have you followed our Commit Message Guidelines?...

GitHub
Wow it is easier than i remember to get opensmtpd to
relay through a typical smtpd server (like your email
providers) !

yay :P

#openbsd #opensmtpd



I put my #mailserver setup with #opensmtpd on Codeberg: https://codeberg.org/davd/docker-opensmtpd-mailserver in case anyone wants to set up something similar and wants to reference configs, etc. #selfhosted
docker-opensmtpd-mailserver

Single-container OpenSMTPD-based mail server

Codeberg.org