Some specs: Ubuntu 10.04 Virtualmin 2 virtual servers happydaybakeshop.com & burkefreelance.com
The mail for happydaybakeshop is being received fine. I can see it coming in via the mail.log. Anything sent to the burkefreelance address I don't see in the logs or receive anything.
I use Zonedit to handle the DNS records. I have an MX record set for "mail" and it points to the ip of the server. But when I issue the 'host -t MX happydaybakeshop.com" command it says there is no MX record. I'm not sure why one of my domains works and the other doesn't. One thing that is sticking out is that the server hostname is ns1.happydaybakeshop.com.
I looked through the postfix configuration options but nothing jumped out at me as a difference between the two virtual servers.
Any thoughts on where to start to debug this issue?
Actually, on my end, it seems that neither happydaybakeshop nor burkefreelance have MX records... So it's rather surprising that the former should work. :) Might just still be in some cache or local nameserver or hosts file for your test systems.
Look at this: http://www.intodns.com/happydaybakeshop.com
You might want to make sure that you actually have MX records correctly configured at "Zoneedit".
Ok, now I put the following 2 records in zoneedit. These are the entries in their gui. Do these look right?
Subdomain : Type : TTL : Preference : Host (These are the boxes in zoneedit to enter a record)
mail : MX : 300 : 10 : 67.9.168.60
@ : MX : 300 : 10 : mail
And when I look at intodns.com it says the MX records are showing up. Is that all I should have to do? And now I just have to wait for caches to clear on other mail servers before they actually get this record? In this case it shouldn't matter what my hostname of the 67.9.168.60 machine is correct?
Howdy,
Yup, that should be good.
And no, the hostname of your server doesn't matter. So long as the IP address in the MX record is pointing to your server, it should be able to deliver email.
-Eric
How long will it take for this to propagate?
happydaybakeshop looks okay now. burkefreelance.com though reports an error:
You should report this to your zone hoster ("zoneedit") if it does not clear up in the next hours. Looks like they have a misconfiguration there.
Also, just for completeness: MX records have to point to host names, not IP addresses. The report from Zoneedit looks okay, but the line you posted:
mail : MX : 300 : 10 : 67.9.168.60
is, for your information, incorrect.Propagation times for zone changes depend on the configured TTL values. After the TTL have elapsed the change should at the latest have propagated. Though nameservers can, even if they should not, ignore the TTL values in the zone data and employ their own.
Ok I'll let zoneedit know and see what they say.
Also as for the records I posted I made a typo and the record for "mail" should be an A record. Does that still look ok?
mail : A : 300 : 10 : 67.9.168.60
Yep, that looks good.
So my hostname for this server is ns1.happydaybakeshop.com. Initially I was going to use it as a dns server hence the ns1 naming but opted to use zoneedit for the dns records. I'm wondering how the mail.burkefreelance.com domain fits into the mix with the MX record. Since I'll have multiple virtual servers with other domains with other MX records for those domains. They will all just point to the correct IP address and that's it? Does my hostname of the server need to resolve. Like should I be able to do host ns1.happydaybakeshop.com and get something back because right now I can't.
I read on some posts how postfix needs the server to have a FQDN and resolve. Is this just a red herring for me or is this causing some of my issues?
The name your MX record uses doesn't matter -- all that matters is that the domain name resolves to an IP hosted on your server.
The hostname of your server should resolve... if it doesn't, odd things could happen :-)
You'd at least want to make sure an entry for your hostname existed in your /etc/hosts file.
Does anything out of the ordinary show up if you go into System Settings, and click Re-Check Config?
-Eric
This is what I'm getting now.
Your Postfix configuration is missing the system's mail hostname happydaybakeshop.com from the mydestination line, which will cause mail to bounce.
I fixed this configuration issue. When messing around with settings I deleted a comma in the mydestination line. Now the check is fine.
Mail still isn't hitting the server from outside. I'm testing it with Wormly putting in the following
SMTP Server: 67.9.168.60
Sender Email: steve@burkefreelance.com
Recipient Email: steve@burkefreelance.com
I get the following error.
Connecting...
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
Message sending failed.
I am behind a NAT and have port 25 being forwarded. Postfix is running. What else am I missing here?
Howdy,
Hmm, well, I attempted to connect to a few ports on the IP 67.9.168.60... port 25 (SMTP), 80 (http), 110 (POP), and 10000 (Webmin/Virtualmin) -- none of those worked, I received a Connection Refused error for each of those.
Are you certain that the port forwarding is setup correctly?
Also, some ISP's block certain ports -- it's possible that your ISP is blocking those ports.
-Eric
I can confirm that. Telnet connects fail, ping fails, a traceroute from my server stops here:
My assumption is the same as Eric's. Incorrect port forwarding, some firewall or ISP blocking ports before your PC. Or maybe your Internet connection is not permanently up?
First of all thanks for the help. I do appreciate it immensely. Sorry for the wild goose chase but I did learn some in the process. It turned out my router just decided to stop working and nothing was being forwarded through. I reset the router & everything started working again. Initially I thought things were working since I was testing within my local net, which always trips me up. I have a Netgear WNDR3700. Have any of you guys heard of issues like this with Netgear routers?
Again thanks.
Howdy,
Glad to hear you got it working!
That's actually the same router I use here at home. I haven't had that sort of problem before, though I don't do much port forwarding with it :-)
Have a good one!
-Eric
Good luck with your further hosting endeavors! :)
I'm myself using a FritzBox as home router (I like the tight integration of DSL modem, router, access point, VPN host, DECT phone base, ISDN VoIP gateway, fax reception, answering machine, ...) Port forwarding works okay with it, am using it for some stuff like [cough]filesharing[cough].
I'm not (currently / anymore) using it for hosting purposes at home though, got my VMWare root server for that. :)