Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th July 2012, 14:13
ohope5 ohope5 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Email delivered to the wrong place

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
Reply With Quote
Sponsored Links
  #2  
Old 30th July 2012, 14:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
ohope5 (30th July 2012)
  #3  
Old 30th July 2012, 16:10
ohope5 ohope5 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 31st July 2012, 08:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
 
Default

Quote:
Just one thing, would it be a good idea to change the whole server hostname?
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email copy and forward problem ethraza General 3 30th May 2012 13:07
email forward problem createch General 5 10th December 2008 14:14
E-mail delivered to wrong account pjdevries General 5 27th May 2007 19:19
I broke it.. I think.. Email in is not being delivered? edge Server Operation 1 3rd July 2006 14:22
webmail is using the 'wrong' email .. :( hagel General 3 16th August 2005 20:16


All times are GMT +2. The time now is 02:21.


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