(Although the Postfix config files are no walk in the park either.)
[1] https://www.oreilly.com/library/view/sendmail-4th-edition/97...
From that, we see
LOCAL_NET_CONFIG
# This rule ensures that all local mail is delivered using the
# smtp transport, everything else will go via the smart host.
R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3
dnl
Clear as day, right?1. https://www.linusakesson.net/programming/sendmail/index.php
IBM-SSH consistent of some IBM guy replacing every instance of "OpenSSH" with "IBM-SSH". One of the interns noticed with one release the find replace hit the man pages.
Curious if this was an intentional pun.
1. https://panda.ime.usp.br/pythonds/static/pythonds_pt/02-EDBa...
this is clear
> and "fix" was for Sendmail
this is unclear. I don't know how you get "fix" from "Sendmail"
https://www.google.com/search?q=german+bubbles+bear&rlz=1C1C...
It's interesting to see that the most popular who came out as "winner" has been postfix,
altho these days most people would setup a relay with msmtp going to a closed source provider than full fledged postfix/cyrus service
anyways, after staring at this for a few minutes and without looking up any syntax, a few things became noticeable:
R$* < @ $* .$m. > $* is matching a pattern, with each $* being assigned to $1, $2 and $3 respectively.
$m must contain the local domain. so effectively this pattern matches any mail addressed to a host with the local domain.
$#smtp if that pattern matches, use smtp,
$@ $2.$m. by connecting to $2.$m. (which means, just use the host that was specified in the original mail)
$: $1 < @ $2.$m. > $3 (not sure what this part does. my guess is: rewrite the email address as specified here, that is in this case don't rewrite it at all.)
it's terse, but regular expressions are worse than this particular example.
now i need to go look up the syntax to see how much i actually got right.
for example i have no idea what the $3 parameter is for. i am guessing $1 is the part before the @ in an email. $3 could be the From address or have something to do with alternate addressing schemes
I definitely would never want to go back to configuring sendmail though. Unlike TECO it doesn't provide anything compared to a modern mail product.