On 17.08.2023 19:43, Thomas Bohl wrote:
Interesting. Which man page please? I can't see it mentioned in
smtpd.conf nor forward man pages.
The forward man pages says:
A .forward file contains a list of expansion values, as described in
aliases(5).
So it is in aliases 5.
http://man.openbsd.org/aliases.5
...
|command
Pipe the message to command on its standard input. The command is run
under the privileges of the daemon's unprivileged account.
I'm really curious how it managed to work before...
With smtpd:smtpd on mlmmj directories I'm getting:
lookup: match "[email protected]" as MAILADDR in table proc:recipients -> true
rule #2 matched: match from any for domain domains rcpt-to recipients
action deliver_lmtp
lookup: lookup "[email protected]" as ALIAS in table proc:virtuals -> "23"
expand: 0x55727bc76760: expand_insert() called for
username:23[parent=(nil), rule=(nil)]
expand: 0x55727bc76760: inserted node 0x55727bd82e20
expand: 0x55727bd81028: expand_insert() called for
username:23[parent=0x55727bc79e60, rule=0x55727bc7a930,
dispatcher=0x55727bc7aa00]
expand: 0x55727bd81028: inserted node 0x55727bd83380
expand: 0x55727bc76760: clearing expand tree
expand: 0x55727bc76760: freeing expand tree
debug: aliases_virtual_get: '[email protected]' resolved to 1 nodes
expand: lka_expand: username: 23 [depth=1, sameuser=0]
lookup: lookup "23@" as ALIAS in table proc:virtuals -> none
lookup: lookup "23" as ALIAS in table proc:virtuals -> none
lookup: lookup "23" as USERINFO in table proc:userinfo ->
"5000:5000:/var/vmail/mlmmj/domain.com/list"
mproc: lka -> parent : 4376 IMSG_LKA_OPEN_FORWARD
warn: smtpd: /var/vmail/mlmmj/domain.com/list/.forward: unsecure file
mproc: parent -> lka : 4376 IMSG_LKA_OPEN_FORWARD
imsg: lka <- parent: IMSG_LKA_OPEN_FORWARD (len=4376)
expand: ~/.forward failed for user 23
mproc: lka -> dispatcher : 54 IMSG_SMTP_EXPAND_RCPT
expand: 0x55727bd81028: clearing expand tree
imsg: dispatcher <- lka: IMSG_SMTP_EXPAND_RCPT (len=54)
smtp: 0x562572625500: >>> 524 5.2.4 Mailing list expansion problem:
<[email protected]>
mproc: dispatcher -> lka : 98 IMSG_REPORT_SMTP_PROTOCOL_SERVER
mproc: dispatcher -> lka : 62 IMSG_??? (132)
fe30c5bd1dd8f509 smtp failed-command command="RCPT TO:<[email protected]>"
result="524 5.2.4 Mailing list expansion problem: <[email protected]>"