Avatar of merhi2405
merhi2405

asked on 

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

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?
Email Servers

Avatar of undefined
Last Comment
Computer101
Avatar of jar3817
jar3817

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.


Avatar of merhi2405
merhi2405

ASKER

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?
Avatar of jar3817
jar3817

oh...I assumed since you were in the sendmail section, you were using sendmail.

Are you using exchange or just ms smpt (iis) ?
Avatar of merhi2405
merhi2405

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Email Servers
Email Servers

Within Internet message handling services (MHS), a message transfer agent or mail transfer agent (MTA) or mail relay is software that transfers electronic mail messages from one computer to another using a client–server application architecture. A MTA implements both the client (sending) and server (receiving) portions of the Simple Mail Transfer Protocol (SMTP). The terms mail server, mail exchanger, and MX host may also refer to a computer performing the MTA function. The Domain Name System (DNS) associates a mail server to a domain with mail exchanger (MX) resource records containing the domain name of a host providing MTA services.

27K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo