Mail sending question
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
Mail sending question
What would cause some mail to take up to 4 hours to be delivered off server? Between users on the server, near instant, off server 4 hours or so and it is to different domains...
Thanks.
Thanks.
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
Could this be related to the failure of reverse lookups for my domains?
From www.dynamicnetworkservices.com
??
Reverse lookup of nameserver IP not found for xxx.xxx.xxx.xxx: NXDOMAIN
Cannot check to see if the reverse lookup of the nameserver IP matches its hostname
CentOS 5 / PSA 8.3 ( in the cp it was set to localhost only, tried each of the other two settings any made it worse and localnet didn't do squat to fix.)
I have in my named.conf file
options {
allow-recursion {127.0.0.1/xxx.xxx.xxx.xxx/24;(repeated for each IP address on server);
};
directory "/var";
auth-nxdomain no;
pid-file "/var/run/named/named.pid";
From www.dynamicnetworkservices.com
??
Reverse lookup of nameserver IP not found for xxx.xxx.xxx.xxx: NXDOMAIN
Cannot check to see if the reverse lookup of the nameserver IP matches its hostname
CentOS 5 / PSA 8.3 ( in the cp it was set to localhost only, tried each of the other two settings any made it worse and localnet didn't do squat to fix.)
I have in my named.conf file
options {
allow-recursion {127.0.0.1/xxx.xxx.xxx.xxx/24;(repeated for each IP address on server);
};
directory "/var";
auth-nxdomain no;
pid-file "/var/run/named/named.pid";
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Recursion and reverse lookups don't have a lot to do with eachother. Reverse lookups need correct PTR DNS records (1 PTR record per IP address) and chances are that your provider owns the IP block you're using, so you'd need to set up these PTR records through them, unless you do manage your own IP block.
Lemonbit Internet Dedicated Server Management
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
OK, since I do virtual hosting each domain needs the same PTR record for the main mail server?
So, since galacticzero.net is the main mail server and has a ptr record for the main IP address on the server, do I put that record in each domain or do I also set the other IP's to point to galacticzero.net also?
so...
xxx.xxx.xxx.1/24 galacticzero.net
xxx.xxx.xxx.2/24 galacticzero.net
etc...
So, since galacticzero.net is the main mail server and has a ptr record for the main IP address on the server, do I put that record in each domain or do I also set the other IP's to point to galacticzero.net also?
so...
xxx.xxx.xxx.1/24 galacticzero.net
xxx.xxx.xxx.2/24 galacticzero.net
etc...
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
You should have one PTR record per IP address, not per domain. If you have a VPS server you probably don't operate the IP block that you're using (if you do, then you'll know). Your server provider maybe provides a control panel to set up reverse DNS (PTR) records, or you might need to email them about it.Galactic Zero wrote:OK, since I do virtual hosting each domain needs the same PTR record for the main mail server?
You don't need a record in every domain's DNS zone.So, since galacticzero.net is the main mail server and has a ptr record for the main IP address on the server, do I put that record in each domain or do I also set the other IP's to point to galacticzero.net also?
You should have:
- An A record that maps your server's hostname to its IP address
- A PTR record that maps the IP address to your server's hostname
You probably have that A record in the DNS zone for galacticzero.net on your server if that's also the nameserver for galacticzero.net, but if you don't own the IP block there is no use in having PTR records on your server. You need to set this up at the IP block owner.
The default Plesk DNS template has an entry for a PTR record I believe, but that's kind of pointless to have if your server provider owns the IP blocks, which is the case most of the time I believe.
Lemonbit Internet Dedicated Server Management
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
I host at The Planet, and have 12 IP's. One is main IP of server, 7 are for single sites , 2 for name servers and 2 are shared hosting.
My server is a physical box, not a VPS.
So, each dedicated IP needs a PTR record pointing to it's IP and domain or the mail server and for the shared IP's what needs to happen?
I remember taking the PTR record out of the DNS template for the reason you mentioned that only one domain per IP has a PTR record.
My server is a physical box, not a VPS.
So, each dedicated IP needs a PTR record pointing to it's IP and domain or the mail server and for the shared IP's what needs to happen?
I remember taking the PTR record out of the DNS template for the reason you mentioned that only one domain per IP has a PTR record.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
I'm sorry, I said VPS because I triggered on the word virtual, but that was just Apache vhosts of course. If you have a dedicated server, you probably still don't operate your own IP block (unless this is different in the US than in Europe). I think you need to talk to The Planet to get your PTR records in order.
Lemonbit Internet Dedicated Server Management
-
- Forum Regular
- Posts: 471
- Joined: Mon Dec 06, 2004 10:43 pm
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Better use the server's hostname instead of a random domain on your server. Causes less confusion in things like mail headers.
Lemonbit Internet Dedicated Server Management