Download raw body.
smtpd: be more relaxed in table usage
On Fri, May 22, 2026 at 01:15:47AM +0200, philipp+smtpd@bureaucracy.de wrote:
> Hi
>
> I just stumbled over a blogpost[0] about smtpd, where I noticed that the
> config needs some duplicate tables for domains which are relayed. Here
> is the relevant config from the post:
>
> table relay_for_domains {
> "nuug.no",
> "blug.linux.no"
> # again more domains in the real smtpd.conf, left out here
> }
>
> table domain_relays {
> "nuug.no" = "smtp://mx1.nuug.no",
> "blug.linux.no" = "smtp://mail.lamasti.net"
> # again more domains in the real smtpd.conf, left out here
> }
>
> action "relay_domain" relay domain <domain_relays>
> match from any for domain <relay_for_domains> action relay_domain
>
> To avoid config errors it would be better when the config could use only
> the domain_relays table. Following patch allowes this:
Even with the current version that has two tables to make things work,
it's vastly more readable than the exim config it replaced :)
But I would be happy to test anything that would have the potential
to further improve the things, of course.
All the best,
Peter
--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://nxdomain.no/~peter/blogposts https://nostarch.com/book-of-pf-4th-edition
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
smtpd: be more relaxed in table usage