HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Email for hostname goes to /var/mail instead of /var/vmail (http://www.howtoforge.com/forums/showthread.php?t=45581)

odx 4th May 2010 11:30

Email for hostname goes to /var/mail instead of /var/vmail
 
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

till 4th May 2010 11:32

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

odx 4th May 2010 11:48

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

myhostname = mail.mydomain.com

instead of

myhostname = mydomain.com
?

odx 4th May 2010 11:53

ok thanks a lot i fixed it by also setting:

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


All times are GMT +2. The time now is 09:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.