Consulter les logs SMTP
Pour afficher les logs SMTP, vous devez activer l'enregistrement mail.debug affiché dans la table configuration de votre base de données.
Configurez mail.debug à true.
Les logs SMTP sont à présent consultables à l'emplacement suivant : <tomcat_path>/webapps/org.talend.administrator/WEB-INF/class/log4j2.xml., comme dans l'exemple suivant :
DEBUG: JavaMail version 1.6.2
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
DEBUG SMTP: need username and password for authentication
DEBUG SMTP: protocolConnect returning false, host=localhost, user=oem, password=<null>
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "localhost", port 1025, isSSL false
220 EventMachine SMTP Server
DEBUG SMTP: connected to host "localhost", port: 1025
EHLO localhost
250-Ok EventMachine SMTP Server
250-NO-SOLICITING
250 SIZE 20000000
DEBUG SMTP: Found extension "NO-SOLICITING", arg ""
DEBUG SMTP: Found extension "SIZE", arg "20000000"
DEBUG SMTP: use8bit false
MAIL FROM:<XXX@163.com>
250 Ok
RCPT TO:<test_5@company.com>
250 Ok
DEBUG SMTP: Verified Addresses
DEBUG SMTP: test_5@company.com
DATA
354 Send it
Date: Tue, 1 Aug 2023 14:47:13 +0800 (CST)
From: XXX@163.com
To: test_5@company.com
Message-ID: <547924937.13.1690872433358@localhost>
Subject: Talend Administration Center account created
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_12_351218233.1690872433354"
------=_Part_12_351218233.1690872433354
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
admin admin,<br/> Your account for <b>Talend Administration Center</b> has been created.<br/><br/>To use this application, follow this link <i><a href="http://localhost:8080/org.talend.administrator-8.8.8-SNAPSHOT">http://localhost:8080/org.talend.administrator-8.8.8-SNAPSHOT</a></i><br/><br/>Here is your login information:<br/><b>Login:</b> <i>test_5@company.com</i><br/><b>Password:</b> <i>admin</i>
------=_Part_12_351218233.1690872433354--
.
250 Message accepted
DEBUG SMTP: message successfully delivered to mail server
QUIT
221 Ok