Closed hwittenborn closed 2 years ago
I also looked through the thread at #1312 but nothing mentioned there helped.
Try change your .env
to:
# Was
SENTRY_MAIL_HOST=mailcow.hunterwittenborn.com
# Should be
# SENTRY_MAIL_HOST=example.com
I just had the same "Connection refused" error and fixed it by not setting this env variable. It's also mentioned here: https://github.com/getsentry/self-hosted/issues/1312#issuecomment-1084591311
Try change your
.env
That did the trick.
Looking at the linked issue though @chadwhitacre mentioned this:
Is there something we could change in the docs to make this clearer?
I think it probably could, the only purpose I really got for the variable from the docs is that it functioned the same as the mail.host
config option - I'm still a bit lost on what it does, I just know now that commenting it out fixed the issue.
Are you running your instance on localhost? See this line in sentry.conf.py
SENTRY_OPTIONS["mail.list-namespace"] = env('SENTRY_MAIL_HOST', 'localhost')
Perhaps it would be useful to make this more clear in the docs and the differences between SENTRY_MAIL_HOST
and mail.host
As per documentation here, SENTRY_MAIL_HOST
is the FQDN (fully qualified domain name). I guess mail.host
could be more clearly be indicated as the smtp address
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog
or Status: In Progress
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Self-Hosted Version
22.8.0
CPU Architecture
x86_64
Docker Version
20.10.12
Docker Compose Version
2.10.2
Steps to Reproduce
Here's my config files (values in
{{ env.* }}
are replaced when deployed to my server):config.yml
sentry.conf.py
.env
And my entire setup is in front of an NGINX config:
Expected Result
Emails get sent fine
Actual Result
They don't, as seen in this screenshot:
The end of my server logs also show such (IPs and User Agents have been stripped and replaced with
XXX.XX.XX.XXX
):