Hello Discourse Community,
I’m encountering an issue while setting up the mail-receiver for my self-hosted Discourse forum. Despite following the official documentation here, I’m receiving the following error in my logs:
Failed to GET smtp_should_reject answer from https://forum.get.it/admin/email/smtp_should_reject.json: 403 450 4.7.1 replies+d6c9064e799543ae371fbf74ba32845a@reply.get.it: Recipient address rejected: Internal error, API request failed
Here’s my current mail-receiver.yml
configuration:
base_image: discourse/mail-receiver:release
update_pups: false
expose:
- "25:25" # SMTP
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
MAIL_DOMAIN: reply.get.it
POSTCONF_smtpd_tls_key_file: /letsencrypt/reply.get.it/reply.get.it.key
POSTCONF_smtpd_tls_cert_file: /letsencrypt/reply.get.it/fullchain.cer
POSTCONF_smtpd_tls_security_level: may
DISCOURSE_BASE_URL: 'https://forum.get.it'
DISCOURSE_API_KEY: [**************]
DISCOURSE_API_USERNAME: system
volumes:
- volume:
host: /var/discourse/shared/mail-receiver/postfix-spool
guest: /var/spool/postfix
- volume:
host: /var/discourse/shared/standalone/letsencrypt
guest: /letsencrypt
Steps I’ve taken so far:
- API Key Regeneration: Generated a new API key and updated the
DISCOURSE_API_KEY
inmail-receiver.yml
. - Configuration Verification: Checked that
DISCOURSE_BASE_URL
andMAIL_DOMAIN
are correctly set. - Container Rebuild: Ran
./launcher rebuild mail-receiver
after making the above changes.
Despite these efforts, the issue persists. Has anyone faced a similar problem or can provide insights into what might be going wrong?
Thank you in advance for your assistance!