Mail-Receiver Configuration: 403 Error on smtp_should_reject Endpoint

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:

  1. API Key Regeneration: Generated a new API key and updated the DISCOURSE_API_KEY in mail-receiver.yml.
  2. Configuration Verification: Checked that DISCOURSE_BASE_URL and MAIL_DOMAIN are correctly set.
  3. 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!

Is your API Key’s scope granular ou global (though if you didn’t have the tight permissions I suppose the error message would be different, like unauthorized:thinking: ?

Is there more information in your logs?