Summary: | Syntactically incorrect EHLO command, unable to use SMTP server | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Lauri Watts <lauri> |
Component: | smtp | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
tcpdump output
tcpdump output |
Description
Lauri Watts
2003-09-23 14:44:30 UTC
Can you provide an ethereal or tcpdump log with the contents of what kio_smtp is sending? *** Bug 64797 has been marked as a duplicate of this bug. *** Created attachment 2562 [details]
tcpdump output
Attached 'tcpdump -vvv port smtp' (if this is not what you want, you'll need to
give me more explicit instructions :)
Machines talking here: Kurant (192.168.15.5) is my workstation, mandarin
(192.168.254.243) is the mail server. 192.168.15.230 is another workstation, I
just didn't want to clip the log in case i clipped it too far.
The attempts are to send without a custom hostname set in KMail, with a custom
hostname set, and then sending (successfully) via local sendmail with mandarin
as the smarthost.
More info: Repeatable on a third server, not running Exim like the first two,
and KMail from 3.1.4 works fine with the same server I'm having trouble with
locally.
Nope, sorry, it doesn't contain the contents of the connection. Can you please try this: tcpdump -nXs 256 port smtp Created attachment 2567 [details]
tcpdump output
Hopefully this one has what you want to know
Hmm, the "check what the server supports" works for me (using mandarin.fruitsalad.org as host; the custom hostname to send is not used by KMail for the check - maybe it should, but that's another question). Your server is slow in getting the greeting across, but then everything proceeds as expected. Can you put a few kdDebug() << m_Hostname << fakeHostname << endl in strategic places in smtp.cc:SMTPProtocol::smtp_open(const QString &), lines 496-513, and send the result? Should the conditional in line 507 perhaps be .isEmpty() instead of isNull()? Lauri: Can you use tcpdump with the -w option to save the raw packets, along with -s 0 (to avoid truncating anything)? And then attach the capture file? Brad: the second log contains the info needed. The ioslave sends an EHLO, followed by a space, then a CRLF. Exactly the same problem here. "Check what the server supports" doesn't work (also on a LAN mail server) and when I try to send mail via my mail server (postfix on FreeBSD 4.7-RELEASE) it complains that no hostname was supplied. I can however use my ISPs mail server to send mail, my ISP uses qmail. I'm running a recent KDE CVS KMail (last week) on FreeBSD 4.7-RELEASE. I find it somewhat interesting that despite Lauri and I using different MTAs (so it can't possible be a MTA problem) we are both running KMail on FreeBSD. Forgot to mention: my mail server isn't publicly accessible via SMTP (firewalled out) however I can easily give an ssh account on it if it would be useful for testing maybe with ssh port forwarding. Mandarin is running pretty slow indeed, it's getting hammered by Swen, poor thing. Changing the isNull() to isEmpty() does the trick, tested by Chris and confirmed by me. Do you still want the debug output in any case? Committed fix. |