Problema de correo electrónico

Hola Discourse,

después de reconstruir mail-receiver y la aplicación esta mañana, he estado recibiendo el siguiente resultado en los correos electrónicos que se habrían enviado anteriormente.

He intentado esta configuración pero todavía rebota

aquí están los registros más recientes


¿podría ser el reloj del sistema después de actualizar el kernel de Ubuntu?

sí, fue una hora más tarde

Correcto, el correo electrónico de prueba que envié rebotó con el mismo error, lo cual está claro en .\launcher logs mail-receiver

okay, tanto el contenedor mail-receiver como el contenedor de la aplicación tienen una hora diferente a la del sistema anfitrión


sistema anfitrión - hora correcta :white_check_mark:

contenedor de la aplicación - hora incorrecta :cross_mark:

image

image

contenedor mail-receiver - hora incorrecta :cross_mark:

image

(publicación eliminada por el autor)

De: Set timezone for Docker container - #2 by OrkoGrayskull


hacer como la publicación anterior

bueno, sigue siendo diferente, después de reconstruir el receptor de correo y hacer que ambos - se pongan amarillos

estos fueron los últimos correos electrónicos en entrar

parecen configurados a una zona horaria diferente, lo cual está bien.

Suponiendo que ejecutaste estos comandos con unos minutos de diferencia, esto se ve bien.

2 Me gusta

Es imposible saber qué está sucediendo exactamente a partir de estas capturas de pantalla.

¿Cuál es la dirección de destino de su foro? (ligeramente redactada si es posible)

¿De qué dirección proviene?

¿Qué sucede con el correo enviado a él?

Por favor, utilice el texto de sus registros en lugar de capturas de pantalla.

1 me gusta

discourse.domain.com

se conecta a mail-receiver pero mail-receiver ve la IP como desconocida, por lo que la devuelve, el correo no llega a la cola de mail-receiver.

No creo que esto sea correcto. Es una advertencia, no un error.

Esta captura de pantalla (por favor, haz este texto) indica que la dirección ppyem30@discourse.domain.com no es aceptada; esa parece ser la razón del fallo.

Investigaría más la línea usando la configuración predeterminada compatible con versiones anteriores..., que parece insinuar la razón.

2 Me gusta
root@ubuntu:/var/discourse# Jul 17 15:40:20 ubuntu-mail-receiver postfix/master[1]: daemon started -- version 3.7.11, configuration /etc/postfix
Jul 17 15:41:32 ubuntu-mail-receiver postfix/smtpd[122]: connect from btprdrgo001.btinternet.com[65.20.50.131]
Jul 17 15:41:32 ubuntu-mail-receiver postfix/smtpd[122]: disconnect from btprdrgo001.btinternet.com[65.20.50.131] ehlo=1 quit=1 commands=2
Jul 17 15:41:32 ubuntu-mail-receiver postfix/smtpd[122]: connect from btprdrgo001.btinternet.com[65.20.50.6]
Jul 17 15:41:32 ubuntu-mail-receiver postfix/smtpd[122]: NOQUEUE: reject: RCPT from btprdrgo001.btinternet.com[65.20.50.6]: 554 5.7.1 <person@discourse.redacted.com>: Recipient address rejected: Mail to this address is not accepted. Check the address and try to send again?; from=<ethan.mees@btinternet.com> to=<person@discourse.redacted.com> proto=ESMTP helo=<btprdrgo001.btinternet.com>
Jul 17 15:41:32 ubuntu-mail-receiver postfix/smtpd[122]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient \"person@discourse.redacted.com\" from client \"btprdrgo001.btinternet.com[65.20.50.6]\"
Jul 17 15:41:32 ubuntu-mail-receiver postfix/smtpd[122]: disconnect from btprdrgo001.btinternet.com[65.20.50.6] ehlo=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=4/6
Jul 17 15:42:49 ubuntu-mail-receiver postfix/smtpd[122]: warning: hostname unassigned.quadranet.com does not resolve to address 198.55.98.78
Jul 17 15:42:49 ubuntu-mail-receiver postfix/smtpd[122]: connect from unknown[198.55.98.78]
Jul 17 15:42:49 ubuntu-mail-receiver postfix/smtpd[122]: disconnect from unknown[198.55.98.78] ehlo=1 auth=0/1 quit=1 commands=2/3
Jul 17 15:43:35 ubuntu-mail-receiver postfix/smtpd[122]: connect from unknown[196.251.92.207]
Jul 17 15:43:36 ubuntu-mail-receiver postfix/smtpd[122]: disconnect from unknown[196.251.92.207] ehlo=1 quit=1 commands=2

siguiendo

 ./launcher destroy mail-receiver

luego sigue las instrucciones aquí


Entregando correo enviado a discourse.DOMAINNAME.com a Discourse
Iniciando OpenDKIM...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding user `postfix' to group `opendkim' ...
<86>Jul 17 16:00:00 usermod[17]: add 'postfix' to group 'opendkim'<86>Jul 17 16:00:00 usermod[17]: add 'postfix' to shadow group 'opendkim'Done.
Iniciando OpenDMARC...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
<22>Jul 17 16:00:00 opendkim[25]: OpenDKIM Filter v2.11.0 starting (args: -x /etc/opendkim.conf)Adding user `postfix' to group `opendmarc' ...
<86>Jul 17 16:00:00 usermod[32]: add 'postfix' to group 'opendmarc'<86>Jul 17 16:00:00 usermod[32]: add 'postfix' to shadow group 'opendmarc'Done.
<22>Jul 17 16:00:00 opendmarc[40]: OpenDMARC Filter v1.4.2 starting (args: -c /etc/opendmarc.conf)<22>Jul 17 16:00:00 opendmarc[40]: additional trusted authentication services: (none)postfix: Postfix is using backwards-compatible default settings
Jul 17 16:00:00 ubuntu-mail-receiver postfix[52]: Postfix is using backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jul 17 16:00:00 ubuntu-mail-receiver postfix[52]: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Jul 17 16:00:00 ubuntu-mail-receiver postfix[52]: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Iniciando Postfix
Jul 17 16:00:00 ubuntu-mail-receiver postfix/master[1]: daemon started -- version 3.7.11, configuration /etc/postfix
Jul 17 16:00:28 ubuntu-mail-receiver postfix/smtpd[123]: connect from mail-ukwestazon11021090.outbound.protection.outlook.com[52.101.100.90]
Jul 17 16:00:28 ubuntu-mail-receiver postfix/smtpd[123]: NOQUEUE: reject: RCPT from mail-ukwestazon11021090.outbound.protection.outlook.com[52.101.100.90]: 554 5.7.1 <person@discourse.DOMAINNAME.com>: Recipient address rejected: Mail to this address is not accepted. Check the address and try to send again?; from=<ethan@DOMAINNAME.com> to=<person@discourse.DOMAINNAME.com> proto=ESMTP helo=<CWXP265CU009.outbound.protection.outlook.com>
Jul 17 16:00:28 ubuntu-mail-receiver postfix/smtpd[123]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient "person@discourse.DOMAINNAME.com" from client "mail-ukwestazon11021090.outbound.protection.outlook.com[52.101.100.90]"
Jul 17 16:00:28 ubuntu-mail-receiver postfix/smtpd[123]: disconnect from mail-ukwestazon11021090.outbound.protection.outlook.com[52.101.100.90] ehlo=1 mail=1 rcpt=0/1 quit=1 commands=3/4
Detalles del error
Error: 554 5.7.1 <person@discourse.YOURDOMAIN.com>: Dirección del destinatario rechazada: No se acepta el correo a esta dirección. ¿Comprueba la dirección e intenta enviar de nuevo?
Mensaje rechazado por: ubuntu-mail-receiver.localdomain

Intenté ask.discourse.com

He seguido los pasos. Una cosa que necesitaba aclaración era cuando llego al directorio /var/discourse/shared/mail-receiver/,

¿debería haber escrito

nano valid_recipients

o

nano valid_recipients.yml?


Fue un trabajo de copiar y pegar en mail-reciever.yml y luego otra reconstrucción, correspondiente a los registros a continuación.

root@ubuntu:/var/discourse# ./launcher logs mail-receiver
x86_64 arch detected.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Operating environment:
HOSTNAME=ubuntu-mail-receiver
LANGUAGE=en_US.UTF-8
MAIL_DOMAIN=discourse.DOMAINNAME.com
DOCKER_HOST_IP=172.17.0.1
PWD=/
DISCOURSE_BASE_URL=https://DOMAINNAME.com
HOME=/root
LANG=en_US.UTF-8
TERM=xterm
SHLVL=1
DISCOURSE_API_USERNAME=system
LC_ALL=en_US.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
INCLUDE_DMARC=true
DISCOURSE_API_KEY=[64 digit api key redacted]
_=/usr/bin/env
Delivering mail sent to discourse.DOMAINNAME.com to Discourse
Starting OpenDKIM...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding user `postfix' to group `opendkim' ...
<86>Jul 17 19:38:44 usermod[16]: add 'postfix' to group 'opendkim'<86>Jul 17 19:38:44 usermod[16]: add 'postfix' to shadow group 'opendkim'Done.
Starting OpenDMARC...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
<22>Jul 17 19:38:44 opendkim[24]: OpenDKIM Filter v2.11.0 starting (args: -x /etc/opendkim.conf)Adding user `postfix' to group `opendmarc' ...
<86>Jul 17 19:38:44 usermod[31]: add 'postfix' to group 'opendmarc'<86>Jul 17 19:38:44 usermod[31]: add 'postfix' to shadow group 'opendmarc'Done.
<22>Jul 17 19:38:44 opendmarc[39]: OpenDMARC Filter v1.4.2 starting (args: -c /etc/opendmarc.conf)<22>Jul 17 19:38:44 opendmarc[39]: additional trusted authentication services: (none)Postfix: Postfix is using backwards-compatible default settings
Jul 17 19:38:44 ubuntu-mail-receiver postfix[49]: Postfix is using backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jul 17 19:38:44 ubuntu-mail-receiver postfix[49]: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Jul 17 19:38:44 ubuntu-mail-receiver postfix[49]: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Starting Postfix
Jul 17 19:38:44 ubuntu-mail-receiver postfix/master[1]: daemon started -- version 3.7.11, configuration /etc/postfix
Jul 17 19:39:12 ubuntu-mail-receiver postfix/smtpd[171]: connect from smtp3.nottingham.ac.uk[128.243.44.55]
Jul 17 19:39:12 ubuntu-mail-receiver postfix/smtpd[171]: NOQUEUE: reject: RCPT from smtp3.nottingham.ac.uk[128.243.44.55]: 554 5.7.1 <person.self@discourse.DOMAINNAME.com>: Recipient address rejected: Mail to this address is not accepted. Check the address and try to send again?; from=<person@nottingham.ac.uk> to=<person.xytz@discourse.DOMAINNAME.com> proto=ESMTP helo=<smtp3.nottingham.ac.uk>
Jul 17 19:39:12 ubuntu-mail-receiver postfix/smtpd[171]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient "person.xytz@discourse.DOMAINNAME.com" from client "smtp3.nottingham.ac.uk[128.243.44.55]"
Jul 17 19:39:12 ubuntu-mail-receiver postfix/smtpd[171]: disconnect from smtp3.nottingham.ac.uk[128.243.44.55] ehlo=1 mail=1 rcpt=0/1 bdat=0/1 quit=1 commands=3/5

Tengo direcciones de correo electrónico entrantes personalizadas para muchas categorías. ¿Debe cambiar el formato a category+<tag>@discourse.DOMAINNAME.com (para publicar directamente en una categoría)?