Bug 229844 - Sending Failed. hostname missing in EHLO command
Summary: Sending Failed. hostname missing in EHLO command
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-07 17:06 UTC by Gerhard Gappmeier
Modified: 2010-03-25 13:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
KMail error message (33.51 KB, image/png)
2010-03-07 17:07 UTC, Gerhard Gappmeier
Details
Wireshark record of SMTP problem (107.52 KB, image/png)
2010-03-07 17:08 UTC, Gerhard Gappmeier
Details
config1 (30.65 KB, image/png)
2010-03-07 17:09 UTC, Gerhard Gappmeier
Details
config2 (40.71 KB, image/png)
2010-03-07 17:09 UTC, Gerhard Gappmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
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.