Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am experiencing an error when trying to send mail to certain hosts from my VPS. Here is an example:

SMTP error from remote mail server after MAIL FROM:<someone@mysite.com.com> SIZE=1409: host recipienthost.com [173.236.30.130]: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

I am using exim4 and sendmail. At first I thought it was my host name, so I changed that from a numerical value to my website address.

Does anyone know what's wrong and what I need to do?

Thank you.

share|improve this question
    
I don't think the whole error was pasted properly unfortunately. –  Jonathan Ross Apr 3 '11 at 11:15
    
The error you posted has your domain as .com.com. What is the output of hostname? –  slillibri Apr 3 '11 at 13:48
add comment

3 Answers

It can be your server's hostname. Remember that you need to change it on /etc/hostname, on /etc/hosts and use hostname <newname if you don't want to reboot the server.

share|improve this answer
add comment

Have you checked what your server is sending as it's HELO greeting? An ip address (in square brackets) is valid, as is any FQD domain name.

How did you change the host name? it should be set in /etc/hostname

the remote server has not rejected you immediately after you sent the HELO but waited until you sent MAIL FROM: Although the error said the rejection was due to an invalid helo name the may be doing callback verification. Make sure the MAIL FROM address is valid to rule that out.

share|improve this answer
add comment

You should also check the contents of /etc/mailname

In order to see what exim thinks its hostname is (and will use in the HELO), try grepping the output of exim4 -bP for primary_hostname

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.