Exim on VestaCP rejects sending email from remote desktop client
Hello, currently I have a VestaCP install, it's able to send and receive emails from the webmail (roundcube) however when I try to send any email from a Desktop client (Mozilla Thunderbird or MS Outlook) the mail gets rejected.
I always get the following message:
An error occurred while sending mail. The mail server responded: Helo name contains a ip address (HELO was [192.168.1.50]) and not is valid. Please verify that your email address is correct in your mail preferences and try again.
I have checked the exim logs and they show the same error, the only difference is that they show 2 IP’s (WAN IP and local IP, the computer is behind a router). This problem happens every time a user try’s to send an email and he/she is behind a router.
I have tested the 2 local ISP’s with different router’s and it’s the same issue.
The only addition I made to my install, was installing CSF. I have tested disabling CSF, rebooting the server and the problem persists.
Do you have any suggestions or possible fix?
CSF caused quite a headache with somethings in Vesta.
I know you said you disabled it, but did you disable it this way?
Look for this:
Comment that out, restart exim.
@David_P already did it and still the same problem.
@jarland i'm using Debian 7, already look at /etc/exim4/conf.d I search each directory and file and I didn't find that line.
grep -R "Helo\ name\ contains" /etc
@jarland thanks I found the line on the file exim4.conf.template, but the lines are already commented out.
There aren't more results with grep.
A bit of search on the git from vesta, I have the same config: https://github.com/serghey-rodin/vesta/blob/master/install/debian/exim4.conf.template
Installing on debian 7 real quick, admittedly never ran exim on there so maybe something a little different than I expect.
Alright I installed it on Debian 7 just now. On mine those lines weren't commented out. Maybe check this one too:
@jarland did you find those lines in the same file?
Yeah, just a few lines down.
@jarland just found the new line, and it's also already commentd out.
@jarland I just made a comparision between my exim4.conf.template and the one on git (https://github.com/serghey-rodin/vesta/blob/master/install/debian/exim4.conf.template) and it's the same.
Both configs are already commented out.
Hmm, here's the relevant portion on mine on a fresh install just now. Adding in the rules before and after it. I'm a bit confused because this is definitely what should be generating that error. So if the part if this that isn't commented in my paste below is commented in yours and exim has been started since that happened, I'm really confused why it's still doing it
Actually I just hit the git one, I think you may be looking at the wrong portion for the comment. Check mine above there, looks like the git version. Each line that isn't commented there needs to be commented.
@jarland The only section I found that has those settings is acl_check_mail (my config)
Correct. Comment those four lines, restart exim, problem gone
@jarland I just sended you a PM with a link, can you look at it.
@jarland thanks this worked at a 100
@jarland is a real helpful guy. +1 for him .He helped me before as well