LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-08-2008, 02:49 AM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Rep: Reputation: 38
Forcing sendmail to use HELO


My MX server is trying to send email to @itcbd.com but every time it is failing as it is first trying to EHLO and is being greeted with the following error message:

Code:
402 4.5.2 Error: command not recognized
It is obvious that the MX server for the @itcbd.com does not implement the EHLO command. For some reason, my MX server is not trying HELO after encountering the error message. I am using sendmail version 8.13.8. Is there any remedy?

MX servers for @google.com also does not implement the EHLO command, but my MX server manages to revert to using HELO and send emails to @google.com without any issue.

Is there any way I can instruct sendmail to use HELO by default?
 
Old 10-08-2008, 03:00 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
I think you are getting confused or are misunderstanding.

An MX is for clients to determine how to send mail. So your Sendmail system is an MX in the receiving aspect. For sending mail, it is an SMTP client or MTA.

Both domains you indicate accept EHLO:

Code:
$ host itcbd.com 
itcbd.com has address 116.212.108.236
itcbd.com mail is handled by 10 mx-in-01.telnet-bd.com.

$ telnet mx-in-01.telnet-bd.com 25
Trying 116.212.104.91...
Connected to mx-in-01.telnet-bd.com.
Escape character is '^]'.
220 mx-in-01.telnet-bd.com ESMTP server of Telnet Communication Limited (Telnet). Sending Unsolicited Commercial or Bulk E-mail or SPAM to/from TELNET Computer Network is Strictly Prohibited. Any Attempt Of This Type Of Abuse Will Cause From Termination Of Network Connectivity Up To Activity Of Law Enforcement Agencies.
EHLO example.com
250-fortune-01.telnet-bd.com
250-PIPELINING
250-SIZE 20480000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.

$ host google.com
google.com has address 72.14.207.99
google.com has address 209.85.171.99
google.com has address 64.233.187.99
google.com mail is handled by 10 smtp3.google.com.
google.com mail is handled by 10 smtp4.google.com.
google.com mail is handled by 10 smtp1.google.com.
google.com mail is handled by 10 smtp2.google.com.

$ telnet smtp3.google.com 25         
Trying 64.233.183.25...
Connected to smtp3.google.com.
Escape character is '^]'.
220 smtp.google.com ESMTP
EHLO example.com
250-smtp.google.com Hello mail.sample.net [10.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 20000000
250-STARTTLS
250-DELIVERBY
250 HELP
quit
221 2.0.0 smtp.google.com closing connection
Connection closed by foreign host.
Looks like EHLO is supported to me!
 
Old 10-08-2008, 03:11 AM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Original Poster
Rep: Reputation: 38
Thanks for helping me get the terms right. EHLO does not work from my end:

Code:
[root@mx2 ~]# telnet smtp3.google.com 25
Trying 64.233.183.25...
Connected to smtp3.google.com (64.233.183.25).
Escape character is '^]'.
220 smtp.google.com ESMTP
EHLO example.com
500 5.5.1 Command unrecognized: "XXXX example.com"
quit
221 2.0.0 smtp.google.com closing connection
Connection closed by foreign host.
[root@mx2 ~]# telnet mx-in-01.telnet-bd.com 25
Trying 116.212.104.91...
Connected to mx-in-01.telnet-bd.com (116.212.104.91).
Escape character is '^]'.
220 mx-in-01.telnet-bd.com ESMTP server of Telnet Communication Limited (Telnet). Sending Unsolicited Commercial or Bulk E-mail or SPAM to/from TELNET Computer Network is Strictly Prohibited. Any Attempt Of This Type Of Abuse Will Cause From Termination Of Network Connectivity Up To Activity Of Law Enforcement Agencies.
EHLO example.com
402 4.5.2 Error: command not recognized
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@mx2 ~]# telnet mx-in-01.telnet-bd.com 25
Trying 116.212.104.91...
Connected to mx-in-01.telnet-bd.com (116.212.104.91).
Escape character is '^]'.
220 mx-in-01.telnet-bd.com ESMTP server of Telnet Communication Limited (Telnet). Sending Unsolicited Commercial or Bulk E-mail or SPAM to/from TELNET Computer Network is Strictly Prohibited. Any Attempt Of This Type Of Abuse Will Cause From Termination Of Network Connectivity Up To Activity Of Law Enforcement Agencies.
HELO example.com
250 fortune-01.telnet-bd.com
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@mx2 ~]#
 
Old 10-08-2008, 03:15 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
There is some firewall or SMTP proxy in the way stripping the EHLO and replacing it with XXXX. Can you disable this borked appliance?
 
Old 10-08-2008, 04:07 AM   #5
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Original Poster
Rep: Reputation: 38
@Mr. C.

Thanks a lot!!!

Our Internet Gateway router was only allowing "RFC 821 SMTP commands". I have managed to fix it.
 
  


Reply

Tags
helo, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail forcing to use a particular MX the_gripmaster Linux - Server 8 08-28-2008 04:59 AM
sendmail: aol HELO problem leif_84 Linux - Server 2 12-11-2007 12:06 AM
Forcing sendmail to always use a relay ericcarlson Linux - Software 2 07-26-2004 06:00 PM
Sendmail settings. Will sendmail always answer "helo". (and tracing blocked port 25) Bjorkli Linux - Networking 5 05-24-2004 04:13 AM
Sendmail question! Forcing FROM lines from local users? Bungo2000 Linux - Networking 5 12-15-2003 11:37 PM


All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration