Ich habe die folgende Konfiguration des Mail-Konto meines Unternehmens in der Entwicklung, die perfekt geht:Mail-Eigenschaften in der Produktion - Jhipster 4.2.8
mail:
host: smtp.xxx.es
port: 587
username: [email protected]
password: xxxx
protocol: smtp
#tls: true
properties.mail.smtp:
auth: true
from: [email protected]
starttls.enable: true
ssl.trust: smtp.xxx.es
I de gleichen Daten kopieren von „application-dev.yml "zu" application-prod.yml ".
Ich mache die Bereitstellung in Google Cloud.
Es schickt mir keine E-Mails und die Protokolle mir sagt folgendes:
: Email could not be sent to user '[email protected]': Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.xxx.es, 587; timeout -1;
nested exception is:
java.net.ConnectException: Operation timed out (Connection timed out). Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.xxx.es, 587; timeout -1;
nested exception is:
java.net.ConnectException: Operation timed out (Connection timed out)
Kann mir jemand helfen?
Die Protokolle scheinen eindeutig zu sein, Ihr Dienst kann diesen Mailserver von Google Cloud nicht erreichen. Ich würde Ihnen empfehlen, einen anderen Mailing-Service (gmail, Outlook ...) zu versuchen und sehen, ob es funktioniert. Wenn dies der Fall ist, könnte Ihr Mail-Server nicht von außen erreichbar sein. Falls nicht, müssen Sie möglicherweise Google Cloud für externe Verbindungen konfigurieren. –
Mit einem Google Mail-Konto, wenn es richtig geht. Mein Firmenaccount wird in "Dinahosting" gehostet, falls es hilft. –
Was passiert, wenn Sie stattdessen den gleichen Server mit Port 25 versuchen? –