Mailspring not setting up account with Modoboa - using fake email address scares Postfix!

Hi,
Mailspring has been working really well the last few days I’ve had it. I’ve run into a problem though with setting up some email accounts. It’s using a mail server called Modoboa, mostly Postfix, Dovecot and the like. However, while IMAP passes the check when pressing “connect account” Postfix is not so kind. It says SMTP connection error at the top, and the logs read:

Dec 25 16:58:21 mo postfix/submission/smtpd[2444]: NOQUEUE: reject: RCPT from 1.1.1.1: 451 4.3.5 email@invalid.com: Recipient address rejected: Server configuration problem; from=me@example.com to=email@invalid.com proto=ESMTP helo=<Mac-mini.local>

I’m not sure if the problem is with Mailspring using email@invalid.com as a test or if there is some other config problem with the server. Anyhow, I’ve never seen an error like that before.

Regards,

Steve

EDIT: I just tried adding the account to another MUA and got the same invalid error … so never mind it is a server config problem.

You diagnosed it correctly, and it was on our side: up through 1.10.6, Mailspring verified SMTP during setup by addressing a test message to email@invalid.com. Postfix (and other strict servers) reject that recipient with errors like 451 Recipient address rejected or “invalid destination domain”, so IMAP would pass and SMTP would fail even though your credentials were fine.

This was fixed in 1.10.7 — the setup check now sends the test message from your address to your own address, so there’s no fake recipient for the server to object to. If anyone lands here on an older build, updating to the current release (1.24.x) will sort it out.