Bug 89800 - can't send email kmail doesn't send correct EHLO command
Summary: can't send email kmail doesn't send correct EHLO command
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: smtp (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-19 09:23 UTC by Benjamin Geyer
Modified: 2007-12-27 19:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Geyer 2004-09-19 09:23:24 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
OS:                Linux

when sending mail over SMTP, kmail gives the following error (in german):
Das Versenden ist fehlgeschlagen:
Unbekannter Fehler
Unerwartete Server-Antwort auf Befehl EHLO.
Meldung des Servers: Syntax: EHLO hostname

translation:
sending mail failed
unexpected response from server to EHLO command
report from server: Syntax: EHLO hostname

Error is reproducable in my setup, already tried recompiling the whole tree of gentoo dependencies but the error remained.

according to my servers logfile, kmail doesn't send the hostname after EHLO.
Comment 1 Tom Albers 2004-09-19 18:23:12 UTC
Could you check your hostname using the command `hostname` and see if this is correct? Could you check if you change this value the mail can be sent?
Comment 2 Benjamin Geyer 2004-09-19 23:24:15 UTC
hostname returns the correct hostname, problem stays the same if I change the hostname
Comment 3 Marc Mutz 2004-10-07 19:44:21 UTC
Please tell me the email server (hostname and port) you try to connect to in private mail. I don't need the password/login to test EHLO/HELO, so don't send it :)
Comment 4 Benjamin Geyer 2004-10-08 08:05:04 UTC
Thanx for your reply!
It's mail.webspacezone.de running Postfix 2.1
I forgot adding in the bugreport that it works for me with mozilla's 
mailclient, so it can't be misconfiguration of my DSL/ISDN-router as 
some other user reported.

Benjamin

Marc Mutz wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>You are a voter for the bug, or are watching someone who is.
>        
>http://bugs.kde.org/show_bug.cgi?id=89800        
>
>
>
>
>------- Additional Comments From mutz kde org  2004-10-07 19:44 -------
>Please tell me the email server (hostname and port) you try to connect to in private mail. I don't need the password/login to test EHLO/HELO, so don't send it :)
>  
>

Comment 5 Marc Mutz 2004-10-24 18:35:31 UTC
Works for me. If it doesn't work for you, please do either of the following:

1. If you're not using SSL/TLS, then make a log of the connection with e.g. ethereal. In this case, please provide the log in human-readable form, not as the ethereal binary log format.

2. Otherwise, in kdebase/kioslave/smtp/smtp.cc, line ~270, in sendCommandLine(), the first two lines are commented out. Please remove the "//" comments in front of them, recompile and install, then catch the debug output those two generate (I always start "kdeinit" in a shell, so all debug output gets redirected there, but there might be better ways) and send them to me in private mail. The interesting line is actually the server response to the EHLO, and that one is already printed (search the debug output for lines containing "S:").

Thanks,
Marc
Comment 6 Michael Brade 2004-10-28 14:49:59 UTC
As I promised to Benjamin I have captured the protocol with my
KMail as well. Here it is (it works for me as well):

220 kokytos.rz.informatik.uni-muenchen.de ESMTP Postfix (Debian/GNU) 
EHLO dhcp27.dhcp.informatik.uni-muenchen.de 
250-kokytos.rz.informatik.uni-muenchen.de 
250-PIPELINING 
250-SIZE 52428800 
250-VRFY 
250-ETRN 
250-STARTTLS 
250-XVERP 
250 8BITMIME 
MAIL FROM:<brade@informatik.uni-muenchen.de> SIZE=1492 
RCPT TO:<---@-----.---> 
DATA 
250 Ok 
250 Ok 
354 End data with <CR><LF>.<CR><LF> 
From: Michael Brade <brade@informatik.uni-muenchen.de> 
...

Interesting is that 'hostname' returns "newton" on my computer,
but the EHLO command got the name that was assigned using
DHCP to me. Could it be that on Benjamin's computer the process of
getting the name works but returns an empty string due to a
misconfiguration or the like?

Cheers,
  Michael
Comment 7 Marc Mutz 2004-10-29 18:39:51 UTC
> Interesting is that 'hostname' returns "newton" on my computer, 
> but the EHLO command got the name that was assigned using 
> DHCP to me. Could it be that on Benjamin's computer the process of 
> getting the name works but returns an empty string due to a 
> misconfiguration or the like? 

I would rather think it's that hostname(1) returns sth from a config file while kio_smtp makes a reverse DNS lookup on the interface address. But I don't think it's got to do with the hostname. You can send almost anything there, normally. Might be that the server wants us to go away due to excessive load and returns a 4xx response to EHLO (or in the greeting). But then again, that works perfectly well with the epost servers (complete with KMail adding "This is a temporary failure, you can try again later"), and those're often overloaded...
Comment 8 Thomas McGuire 2007-12-12 23:37:51 UTC
Reassigning the bugs of the SMTP, IMAP and POP ioslaves to kdepim-bugs.
Comment 9 Thomas McGuire 2007-12-12 23:39:27 UTC
Undo autoconfirm.
Comment 10 Thomas McGuire 2007-12-27 19:17:55 UTC
Closing, this works for me. If someone can still find a way to reproduce the problem, please reopen.