I don't recall the exact exact rule as it is one shared by all OpenBSD
daemon through the common lexer, but basically if the string starts w/
a special character or contains some special ones, you need quotes:
table foobar /etc/mail/aliases
^---- not a valid way to begin a string
and whenever a sequence of characters does not result in a keyword, it
is considered a string which allows you to skip them for anything that
looks like a string and isn't a keyword.
I personally think that a good practice is to use quotes whenever it's
not a keyword but that's subjective.
October 31, 2023 6:22 PM, "Paul Pace" <[email protected]> wrote:
> When is it required for using quotation marks in smtpd.conf?
>
> I was just noticing smtpd.conf(5) has examples using quotation marks, such as:
>
> action "local_mail" mbox alias <aliases>
> filter "dkimsign" proc-exec "filter-dkimsign -d <domain> -s <selector> \
> -k /etc/mail/dkim/private.key" user _dkimsign group _dkimsign
>
> But then I noticed the package readme for dkimsign has the following examples:
>
> filter dkimsign_rsa proc-exec "filter-dkimsign -d <domain> -s <selector> -k
> /etc/mail/dkim/private.rsa.key" user _dkimsign group _dkimsign
> filter dkimsign chain { dkimsign_rsa, dkimsign_ed25519 }
>
> So I went through and removed all quotation marks in my smtpd.conf and the
> only ones that seem to
> be needed are the ones around pki related locations.
>
> Thank you,
>
> Paul