Bug 229844

Summary: Sending Failed. hostname missing in EHLO command
Product: [Applications] kmail Reporter: Gerhard Gappmeier <gerhard.gappmeier>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: KMail error message
Wireshark record of SMTP problem
config1
config2

Description Gerhard Gappmeier 2010-03-07 17:06:50 UTC
Version:            (using KDE 4.4.1)
Compiler:          gcc (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4 
OS:                Linux
Installed from:    Gentoo Packages

Sending mails via STMP fails since my upgrade to 4.4.0.
I've upgraded meanwhile to 4.4.1, but the same problem still exists.

Sending mails via SMTP over a postfix mail server fails,
because the hostname is missing in the EHLO command.
See wireshark screenshot.

I tried to configure a manual hostname in the configuration dialog, but this also didn't work.

I attached the error message, wireshark screenshot as well as my SMTP server configuration.
Comment 1 Gerhard Gappmeier 2010-03-07 17:07:38 UTC
Created attachment 41411 [details]
KMail error message
Comment 2 Gerhard Gappmeier 2010-03-07 17:08:21 UTC
Created attachment 41412 [details]
Wireshark record of SMTP problem
Comment 3 Gerhard Gappmeier 2010-03-07 17:09:14 UTC
Created attachment 41413 [details]
config1
Comment 4 Gerhard Gappmeier 2010-03-07 17:09:56 UTC
Created attachment 41414 [details]
config2
Comment 5 Gerhard Gappmeier 2010-03-25 13:11:25 UTC
I could clarify that problem in IRC #kontact.

The problem was caused by an underscore in the hostname which is in illegal hostname character. Before it worked anyway, but a change in Qt has made hostname parsing more restrictive and this seems to lead to the problem described above (Kmail sends an EHLO without hostname).

Possible workarounds/solutions:
1.) Change your hostname to contain only valid characters.
2.) Override your hostname in KMail SMTP settings with a fake hostname that contains only valid characters.