Solved

I m not able to send emails to some addresses. I get error message: "Helo command rejected:need fully-qualified hostname"

Posted on 2007-03-28
7
342 Views
Last Modified: 2013-12-18
I have a problem with sending messages to very few email addresses. When I send to these addresses I receive the following message: "<Servername #5.5.0 smtp;504 <Servername>: Helo command rejected:
need fully-qualified hostname>".

The server generating this message is a Mail Relay, located in a DMZ of a CISCO ASA (Firewall).

Ports 25 and 110 (smtp and POP3) are open to the external interface of the firewall. When I try to do a telnet session (open x.x.x.x 25) from external to my Mail Relay I get "200***********************************"
I tried the following command at the Firewall: "no fixuo protocol smtp 25", and I could opn a telnet session, but I wasnot able to send not receive emails through the Mail Relay.
CAn anybody help me?
0
Comment
Question by:merhi2405
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 18807840
As the error message states, you NEED to have a fully qualified domain name in your HELO/EHLO greeting. The reason you get this error sometimes is because not everyone is strict about this. This is one tactic I personally use to filter out spam as spammers rarely have RFC compliant mail servers.

I think you can fix this a couple ways.  The first to try is setting the hostname variable on the server. If you login as root and type: "/bin/hostname" it should spit out your server's name (the unqualified one). You should set that to the full dns name of the server:

# /bin/hostname mailserver.yourdomain.com

Then restart sendmail. It should start announcing itself

The other setting (if I remember correctly) is in the /etc/mail/sendmail.mc file:

MASQUERADE_AS(`mailserver.yourdomain.com')dnl

Tweak that line, backup your /etc/mail/sendmail.cf file, recreate the sendmail.cf file:

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

and restart sendmail.


0
 
LVL 1

Author Comment

by:merhi2405
ID: 18814080
Hi,

The mail relay is windows server 2003, how can I do such operations on this OS?

But just to make sure, you mean the name of the server should be the same as the domain name?
0
 
LVL 26

Expert Comment

by:jar3817
ID: 18814942
oh...I assumed since you were in the sendmail section, you were using sendmail.

Are you using exchange or just ms smpt (iis) ?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 1

Author Comment

by:merhi2405
ID: 18816600
Actually i have an exchange server, which relays messages to the mail relay, which is smtp iis. All incoming messages are also realy to  the mail server, and the exchange server retrive incoming mails from there. Actually, the relay is in the DMZ of the firewall and the exchange server is in the internal network.
0
 
LVL 1

Author Comment

by:merhi2405
ID: 18930236
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19271871
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question