nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

PEC Bridge: mail not delivered with no notification to the recipient #6074

Closed lucagasparini closed 2 years ago

lucagasparini commented 2 years ago

In some cases the NethServer SMTP server refuses the delivery of the message downloaded from the pec bridge fetcher and the recipient of the PEC has no evidence of this. A classic example is exceeding the maximum message size limit that prevents delivery. In this case it is necessary to notify the recipient of the non-delivery with a message.

Steps to reproduce

Expected behavior

Actual behavior

Components

nethserver-webtop-pecbridge

nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

gsanchietti commented 2 years ago

Test case Check the bug is not reproducible

lucagasparini commented 2 years ago

With the new rpm, the recipient receives an e-mail notification like this:

WebTop-5-LG-

The log shows the sending of the notification:

15:39:26.713 [Mailboxes] ERROR com.sonicle.pecbridge.Mailbox - messaging error during transfer of message
com.sun.mail.smtp.SMTPSendFailedException: 552 5.3.4 Error: message file too big

        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2267)
        at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2045)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1260)
        at com.sonicle.pecbridge.Relay.sendMessage(Relay.java:108)
        at com.sonicle.pecbridge.Mailbox.trasnferMessages(Mailbox.java:89)
        at com.sonicle.pecbridge.Main.run(Main.java:198)
        at java.lang.Thread.run(Thread.java:748)
15:39:27.770 [Mailboxes] ERROR com.sonicle.pecbridge.Mailbox - mail notification of the error has been sent to lucag@ns20.neth.eu

The bug can be considered fixed 👍

nethbot commented 2 years ago

in 7.9.2009/nethesis-updates: