Bug 166061

Summary: "Syntactically invalid EHLO argument(s)" for SMTP server on localhost
Product: [Applications] kmail Reporter: David Baron <d_baron>
Component: sendingAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.9.52   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description David Baron 2008-07-08 17:21:40 UTC
Version:           1.9.52 (using 4.00.84 (KDE 4.0.84 (KDE 4.1 >= 20080625), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.23-rt1-davidb

This has been going on in all kde4.* alpha, beta versions of kmail. I am sending mail smtp smarthost using exim4 so sending account is to "localhost".

This is the error I get:
Sending failed:
Unexpected server response to EHLO command.
The server responded: "Syntactically invalid EHLO argument(s)"
The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
The following transport was used:
 012 Smarthost using exim4
Comment 1 Torgny Nyblom 2008-07-09 07:33:09 UTC
Could you attach a copy of the used EHLO string?
You can get this by taking a trace of the ip traffic when trying to send the message, or if you hav access to the server it might have it its log.
Comment 2 Thomas McGuire 2008-07-09 14:11:26 UTC
You could also activate kio_smtp in kdebugdialog, then you'll get the traffic on the console.
We have problems determining the correct hostname for localhost, that is not easily possible with Qt.
FYI, for me it sends: C: >> EHLO pc1.localnet <<

Try setting a fake hostname (either 127.0.0.1 or your real IP, or hostname if you have one) in the SMTP configuration, maybe that'll help (I can't think of another reason why the mail would be rejected).
Comment 3 Thomas McGuire 2008-07-09 14:17:53 UTC
BTW, if this turns out to be the fault of the hostname, this would be a duplicate of bug 34421.
Comment 4 David Baron 2008-07-09 17:23:01 UTC
On Wednesday 09 July 2008 15:17:53 Thomas McGuire wrote:
[bugs.kde.org quoted mail]

I entered a valid host name (the system-wide default is not) and succeeded in 
sending mail. So go ahead and mark as duplicate 34421
Comment 5 Thomas McGuire 2008-07-09 17:28:36 UTC

*** This bug has been marked as a duplicate of 34421 ***