max...@free.fr a écrit : > Hi Mouss, > > Thanks for your answer. After reading your post, i removed the 2 > following directories : > /home/my-main-domain.fr/contact/ owned by www-data > /home/example.com/contact/ owned by www-data > > and make > > "touch /home/my-main-domain.fr/contact" owned by www-data > "touch /home/example.com/contact" owned by www-data > So for the above domains it seems to work. > > But for *my-main-domain,* (which is specified by *myhostname *and > *mydomain)* i still get this error : > "MAILER-DAEMON > (temporary failure. Command output: maildrop: Home directory owned by > wrong user.) www-d...@mail.my-main-domain.com > <mailto:www-d...@mail.my-main-domain.com>" > I but i don't know which home directory it'stalking ... if it's the > *www-data* home directory, i don't know where is it. > Do you know how to check that ? >
The home directory of www-data is probably /var/www, and for a good reason, it belongs to root. DO NOT CHANGE THIS. But maildrop will not deliver mail if the home directory (/var/www) does not belong to www-data. and this again is for a good reason. so the best you can do is stop trying to deliver mail to www-data. use another user. if you have a php/whatever script that you run from apache and needs access to the mail, then simply create another user, say www-mail, with a home directory of /var/www/www-mail. then use this instead of www-d...@*. More generally, do not "reuse" unix accounts. create as many accounts as you need, and avoid accounts that have multiple roles. This is part of the "minimalist" approach in security.