> Now that I’ve done all of this, I understand what this sentence
> from the manual means: "Optionally, rcpt-to might be specified
> to use the recipient email address (after expansion) instead of
> the local user in the LMTP session as RCPT TO."
Me too. Although the installation was quick and flawless. In general,
the most error-prone and time-consuming part of configuring and
customising was the lack of clarity of terms. I do not blame the manual,
on the contrary, its conciseness is its strength. Alongside, however,
some guide would be useful. FreeBSD has an excellent handbook beside the
manual, and OpenBSD has FAQ. I love in particular the syntax of the
rules that corresponds to the living human language, similar to the
syntax of the PF firewall. But the human mind is not capable of
theoretical reasoning without examples. In the absence of suitable
examples, we have to imagine them, which can lead to mistakes.
> for local
> Specify that session may address any local domain.
— says the smtpd.conf(5) manual. Alas,
> match from local !for local action "relay"
> match from src <vip> !for local action "relay"
— wrong, should be
> match from local !for domain <domains> action "relay"
> match from src <vip> !for domain <domains> action "relay"
(<vip> there is an IP table of our virtual users).
This and similar debugging took a lot of time until, after many trials
and errors, I came to understand the meaning of the terms.
If the manual provided typical examples with LMTP, it would be a snap to
understand and deploy this excellent OpenSMTPD.