- Title:
- A laid-back mail server setup
- Authors:
- Shin'ya Minazuki -Divine Youkai-
- Date:
- Topics:
- Notes
- Id:
- xt3k0e
`/!\` The title is misleading, you have been warned.
Last night I believe I went a bit too far with pushing my chosen successor's buttons just because of my own whims, but that's only half the story.
Requirements
* Cyrus SASL * Dovecot * Postfix (built with Cyrus SASL) * Rspamd
Building
NetBSD comes with Postfix preinstalled, but there's actually a catch with that, it only handles Dovecot SASL for authentication, so it had to be rebuilt from scratch.
Nishi-kun used something like this within the directory containing the Postfix sources:
`pkgin in cyrus-saslauthd`
`make makefiles AUXLIBS="`pkgconf --libs libsasl2" CCFLAGS="`pkgconf --cflags libsasl2`"`
Setting up
That, however, was only the tip of the iceberg, this is where all hell broke loose between Nishi-kun and myself.
One of the huge problems was Rspamd not signing the messages, despite having the private key and everything.... or so I thought, but the situation was actually more bizarre than that.
The configuration snippet for DKIM signing had to be redone and even then it wasn't reading the key.
(Let alone the existing DNS records being all over the place)
As for myself, I had been yelled at in order to setup the DNS records for DMARC and DKIM (the latter one after the keys were regenerated, again)
It was nothing short of a permissions problem, as always, though it was a real mess if anything.
That is all.