roehling / postsrsd

Postfix Sender Rewriting Scheme daemon
319 stars 38 forks source link

cannot chdir to home directory of user nobody: No such file or directory #154

Closed rhansen closed 11 months ago

rhansen commented 11 months ago

When I start up PostSRSd I get the following in my logs:

postsrsd[8759]: cannot chdir to home directory of user nobody: No such file or directory

Wouldn't it be better to unconditionally chdir to "/"? (That directory always exists, and it would prevent the process from interfering with umount.)

roehling commented 11 months ago

This warning pretty much only comes up with nobody as user, and I kind of like it, because it is much better to have a dedicated user anyway. I recently added support for sysusers.d which should make that pretty painless.

rhansen commented 11 months ago

The error message implies that the home directory's existence is important. Is it? Are relative paths in the config file relative to that home directory?

roehling commented 11 months ago

It is not an error, it is a warning. The home directory was initially supposed to be the anchor for relative paths, but I don't think it is really necessary nor desirable that way. I'll think about whether or not I want to drop that altogether.

roehling commented 11 months ago

Resolved in 2a003547ec1e45018cdcee29a8c78077c182604f