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
333 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
  • 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This short article will present "How to import ICS Calendar onto Office 365 Calendar". I was searching for free (or not free) tools to convert ICS to CSV without success. The only tools I found & working well were online tools...this was too hard to…
Automapping, a wonderful feature with Exchange 2010 (SP2 onwards I believe), allows additional/Shared mailboxes that a user has access to be automatically mapped on Outlook client, simplifying the process by adding them while Outlook launches. Ho…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now