please help me this, im new with linux centOS mail server.
everytime i send email (ex. yahoo account), cannot send.
this error will be sent back to me -> cannot resolve PTR record on "client ip"
Email relies on a working DNS, as you have discovered. In order for it to work correctly, you need to have both a forward and reverse maping.
In your DNS configuration folder, there should be several files. Some of these files will point to localhost, which are used to provide root hints, or in other words are used to help resolve unknown addresses. Two of the files will define a forward and reverse mapping.
For example, here are two lines from my server's mapping for a printer with a static IP. Note, there are not public IP addresses, nor are they publically addressable.
Forward mapping: magicolor IN A 192.168.0.3
Reverse mapping: 3 IN PTR magicolor.debian.lan.
The first line defines the name (magicolor) and points this to the lan IP. the second line takes the address and is a POINTER to the name. It sounds like this is what is missing.
Both entries need to be in the SOA or start of authority record for the LAN.
For my server, these definitions look like this:
IN SOA server.debian.lan. admin.debian.lan. (... with the definitions above going here in a () block.
Two other important points. One, the final '.' is important to define the FQDN (fully qualified domain name). Two, in these files, the column in which entries appear and white space are important!
You must figure out which DNS server is in charge of your address range. For a business, it is either self housed or at an ISP. For residiential, likely it is an ISP.
This is the DNS server that must have your PTR record, you cannot change anything locally to affect the change.
These IP addresses look weird, but OK - I'll roll with it...
You don't want to be pointing your PTR at your gateway address, you want to be pointing it at the server address.
Looking at the 2 IPs your provided I'm going to assume that either your server is not running a static IP visible to the outside (NAT) or it's not on the same network as that gateway, which means the gateway needs to be set up to route any traffic it gets for mail purposes to the IP of your mail server. That would probably be ports 25 and 110 for sure, and I'm not sure if there are any others.
Something is really weird in this configuration....
So your mail transfer agent is attempting to send the message to the next hop, which is the gateway and it is saying that it can't resolve it.
Is your MTA configured to relay through your ISP or do you have your relay configured to relay to your gateway?
The dns PTR issue appears to be with your gateway. As the previous posts stated, the resolve.conf points to the DNS, and these servers need to be able to resolve this gateway.
I would try setting your relay host to the SMTP server of your ISP, assuming you haven't. One advantage of this is that it is undoubtedly a "registered" mail sender meaning that most recipients will white list it, while if you attempt to launch the message directly, many recipients may bounce it.
Guys..........
Just out of curiosity. Is there a way to make a quick reverse pointer in /etc/hosts and not have setup a reverse zone?
[root@netwatch ~]# yum remove windows
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: windows
No Packages marked for removal
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.