- this is probably the main issue causing you problems: you are using curly quotes. YML files do not like this and usually break. you need to use single or double straight quotes like
'password'or"password"
- did you do a standard install on a subdomain or is this a root domain install? if the former, it should be something like
forum.dobato.auordiscourse.dobato.au(check what you have on your nameserver). unless you intended to do a root domain install, this needs fixing. if your forum is on subdomain, then theDISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.auwill also need changing.
- this line is unnecessary, remove it
- this line is not needed; there is no point forcing the mailer to start
STARTTLS- the underlying ruby mailer (ActionMailer) usesenable_starttls_auto: true, meaning it will automatically upgrade the connection to TLS if the server (Resend) supports it. delete this line.
your correct app.yml section should look like this:
DISCOURSE_HOSTNAME: dobato.au # (verify this - it may be incorrect!)
DISCOURSE_DEVELOPER_EMAILS: myemail@outlook.com
DISCOURSE_SMTP_ADDRESS: smtp.resend.com
DISCOURSE_SMTP_USER_NAME: resend
DISCOURSE_SMTP_PASSWORD: "re_actual_api_key_here" # note the straight quotes!
DISCOURSE_SMTP_PORT: 2525
DISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.au
YML files are very strict with syntax and spacing so it is important to retain the formatting of the existing template file (see discourse_docker/samples/standalone.yml at main · discourse/discourse_docker · GitHub)
also, you need to rebuild after you make changes to your app.yml file:
cd /var/discourse
./launcher rebuild app
failed jobs in Sidekiq
we can’t resolve that link since we are not admins of your forum
. however, once you fix the above issues, if you an see the list of failed email jobs in sidekiq, you can click Retry All to instantly flush the queue and send out the backed-up emails.
if you really want to purge them (for example, if they are just hundreds of test emails to yourself and don’t want to get flooded): you can go to that same /sidekiq/retries page and click Delete All instead.
this is all assuming you have the proper records in your domain settings on your name server.