On Thu, 24 May 2018 16:38:17 -0400, Rupert Gallagher wrote: > It may solve some obscure technical problem, but is a horrible thing > to read and write. How about keeping the best of both worlds? Leave > the old beautiful PF-like syntax to humans, and translate it into > the newEgyptian(tm) on the fly?
It's not bad as long as you use symbolic names for the actions. When you have multiple match rules using the same action it may actually be an improvement. Here are the action and match rules from my smtpd.conf to give you an idea of what I mean: # Actions action deliver-mbox mbox alias <aliases> action dkim-relay relay host smtp://127.0.0.1:10027 helo mydomain.com action just-relay relay # Accept mail between local users match for local action deliver-mbox match for domain <domains> action deliver-mbox # Relay or deliver DKIM-signed messages from dkimproxy_out match tag DKIM for any action just-relay # Allow local net to send mail to the outside + relay bounces # All messages are signed by dkimproxy_out on port 10027 match from local for any action dkim-relay match from src <local-net> for any action dkim-relay # Accept from anyone for any of our local domains and deliver to mbox match from any for domain <domains> action deliver-mbox
