I am using an ubuntu 12.04 with the ispconfig 3 perfect server (apache2) setup. My server has the same hostname as i want to use for email accounts, so when i send myself an email it goes to /var/mail/oliver rather than /var/vmail/wootton-house.com/oliver/Maildir/ Also any other accounts that aren't server accounts cant recieve emails ans there isn't a file in /var/mail/ for them. How can i fix this problem? Thank You Oliver
The problem is your hostname, the hostname of a server amy not be thes same then a domain used for email. Thats why the perfext setup guides instructed you to use a subdomain like server1.example.com as hostname and not example.com. To fix that, edit /etc/mailname and /etc/postfix/main.cf and replace all occurrences of your domain name with a subdomain of your domain and restart postfix.
Thank you, it is now working perfectly! Just one thing, would it be a good idea to change the whole server hostname? Thank You, Oliver
Yes, I would change the hostname as well. Change it in the file /etc/hostname and /etc/hosts and then run: /etc/init.d/hostname restart Please ensure that the hostname exists in dns, so if you dont use a wildcard dns record, then add a dns a-record for the hostname pointing to the IP address of the server.