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
334 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting up new voicemail with unified messaging 13 65
Bulk Emailing to verious lists 11 84
Exchange 2013 Migration 18 71
SMTP Service 9 36
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create an Accepted Domain 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 >> Ac…

920 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

12 Experts available now in Live!

Get 1:1 Help Now