Bug 126534 - Can't send mail: "Unknown error code 50"
Summary: Can't send mail: "Unknown error code 50"
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 20:15 UTC by Juuso Alasuutari
Modified: 2007-11-23 23:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Failed message from Outbox (59.36 KB, text/plain)
2006-05-04 02:02 UTC, Juuso Alasuutari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juuso Alasuutari 2006-04-30 20:15:17 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Compiled From Sources
Compiler:          gcc 4.0.3 CFLAGS: "-march=pentium-m -mmmx -mfpmath=sse -msse2 -pipe -Os"
OS:                Linux

Trying to send a gpg signed message and/or with attachment through an authenticating mailserver fails with the following message:

  Sending failed:
  Unknown error code 50
  The message content was not accepted.
  The server responded: "<my.isp's.mail.server> Lost connection to [<my.ip.address>]"
  This is a temporary failure. You may try again later.
  Please send a full bug report at http://bugs.kde.org.
  The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
  The following transport protocol was used:
  foo

Sometimes it also asks: "Do you want me to continue sending the remaining messages?" If I answer yes, the message is usually sent. But for some messages it doesn't offer to retry at all.

Sending the exact same messages with same mail settings with sylpheed is no problem. Also sending through my ISP's non-authenticating smtp server with KMail works.

I noticed a few bugs about some mailservers not accepting 8-bit MIME message content. Those error messages were also code 50. I'm not sure if this is the same problem, but if it is, could it have something to do with the message header? I don't see any other reason why the server would happily accept messages sent from sylpheed. On the other hand, I don't know why the same message sent from KMail the second time would differ so that it's accepted.
Comment 1 Thiago Macieira 2006-05-03 19:24:46 UTC
Looks like a bug in your SMTP server...
Comment 2 Juuso Alasuutari 2006-05-03 19:59:26 UTC
How would that explain the fact that the same mails are sent properly with sylpheed? As I said, I think this might be about the message header. If so, could you please help me pinpoint the bit in the header put there by KMail that's rejected by the server? Thus I would have something concrete to complain my ISP about.
Comment 3 Thiago Macieira 2006-05-04 01:22:48 UTC
The fact that there may be slight differences in the message.

Can you attach (zipped) any message that KMail cannot get through, as saved in the Outbox folder?
Comment 4 Juuso Alasuutari 2006-05-04 02:02:48 UTC
Created attachment 15902 [details]
Failed message from Outbox
Comment 5 Juuso Alasuutari 2006-05-04 02:05:41 UTC
There's a failed message ^

I tried again with several messages, of which many got through, but those with a specific attachment file didn't. Attaching a certain jpg image compressed as .tar.bz2 produced failure on all occasions. The same image as plain .jpg file didn't cause any trouble.

All test mails were gpg signed, even those that were sent properly. That invalidates my initial guess that signing is a definite factor, although based on previous experience some messages (long ones?) are not send when signed.
Comment 6 Thiago Macieira 2006-05-04 19:12:15 UTC
I sent the email message through my mail server and it accepted it just fine.
Comment 7 Juuso Alasuutari 2006-05-04 21:44:22 UTC
You're right, most probably the fault is in my ISP. I'll give them a call and mark this bug as resolved. Thank you for your time!
Comment 8 Juuso Alasuutari 2006-05-05 19:10:57 UTC
I'd like this to be reopened. There is definitely something wrong with KMail's ability to contact the servers I use - or with something that KMail depends on. Sending mail through either my ISP's auth or non-auth server, independent of encryption settings, fails with this message:

Sending failed:
Could not connect to host <my.isp's.smtp.host>.

So now it's not only about message content anymore, but making contact in the first place. Telnet also fails to contact the correct server + port.

The reason I'm writing about this again is, that sending with sylpheed still works without problems. Where could I begin to search for a common denominator to KMail and telnet failing, but sylpheed succeeding?
Comment 9 Thiago Macieira 2006-05-05 21:03:06 UTC
That's a completely different issue. Please open a new report.
Comment 10 Jörg Kuhlmann 2007-11-23 23:15:21 UTC
The message I received reads:
Das Versenden ist fehlgeschlagen:
Unbekannter Fehlercode 50
Der Inhalt der Nachricht wurde nicht akzeptiert.
Meldung des Servers: netroom12.de Error: timeout exceeded
Das ist ein vorübergehendes Problem. Bitte versuchen Sie es später nochmals.
Bitte schicken Sie einen ausführlichen Problembericht an http://bugs.kde.org.
Die Nachricht verbleibt im Postausgang, bis Sie entweder das Problem beseitigt haben (z. B. falsche Adresse) oder die Nachricht aus dem Postausgang entfernen.
Das folgende Transportprotokoll wurde benutzt:
Jörg Kuhlmann"

The point is, that I don't use gpg, I DON'T HAVE AN ATTACHEMENT IN THE MAIL I SEND!
After clicking ok, nothing happens, kmail doesn't crash, but refuses to let me open the message I tried to send. By the way: the progress bar shows 90% of the job to be done. Anybody's got an idea? Thanks in advance, jk