I have a working opensmtpd configuration with this catchall action:
action "catchall" mbox virtual { "@example.com" = billy }
... and I tried to change it slightly to:
action "catchall" mbox virtual { "junk*@example.com" = billy }
(meaning, any TO with junk* (junkcar, junkboat, junkr
Is it possible to use a wildcard like this in an action rule ?
No.
man 5 table
...
In a virtual domain context, the key is either a user part, a full email
address or a catch-all, following selection rules described in
smtpd.conf(5), and the value is one or many recipients as described in
alias