Hi Sidney,
Good news is, after changing my match rule to ...
match from any for any action "my-test-mda"
... mails from the outside world now proceed a bit further (the second test
yields true now), and I see a "rule #1 matched" in the trace.
great!
expand: lka_expand: username: test14 [depth=1, sameuser=0]
lookup: lookup "test14" as userinfo in table getpwnam:<getpwnam> -> none
expand: lka_expand: user-part does not match system user
[...]
Do you (or somebody else) have an idea?
As expected, opensmtpd now complains that there is no test14 user. Let
me quote from my first email:
But after you fix this, I think you would indeed run into the problem described
by Crystal that the user test9 probably doesn't exist. For example, the man
page of smtpd.conf says that your python script will receive an environment
variable HOME which is set to the delivery user's login directory. But if the
user doesn't exist, how should opensmtpd know the login directory of the user?
I think you could use the "user <username>" option for your mda delivery action in order to specify one existing user that handles mail for everyone. Or for more advanced setups, you could try the alias or virtual options.
Have you tried appending "user sidney" to the action line in your config?
Best regards,
Matthias