An account in mailspring can not be set up when the SMTP server refuses to send to ‘email@invalid.com’. This behavior is strange. We have a server that is limited in which domains it relays to, ‘invalid.com’ is not one of them of course. There should at the very least be an override button in the interface to skip such a verification but in my opinion it would be better not to use this verification at all.
To Reproduce…
The description above should give enough of an indication on how to reproduce this.
Expected Behavior
Frankly, I wouldn’t expect an email client to send to ‘email@invalid.com’ to verify its configuration. But if you absolutely must, then you should at least give an option to proceed in any case when verification fails.
Setup
OS and Version: Debian Testing and Ubuntu 20.04
Installation Method: DEB , snap
Mailspring Version: 1.9.1
Additional Context
Is there a workaround that would allow me to use mailspring until this is fixed?
No, in my case we have the same server for IMAP and SMTP, but the mail server in question is for internal communication only. It’s configured to refuse to relay to any domains that are not specifically listed. So, it fails the test because the server refuses to send to ‘invalid.com’. I do not want to skip SMTP configuration. I guess our use case makes the SMTP test of mailspring fail leaving me unable to complete the account configuration. I would rate this as a bug, not a feature request.
Yeah this is definitely a bug, and a showstopper at that. I can’t add my gandi.net email to Mailspring because gandi.net’s SMTP server won’t send to a domain that doesn’t exist. So right off the bat, I can’t use Mailspring. Here’s the log when trying to setup a gandi.net email address…
----------SMTP----------
220 mail.gandi.net ESMTP Postfix
OpenSSL version: OpenSSL 1.1.0f 25 May 2017
init
EHLO ACER
250-mail.gandi.net
250-PIPELINING
250-SIZE 35651584
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN ****
235 2.7.0 Authentication successful
MAIL FROM:<me@mydomain.com>
250 2.1.0 Ok
RCPT TO:<email@invalid.com>
450 4.1.2 <email@invalid.com>: Recipient address rejected: Domain not found
SASL_PATH:
SMTP Last Response Code: 450
SMTP Last Response: 4.1.2 <email@invalid.com>: Recipient address rejected: Domain not found
As you can see, part of the account setup process is to send a test message to email@invalid.com, which fails because invalid.com isn’t a real domain so gandi’s SMTP server rejects it outright.
Outlook setup sends a setup/test email to the account being registered. I think this is what Mailspring should do (for this specific issue).
If one of the “big dogs” does this, I think it’s a safe bet. Not only that the domain being registered must be valid and the same domain/network, thus resolving both issues mentioned here
I’m getting the exact same problem when trying to setup my mailbox.org account - but what really puzzles me is that it worked just fine yesterday. Then after I did a clean reinstall of Win 11 I can’t even set it up (for what it’s worth I updated Windows to 22H2 - but everything else should be the same, i.e. same version of Mailspring (1.10.5)). The account works just fine with other clients.
I’d really appreciate it if a fix could be released soon.
The log message I’m getting (same as above):
----------SMTP----------
220 smtp102.mailbox.org ESMTP Postfix
OpenSSL version: OpenSSL 1.1.0f 25 May 2017
init
EHLO X-Surface
250-smtp102.mailbox.org
250-PIPELINING
250-SIZE 143699726
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
AUTH PLAIN [redacted]
235 2.7.0 Authentication successful
MAIL FROM:<me@mydomain.com>
250 2.1.0 Ok
RCPT TO:<email@invalid.com>
450 4.1.2 <email@invalid.com>: Recipient address rejected: Domain not found
SASL_PATH:
SMTP Last Response Code: 450
SMTP Last Response: 4.1.2 <email@invalid.com>: Recipient address rejected: Domain not found
I tried to update an account and I’m too now getting an error
I have submitted a PR here. Used the compiled DLL in my Windows PC and it worked.
You can compile my code and use the compiled mailcore2.dll to replace your old one, or you can take the one I have saved on a pretend release on my fork and use that. I’d recommend renaming the old one rather than replacing it, just in case.
In Windows, you can find the file to replace at C:\Users\[YOUR_USERNAME]\AppData\Local\Mailspring\app-1.10.5\resources\app.asar.unpacked/
Hey @bengotow/@Phylu , this seems to be a larger issue than first expected! Don’t know if there’s been some specification changes that are causing these issues now.
Hello there, I have the same problem with Elementary OS/ Ubuntu.
250 2.1.0 Ok
RCPT TO:<email@invalid.com>
450 4.1.2 <email@invalid.com>: Recipient address rejected: Domain not found
SASL_PATH: /usr/share/mailspring/resources/app.asar.unpacked
SMTP Last Response Code: 450
SMTP Last Response: 4.1.2 <email@invalid.com>: Recipient address rejected: Domain not found
@Katakurinna to other client… or any working version of MailSpring. We need a functioning IMAP and connection capability.
Any other version to recommend ? As log shows that the issue is not the SMTP authentification but the fact that our provider detects that the email@invalid.com relates to a non existing domain.
@cantgetthatping Talking with my company IT department, Its mailspring issue, so I installed BlueMail for now, its a good one, if I mailspring solve the issue I will check if I move back to mailspring.
I’ve got the same problem with Mailspring trying to send an SMTP authentication to email@invalid.com and failing. I had to update the password on my email account and now this Mailspring bug has locked me out and I’ve had to revert to Thunderbird.