Okay so i’ve made some progress in solving this issue, and emails are now getting from the mail-receiver container into the Discourse container.
yesterday i created a unspecified file format via nano
in the following directory
/var/discourse/shared/mail-receiver/valid_recipients
I have today succesfully mounted that in the container, by adding the below into my volumes
section;
- volume:
host: /var/discourse/shared/mail-receiver/valid_recipients
guest: /etc/postfix/valid_recipients
so that .\launcher rebuild mail-receiver
sees /etc/postfix/valid_recipients
, i added the following line into my mail-receiver’s env
section;
POSTCONF_smtpd_recipient_restrictions: texthash:/etc/postfix/valid_recipients
then i would get a positive result, after .\launcher enter mail-receiver
folowed by;
ls -l /etc/postfix/valid_recipients
which deosn’t error
and
cat /etc/postfix/valid_recipients
which lists the recipients i want to allow
In a nutshell, emails are being sent to Discourse now, they’re not bouncing back, but then DISCOURSE_NOTIFICATION_EMAIL
via MailGun is used to announce the visible Email::Receiver::BadDestinationAddress
reject in the Discourse admin UI