Bug 331976 - Wrong error message on "address rejected" error.
Summary: Wrong error message on "address rejected" error.
Status: RESOLVED FIXED
Alias: None
Product: kmailtransport
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 15:10 UTC by Bernhard Scheirle
Modified: 2022-10-24 04:05 UTC (History)
0 users

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 Bernhard Scheirle 2014-03-10 15:10:21 UTC
This is maybe just an translation bug, since i don't know how to change the language of error messages. ( Bug 331969 )

Scenario:
User sender@host.de tries to send an email from invalid@host.de to recipient@host.de.
invalid@host.de is not owend by sender@host.de

This leads to following Error (German):
Fehler beim Übertragen der Nachricht. Mailversand fehlgeschlagen, da die folgende Empfängeradresse vom Server abgelehnt wurde: recipient@host.de (Meldung des Servers: 5.7.1 <invalid@host.de>: Sender address rejected: not owned by user sender@host.de)

Translation:
Error transferring message. Mail delivery failed because the following _recipient_ address was rejected by the server : recipient@host.de 
( message from server : 5.7.1 <invalid@host.de> : Sender address rejected : not owned by user sender@host.de )

As you can see kmail misinterpreted the message from the server.


I also tried this with a different server and got a different but vaild error message:
German:
Fehler beim Übertragen der Nachricht. Der Server akzeptiert die Absenderadresse invalid@host.de nicht. 
Meldung des Servers: Requested action not taken: mailbox unavailable Sender address is not allowed.

Translation:
Error transferring message. The server does not accept the sender address invalid@host.de. 
Message from server: Requested action not taken: mailbox unavailable Sender address is not allowed.

Reproducible: Always

Steps to Reproduce:
1. Send an email from an email address, which you don't own.
Actual Results:  
A misleading error message. (depends on the server)

Expected Results:  
An accurate error message
Comment 1 Bernhard Scheirle 2016-09-08 08:45:05 UTC
It is not a translation error.

English Message:
Failed to transport message. Message sending failed since the following recipients were rejected by the server:  recipient@host.de (The server responded: "5.7.1 <invalid@host.de>: Sender address rejected: not owned by user sender@host.de")

The Problem is that kmailtransport assumes that the mta immediately reports errors.
But by default postfix delays the reporting of errors and reports them after the "RCPT TO:" command. [1]
kmailtransport therefore assumes that there was an error with the recipients.

Forcing postfix to report errors immediately fixes this error, but has other disadvantages [2].

[1] http://www.postfix.org/postconf.5.html#smtpd_delay_reject
[2] http://www.postfix.org/SMTPD_ACCESS_README.html#timing
Comment 2 Justin Zobel 2022-10-24 00:46:48 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bernhard Scheirle 2022-10-24 04:05:43 UTC
Error message seems to be fixed in at least "kmail2 5.21.1 (22.08.1)":
Fehler beim Übertragen der Nachricht. Serverfehler: 5.7.1 <invalid@host.de>: Sender address rejected: not owned by user sender@host.de

Translation:
Error transferring message. Server Error: 5.7.1 <invalid@host.de>: Sender address rejected: not owned by user sender@host.de