OpenBSD Journal

New Grammar for smtpd.conf

Contributed by rueda on from the match from gilles@ new grammar action "report" dept.

Gilles Chehade (gilles@) has committed (to -current) the new smtpd.conf grammar discussed in his p2k18 hackathon report.

In a followup message to tech@ and misc@, Gilles wrote [in part]:

Hi,

I have just committed a major change in smtpd that'll require smtpd.conf
to be rewritten before your update to the new code.

The new grammar is not TOO different from the former one, a lot of stuff
remains exactly identical, but the ruleset is now split into two parts:

- a named action
- a matching pattern which is associated to a named action

In effect, instead of having:

    accept from any for local deliver to mbox


You will have:

    action "my_action" mbox

    match from any for local action "my_action"


There are a few keywords that have been shortened too but all in all the
switch to new grammar is easy, the smtpd.conf man page has been updated,
and it continues being improved thanks to ingo and jmc.

The man page by itself should be enough to do the switch.

Since this is quite a major change, I also wrote a post that describes a
conversion of my own complex smtpd.conf to new grammar:

    https://poolp.org/posts/2018-05-21/switching-to-opensmtpd-new-config/
[...]

The FAQ page on following -current has been updated accordingly.

(Comments are closed)


Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]