Hi Philipp,
There is a 'forward-only' method availible. As far as I understand your
> description it does exaclty what you want.
That could well be.
Being new to opensmtpd, I have to rely on reading documentation, and the
only documentation on this particular feature I can find is in the man page
of smtpd.conf(5), which reads, in its entirety:
forward-only
Only accept the message if the recipient results in a remote
address after the processing of aliases or forward file.
I feel it is important to note that to an opensmtpd-newbie such as myself,
this description is terse to the point of being useless. I assume that to
people who are already familiar with the innards of opensmtpd, and who have
a sufficiently accurate mental model of how opensmtpd processes mail, this
description is helpful. But there is no way for me to turn this description
into a config file entry that does what I need.
It is really frustrating. I have a feeling that opensmtpd is capable of
doing what I need in ten lines of config file or less, which is absolutely
wonderful compared to the abomination that is postfix or exim
configuration; but unfortunately, to be brutally honest, the documentation
is just atrocious. That puts up a huge barrier to using opensmtpd more
widely, I think.
I've been looking for resources that explain opensmtpd to the uninitiated,
outside of the man pages. I found this:
https://github.com/poolpOrg/OpenSMTPD-book. It is unfortunately very
incomplete, but I already learnt quite a few interesting things, so that's
good.
But then, I get to this part:
https://github.com/poolpOrg/OpenSMTPD-book/blob/master/src/chapters/1040_Documentation_resources_and_community.md
As is the habit with OpenBSD projects, the man pages are just
wonderful. They are up-to-date, they document about everything
while providing descriptions and examples of use. Mistakes and
undocumented features are considered as bugs and are fixed as
soon as possible to keep the documentation as great as possible.
That's just gaslighting.
I've been into computers for 40 years, I've designed my own microprocessor,
I've written kernel drivers, I have the CS degree. I spent the last eight
years doing quantum computer stuff, for heaven's sake, which is supposed to
be a bit more complicated than getting email from A to B.
Yet I cannot write those ten-lines-or-less of configuration that will make
opensmtpd do the little dance I need it to do.
I really appreciate that you (and others) are trying to help. But I do hope
first and foremost that there is a realization in these quarters that
opensmtpd is in dire need of proper documentation.
Cheers, Sidney