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" 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 ? P.S. : Part of the main.cf : myhostname = mail.my-main-domain.com mydomain = my-main-domain.com alias_maps = hash:/etc/aliases myorigin = /etc/mailname in /etc/mailname i have : mail.my-main-domain.com Thank you Max max...@free.fr a écrit : > Hello, > > It's about 2 weeks that i get trouble with postfix installation on a > web server that hosts multiple domains. > I followed some tutorials found on the web but i still get the > 2 following errors : > > Jan 31 13:10:11 stock postfix/local[16723]: BE20F80B05: > to= <www-d...@mail.my-main-domain.com > <mailto:www-d...@mail.my-main-domain.com > >, relay=local, delay=356316, > delays=356316/0.41/0/0.04, dsn=4.3.0, status=deferred (temporary > failure. Command output: maildrop: Home directory owned by wrong user. ) > and it's as it says. what maildrop considers as the "home" directory must be owned by the user that maildrop delivers mail for. note that maildrop is not part of postfix. PS. www-data has no business owning directories except those where apache needs write access. do not sacrifice security for ease of use. > > Jan 31 13:10:10 stock postfix/virtual[16721]: 2621480B34: > to= <cont...@xxxx.com <mailto:cont...@xxxx.com > >, relay=virtual, > delay=280804, delays=280804/0.02/0/0.06, dsn=4.2.0, status=deferred > (delivery failed to mailbox /home/xxxx.com/contact: cannot open file: Is > a directory) > > > I created 2 directories for emails : > /home/my-main-domain.fr/contact/ owned by www-data > /home/xxxx.com/contact/ owned by www-data > you need to chose what format to use: - mbox: this is a file, not a directory - maildir: this is a directory, but it has a structure. you can let postfix create it (only create the parent directory). or you can use maildirmake to create it. if you want to create it manually, then it needs to contain 3 subdirs: cur/, new/ and tmp/. to deliver to maildir format, append a '/' at the end of the mailbox (in virtual_mailbox_maps). otherwise, postfix will try to deliver to mbox, which must be a file, not a directory. > (XXX stands for a domain that is hosted on the web server) > next time, use example.com, example.org, example.net, whatyouwant.example. > *Here is my main.cf* : > next time, send output of 'postconf -n' instead.