Re: Home directory owned by wrong user
Sam Varshavchik <[email protected]> Thu, 02 Nov 2017 13:41:51 -0400
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Norbert Harrer writes: >> Correct. Only the Courier version of maildrop will trust the contents of >> $HOME. Anything can set $HOME in the environment, so it cannot be used to >> determine the destination account's home directory. The non-Courier version >> of maildrop uses its userid to look up the purported account's home >> directory, and since it's /usr/sbin, and not owned by daemon, it bails out. > > Aha. Thanks for explaining the difference. Now I understand why it worked > before. Just out of curiosity. Are courier maildrop and non-courier maildrop > a lot different? Or are they the same source just built with different > options? Same source, different options. The difference amounts to the behavior at startup, with regards to locating the account and the mailbox – precisely where you got stuck – and a few differences in exit codes. >> Now, if it has been compiled with courier-authlib separately, the -d option >> can be used to look up the same virtual account that Courier used to deliver >> the mail. But the same mailbox name must be passed to -d, not an empty >> string, and maildrop needs to be invoked as root so that it can drop root >> privileges and run under the correct virtual userid. > > o.O woow! That worked straight away. I replace -d "" with -d $USER in > DEFAULTDELIVERY in /etc/courier/courierd and now everything is happy again. > > Fantastic, thank you!! Yes, this will work for you. This is not ideal, but this'll work. This ends up looking up the same account, twice. Just a tiny bit slower than it really has to be. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Courier-maildrop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJZ+1jfAAoJEGs6Yr4nnb8lz14QAMFb4Guy+evhqHkMLWUOV+Mu g43Y79xOK4TETt47N5MADBuMftKVc2L3G6lW3RhXHDpwpxWfxF8ULp9OcCVTGKF0 qMHpKQFsoZDF7zcZVLD0ea7tPBcRXScDVm27XT0dNei2Db9pWgOyusnn+vMSQEME 3pfV9l8z6yE30bpnO1YYeA1CQRN1Zh9+FAJTOeJf2crabF20hkKbVYF619KU+YXt xW0W6L4JPThWojbdveIkBAYrWiqUBu8KUVc7c4Nen9Zt3vbi9Qxz7R+II7lCnwNT 1otgZfspov3xknA1aSz8j7oZojFgO1yhnejaZJjhMM52Aj3ryeX4RwpzagrHeF+d L/tbdSckyKJDcTQ/YP7Oq1qOJ0hHWri0WsoTooMvm3SmUibsnVGmF/OGN8F90lHE pM/p6Jqo9VNf23JJiYubG2JNm3VwLHRgYHXv1gHq8zmVSIN0+3LfTeB0fQ6TY5OB qNZGsAJ+7NwSBcolSjHC5IdP7+BSMRfQUnr82rsSih9FfGWJek05iOmHFFH1O4Nq N94KiHw7jurwwkeIIG9UzdUTGpaPsY6RZ1ngcP9TNKQsDVIpLSeX6d9KrSSivQlL T3ws+2SemxAHjnRJvP3Jb9JECPrf/h+QlUgMYb9MljAtsApnNANDrmOE4pnfdoZv ohOAxHXeMVDmd5+9z0Nw =z802 -----END PGP SIGNATURE-----