Bug with Mailing Lists that point to Aliases
-
I've got a couple of mailing lists that started bouncing with a response like
Error: Nowhere to deliver mail to for domain: undefined(full sample below). I couldn't find a related question after a quick search so posting here.After some digging it seems like the issue is that I've got the mailing lists pointing to aliases instead of the original email addresses for the intended recipients. When I swap in the actual username-emails it works fine.
This just stopped working recently. I'd intended to use the aliases in order to prevent the cloudron login username from leaking, but the error message below actually says the issue is delivering to
username@undefinedversusalias@undefined, which kind of defeats that purpose.To reproduce:
- Identify two users to test with:
user_a,user_b. - Create alias
alias_aforuser_ain a domain (e.g.example.com). - Create mailing list
my_mailing_listin same domain. - Configure two recipients in mailing list:
alias_a@example.com,user_b@example.com. - Send a test message to
my_mailing_list@example.com. - Observe
user_breceives the message, butalias_a/user_adoes not, and sender receives an error referencinguser_ainstead ofalias_a.
Expected behavior:
alias_acan receive the message.
The error message:
Hi. This is the Mailer program at my.example.com. I'm afraid I wasn't able to deliver your message "{{email_subject}}" to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. Intended Recipients: <{{user_a}}@undefined> Failure Reason: Error: Nowhere to deliver mail to for domain: undefined - Identify two users to test with:
-
FWIW, the mailing lists stopped working right around the 5.2 release with some changes to both aliases and mailing lists:
https://cloudron.io/blog/2020-06-01-cloudron-5.2.html
much appreciated... thanks for looking into it!