hostname not working for any service
Hello all,
I just installed cpanel on a fresh VPS today.
My domain is domain.com
my hostname is vps.domain.com
Things were working fine but my email was going to spam, so I read that banner check was not ok and reverse dns should match with my hostname as informed by the mail hello ...
So I checked my reverse dns and got this info:
My IP: 5.196.x.x
reverse DNS: x.ip-x-196-5.eu
So I changed reverse dns to my hostname and it is in this way now:
IP from VPS: 5.196.x.x
Actual reverse DNS: vps.domain.com
Banner check on mxtoolbox is ok now, email is not going to spam anymore but it raised another problem. Any service that uses my hostname on url is not working anymore as vps.domain.com:2087 for example. Of course I still can login using my VPS IP but it is not the best.
Extra information and tests:
MTR from my personal computer show the old reverse dns
Thanks all
root@vps [~]# /scripts/ipcheck --verbose
/scripts/ipcheck: OK: No IP-related problems have been found.
root@vps [~]# hostname
vps.domain.com
PING domain.com (5.196.x.x): 56 data bytes
64 bytes from 5.196.x.x: icmp_seq=0 ttl=51 time=209.030 ms
root@vps [~]# cat /etc/exim.conf|grep primary_hostnam
smtp_banner = "${primary_hostname} ESMTP Exim ${version_number} \
# primary_hostname =
# not set, the primary_hostname value is used for qualification.
# if ($sender_helo_name eq $primary_hostname) {
condition = ${if eq{${lc:$sender_helo_name}}{${lc:$primary_hostname}}{${if def:sender_host_address {${if match_ip{$sender_host_address}{+loopback}{0}{1}}}{0}}}{0}}
warn domains = ! ${primary_hostname} : +local_domains
warn domains = ${primary_hostname}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$original_domain}lsearch{/etc/mailhelo}{$value}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}}}}}{$primary_hostname}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$original_domain}lsearch{/etc/mailhelo}{$value}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}}}}}{$primary_hostname}}
MTR from my personal computer show the old reverse dns
mcbproretina-2.local (0.0.0.0) Fri Apr 3 21:42:12 2015
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. b1520c01.virtua.com.br 28.6% 21 13.6 16.4 12.7 24.1 3.3
2. bd040070.virtua.com.br 0.0% 21 15.2 15.4 11.2 28.6 3.4
3. embratel-T0-1-0-2-uacc01.ctamr.embratel.net.br 0.0% 21 13.4 16.8 12.2 45.3 7.4
4. 200.244.212.183 0.0% 21 19.7 18.5 13.4 33.0 3.6
5. ebt-B1452-intl02.nyk.embratel.net.br 0.0% 20 132.7 136.2 132.7 140.1 1.7
6. nyk-b3-link.telia.net 0.0% 20 141.1 133.9 130.6 141.1 2.2
7. nyk-bb2-link.telia.net 0.0% 20 145.2 138.1 130.9 193.8 13.8
8. nyk-b2-link.telia.net 0.0% 20 134.3 133.1 129.2 135.8 1.7
9. ???
10. ???
11. rbx-g1-a9.fr.eu 0.0% 20 227.6 216.9 206.4 236.7 10.6
12. rbx-s10-a9.fr.eu 0.0% 20 231.4 221.4 217.4 231.4 3.2
13. 4.ip-5-196-5.eu
Thanks all
-
everything starts to work now, I think that also there is a propagation time for reverse dns, I will keep this post here because it also shows how to fix banner check, emails going to spam and also how to set a reverse dns. Thanks all 0 -
Hello, I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
2 comments