Hello Giovanni, On Tue, Apr 03, 2018 at 11:04:46AM +0200, Giovanni Bechis wrote: > if you start spamd from /root and you use a perl module that is using "use > lib 'lib';" or similar piece of code the relevant code will not load because > the user spamd is running on (spamd or whichever you have configured) will > not have access to $PWD.
Thank you very much - this makes sense. NetAddr uses such a construct and I can confirm that triggering a DNS query before setuid is called will make the problem go away. Despite what has already been said about starting spamd from /root I think this should be addressed because people might stumble over it while doing debugging. Regards, Michael Brunnbauer -- ++ Michael Brunnbauer ++ netEstate GmbH ++ Geisenhausener Straße 11a ++ 81379 München ++ Tel +49 89 32 19 77 80 ++ Fax +49 89 32 19 77 89 ++ E-Mail bru...@netestate.de ++ http://www.netestate.de/ ++ ++ Sitz: München, HRB Nr.142452 (Handelsregister B München) ++ USt-IdNr. DE221033342 ++ Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel