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
340 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Postfix issues with spam/auth attempts under NAT 9 129
Weekend adv creator 3 64
Exchange 2010 DAG 18 67
Gmail with domain mail 8 29
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…
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 User 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 >> Mailb…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 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