Bug 58965

Summary: When attempting to send email, headers incomplete; SMTP servers reply: "5.0.0 Need RCPT (recipient)".
Product: [Applications] kmail Reporter: Yaman Salahi <yaman>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Yaman Salahi 2003-05-26 09:54:56 UTC
Version:           1.5.2 (using KDE KDE 3.1.2)
Installed from:    Gentoo Packages
Compiler:          gcc3.2 
OS:          Linux

Whenever I try to send an email, I get the following error from the SMTP server:
	5.0.0 Need RCPT (recipient)

Apparently, KMail is skipping the RCPT field (despite the fact that i have put addresses in the To and Cc fields in the composer window).

I have tried using other SMTP servers, but they all give the same error.
Comment 1 Stephan Kulow 2003-05-26 09:59:35 UTC
can you provide some tcpdump/ethereal data? 
Comment 2 Yaman Salahi 2003-05-26 17:40:31 UTC
I was able to send email again by deleting all emails in my outbox. For some reason, there 
happened to be a lot of empty emails in there, including the one I was trying to send. 
 
I do not know why this fixed the problem-- perhaps further investigation needs to be done in 
order to see what was actually happening, because this *is* a bug in KMail. 
Comment 3 Stephan Kulow 2003-05-26 20:08:06 UTC
then your index got corrupted. 
Comment 4 Stephan Kulow 2003-09-24 07:36:34 UTC

*** This bug has been marked as a duplicate of 43931 ***
Comment 5 mi+kde 2004-07-07 18:32:42 UTC
Nope, this bug is distinct from 43931. I have a message in my outbox now, which has all the headers and the body intact, yet kmail is unable to send it -- ``503 5.5.2 Need Rcpt command'' responds the Exchange server.

A sendmail server responds with a very similar message.

I have the Ethereal dump of the SMTP session available, but would rather not post it publicly. Please, contact me directly for a copy. It goes like this:

	EHLO ...
	250 .... Hello
	[ACK] .....
	MAIL FROM
	250 2.1.0 ..... Sender OK
	[ACK]
	503 5.5.2 Need Rcpt command.
	RSET
	250 2.0.0 Resetting

I think, it is those [ACK]s, which Ethereal does not expand as part of SMTP, that break things, but I am not sure.

How did I get to this state? I started replying to an e-mail (with an external editor), got distracted, and -- by an unrelated action -- managed to crash kmail.

When kmail restarted, my partially constructed response was resurrected (very nice) and I finished typing it. I exited the external editor and hit the "Send" button. The message -- with proper headers and full body -- is now in my outbox but I can not push it out through any of the SMTP servers around here (Exchange and sendmail).