I recently changed my mail provider and now I'm unable to receive emails from crontab. In my maillog:
Sep 12 02:57:25 myhostname postfix/qmgr: 4BEE35D8005A: from=<email@example.com>, size=886, nrcpt=1 (queue active) Sep 12 02:57:28 myhostname postfix/smtp: 4BEE35D8005A: to=<firstname.lastname@example.org>, relay=mx.newmailserver.com[XXX.XXX.XX.XX]:25, delay=144207, delays=144204/0.01/1.3/1.8, dsn=4.7.1, status=deferred (host mx.newmailserver.com[XXX.XXX.XX.XX] said: 450 4.7.1 Client host rejected: cannot find your hostname, [YYY.YYY.YYY.109] (in reply to RCPT TO command))
In my resolv.conf:
nameserver YYY.YYY.YYY.22 search com
This server points to a subdomain of mine. The result of dig myhostname.localdomain:
;; QUESTION SECTION: ;myhostname.localdomain. IN A ;; AUTHORITY SECTION: 54766 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016091600 1800 900 604800 86400
I've read that this 'Client host rejected' error is related to reverse PTR, but I have no idea where and what I have to write in this record.
PS: the names starting with my and the IP numbers were changed, but the rest is exaclty as it is writen (ex: nameserver, localdomain...)