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>, 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 Jan 31 13:10:10 stock postfix/virtual[16721]: 2621480B34: to=<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 (XXX stands for a domain that is hosted on the web server) Here is my main.cf : # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. content_filter = smtp-amavis:[127.0.0.1]:10024 smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h # TLS parameters smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache virtual_mailbox_base = /home virtual_mailbox_domains = my-main-domain.fr xxxx.com virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = mail.my-main-domain.com mydomain = my-main-domain.com alias_maps = hash:/etc/aliases #alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mail.my-main-domain.com, ks353968.kimsufi.com, localhost.kimsufi.com, localhost #relayhost = mynetworks = 127.0.0.0/8 mailbox_command = maildrop mailbox_size_limit = 0 recipient_delimiter = + #inet_interfaces = all #inet_protocols = ipv4 smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_tls_auth_only = no smtp_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom Thanks for your kindfull help Best regards Max