On 15.08.2023 10:49, Thomas Bohl wrote:

You where already pretty close when you got this line though:
warn: smtpd: /var/vmail/mlmmj/domain/listname/.forward: unsecure file
There was probably just wrong write permissions for the group.

...on the home directory.

I changed permissions from 0700 vmail:vmail to 0750 vmail:smtpd and coaxed a new error out of mlmmj:

/usr/bin/mlmmj-receive[114552]: mlmmj-receive.c:112: Have to invoke either as root or as the user owning listdir Invoked with uid = [997]

So it seems OpenSMTPD is trying to deliver with uid 997 (which is 'smtpd' user on the system), ignoring the uid/git from userinfo table.

v 6.8.0:

lookup: lookup "3" as USERINFO in table proc:userinfo -> "5000:5000:/var/vmail/domain/user"
debug: smtpd: forking mda for session eba6bc20bdd7e6b8: 3 as 3

lookup: lookup "23" as USERINFO in table proc:userinfo -> "5000:5000:/var/vmail/mlmmj/domain/list"
debug: smtpd: forking mda for session 358aa0231bcacbe7: 23 as 23

v 7.3.0:

lookup: lookup "3" as USERINFO in table proc:userinfo -> "5000:5000:/var/vmail/domain/user"
debug: smtpd: forking mda for session 8ed13ca11c1e1c09: 3 as smtpd

lookup: lookup "23" as USERINFO in table proc:userinfo -> "5000:5000:/var/vmail/mlmmj/domain/list"
debug: smtpd: forking mda for session 8ed13c9dff53f513: 23 as smtpd

Delivery to a regular user most likely succeeds because it's done over LMTP.


Reply via email to