Email for hostname goes to /var/mail instead of /var/vmail

Discussion in 'Installation/Configuration' started by odx, May 4, 2010.

  1. odx

    odx New Member

    hello,
    mailboxes that i setup with ispconfig get stored in /var/vmail. I can send and recieve mails for my virtual domains fine.
    just for my server name its a bit diffrent:

    i fist set up a new mail domain which is equal to my hostname.
    mailboxes i set up for that mail domain will be created in /var/vmail as supposed.

    when there are incoming mails for that domain postfix tries to put them in /var/mail instead of /var/vmail.

    so only mails for one preconfigured mail account (i guess i set that up during installation) get delivered others will be rejected with "user unknown".

    i also cannot find the mailboxes in my IMAP/POP3 account since its loaded from /var/vmail...

    what might be configured incorrectly here? can anyone point me to where i can fix this?

    greetings
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do not use a domain that you want to use for email as server name as postfix does not support it to mix virtual and real system users. Reconfigure postfix to use a subdomain like mail.yourdomain.com instead of just yourdomain.com
     
  3. odx

    odx New Member

    So i am supposed to have this in /etc/postfix/main.cf

    myhostname = mail.mydomain.com

    instead of

    myhostname = mydomain.com
    ?
     
  4. odx

    odx New Member

    ok thanks a lot i fixed it by also setting:

    mydestination = mail.mydomain.com, ....
     

Share This Page