I have a new VestaCP install on Centos7. Doing some email checks using mailtoolbox.com I can see the following:
Connecting to 126.96.36.199<br /> <br /> 220 localhost.localdomain.localdomain ESMTP Exim 4.89 Tue, 05 Dec 2017 13:20:51 +1100 [5604 ms]<br /> EHLO PWS3.mxtoolbox.com<br /> 250-localhost.localdomain.localdomain Hello pws3.mxtoolbox.com [188.8.131.52]<br /> 250-SIZE 52428800<br /> 250-8BITMIME<br /> 250-PIPELINING<br /> 250-AUTH PLAIN LOGIN<br /> 250-CHUNKING<br /> 250-STARTTLS<br /> 250 HELP [607 ms]<br /> MAIL FROM:<email@example.com><br /> 250 OK [607 ms]<br /> RCPT TO:<firstname.lastname@example.org><br /> 550 relay not permitted [820 ms]<br /> <br />PWS3v2 8177ms<br />
I was able to change "localhost.localdomain.localdomain" via editing
But the question I have is that correct? and what happens to my other domains I have hosted?
I understood that I should also list them in the EXIM email header in order for them to pass spam tests as well. I only have 1 IP address. If I look at etc/hosts I can see:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Which is what I thought should be controlling the EXIM header?
Should I not have a etc/hosts file that looks like: