Recoverable SMTP errors cause messages to be stuck in outbox
Bug Summary
An email in my outbox was causing the SMTP server to respond with a 450 error about an incorrect recipient email address.
Instead of showing this error to me, Geary silently ignored the error and tried resending the email, without success. This has caused other messages in the outbox to be stuck, as Geary kept retrying to send the one broken message.
Your installation
- Geary version: 43.0 (gnome-43~gd86265f9)
- Installation method: Flathub
- Desktop environment: Gnome
- Operating system and version: Debian Testing
- Email provider: OVH
Steps to reproduce
- Try to send an email which causes the SMTP server to respond with an error
- Queue other, perfectly ok messages for sending
What happened?
Geary did not inform about the error, and more importantly it did not send other messages.
What did you expect to happen?
Show an error message and simultaneously try sending other emails.
Relevant logs and/or screenshots
[deb] 10:14:40.0530 Geary.Smtp: [goa_account_1663123536_0] [smtp] GearySmtpClientService: Starting outbox postie with 0 messages queued
[deb] 10:14:41.0216 Geary.Smtp: [goa_account_1663123686_2] [smtp] GearySmtpClientService: Outbox postie: Sending "XXX" (ID:GearyOutboxEmailIdentifier(1,1))...
[deb] 10:14:42.0817 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Greeting: 220 GARM-105G006 Tuesday, February 28, 2023
[deb] 10:14:42.0817 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Request: ehlo [192.168.0.100]
[deb] 10:14:43.0416 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Response: 250-OVH SMTP PROXY Hello
250-SIZE 104857600
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
[deb] 10:14:43.0416 Geary.Smtp: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] GearySmtpClientSession: [GearySmtpClientSession(GearySmtpClientConnection(ssl0.ovh.net:465/connected))] Attempting PLAIN authenticator
[deb] 10:14:43.0416 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Request: AUTH PLAIN
[deb] 10:14:44.0011 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Response: 334
[deb] 10:14:44.0011 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: Initiated SMTP PLAIN authentication
[deb] 10:14:44.0011 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP AUTH Challenge recvd
[deb] 10:14:44.0908 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Response: 235 2.7.0 Authentication successful
[deb] 10:14:44.0908 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Request: mail from:<XXX>
[deb] 10:14:45.0472 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Response: 250 2.1.0 Ok
[deb] 10:14:45.0472 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Request: rcpt to:<XXX>
[deb] 10:14:46.0094 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Response: 450 4.1.2 <XXX> <XXX>: Recipient address rejected: Domain not found
[deb] 10:14:46.0094 Geary.Smtp: [goa_account_1663123686_2] [smtp] GearySmtpClientService: SMTP send mail error: "rcpt to:<XXX>" failed: 450 4.1.2 <XXX> <XXX>: Recipient address rejected: Domain not found
[deb] 10:14:46.0094 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Request: quit
[deb] 10:14:46.0695 Geary.Smtp.Net: [goa_account_1663123686_2] [smtp] [GearySmtpClientConnection(ssl0.ovh.net:465/connected)] [ssl0.ovh.net:465/connected] GearySmtpClientConnection: SMTP Response: 221 XXX Service closing transmission channel
[deb] 10:14:46.0772 Geary.Smtp: [goa_account_1663123686_2] [smtp] GearySmtpClientService: Status changed to: unrecoverable-error
[deb] 10:14:46.0772 Geary.Smtp: [goa_account_1663123686_2] [smtp] GearySmtpClientService: Outbox postie exited