System emails broken since 1.16.22 (FreeScout 1.8.232): "504 Invalid AUTH string" against internal mail relay
-
Since the package update to FreeScout 1.8.232, system emails (user invites, password resets, "Send Test" under Manage » Settings » Mail Settings) fail on all our instances — 15 production installs and one brand-new test install — with 504 Invalid AUTH string. The SMTP log shows AUTH LOGIN sending an empty password to the internal relay (mail:2525). Regular mailbox sending is unaffected; only the system mailer is broken.
Findings:
options.mail_password in the DB contains the plaintext 48-char value of CLOUDRON_MAIL_SMTP_PASSWORD instead of a Laravel-encrypted value. Current FreeScout evidently no longer tolerates that, reads it as empty → 504.
Re-entering the password via the UI is blocked: saving Mail Settings fails with "Domain or IP address is not allowed: 172.18.x.x / fd00:… — Whitelist it via APP_REMOTE_HOST_WHITE_LIST", because the internal relay host mail resolves to private addresses. So affected users cannot even self-repair through the UI.
Reproducible on a fresh installation.Working workaround:
echo 'APP_REMOTE_HOST_WHITE_LIST=mail,<v4-ip>,<v6-ip>' >> /app/data/env
restart app, then re-enter $CLOUDRON_MAIL_SMTP_PASSWORD in Mail Settings and Save
(CIDR works since FreeScout 1.8.218, so 172.18.0.0/16,fd00::/8 should cover it generically.)
Suggested package fix: ship APP_REMOTE_HOST_WHITE_LIST covering the internal relay in the seeded env, and store the relay password in the encrypted format FreeScout expects. Happy to provide full SMTP logs.
-
Hello @itconstruction
We just published an update for freescout to resolve these two issues.
https://forum.cloudron.io/post/127793 -
J james marked this topic as a question
-
J james has marked this topic as solved
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login