Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 26th, 2011, 12:40 PM
sephers181's Avatar
sephers181 sephers181 is offline
User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: UK
Posts: 467 sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sephers181 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 6 h 38 m 48 sec
Reputation Power: 72
Question Introduction to mail servers

Hi All,
I recently got an Amazon EC2 server running linux and I have some questions because I'm so confused about things. I'm not a pc noob or anything or even a linux noob, within half an hour of having the server I had my domain pointing to it's IP Address, an Apache server, MySQL server and PHP installed and my website running

However the confusion comes when I tried to install a mail server. I'm using qmail because postfix was too confusing. And I've managed to set it up so it can now send mail but it won't receive mail. My firewall is setup to allow traffic through ports 143 and 25. But what's a hostname?? I wanna set my mail program to connect to imap.mydomain.com and smtp.mydomain.com but what r those?? they're not subdomains are they?? and they're not hostnames??

Also my domain name has an A type DNS record pointing it to an IP address. But what should the MX address be? Because at the moment it's pointing to mail.domain.com but that resolves to the IP Address 0.0.0.0 which obviously is wrong and I'm assuming that's why I can't receive mail...

I guess none of that is explained well, but ask questions and I'll answer them. Thanks for any help
Sephers.
__________________

Reply With Quote
  #2  
Old December 26th, 2011, 01:42 PM
hiker's Avatar
hiker hiker is offline
They're coming to take me away
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jan 2005
Location: Florida
Posts: 5,093 hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)hiker User rank is General 61st Grade (Above 100000 Reputation Level)  Folding Points: 33832 Folding Title: Starter FolderFolding Points: 33832 Folding Title: Starter Folder
Time spent in forums: 3 Months 3 Weeks 28 m 27 sec
Reputation Power: 5048
Quote:
But what's a hostname?? I wanna set my mail program to connect to imap.mydomain.com and smtp.mydomain.com but what r those??

A hostname is *.domain.com. So, for example, mail.domain.com would be a hostname.

Anything in front of domain.com is a subdomain. Even www.domain.com would consider www as a subdomain.

If mail.mydomain.com is resolving to 0.0.0.0 then you have something improperly configured.

For DNS:
You need to have an A record for each of the domains (and subdomains). You can, instead, use a wildcard to encompass all subdomains.

You then need an MX record (or multiple ones) that point imap.mydomain.com and smtp.mydomain.com to domain.com.

On your server, you should edit the hosts file and list your domain as well. I use sendmail, but qmail probably has something similar to where you need to edit a particular file to allow mail. You would need to add the domain name so that your server will receive mail for that domain.
__________________
"I don't need to get a life. I'm a gamer. I have lots of lives!"

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Introduction to mail servers

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap