logsniffer icon indicating copy to clipboard operation
logsniffer copied to clipboard

Is TLS Supported for the SMTP Notification?

Open etraff opened this issue 9 years ago • 3 comments

I've getting errors sending SMTP Mails out:

Caused by: org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
; message exceptions (1) are:
Failed message 1: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM

As far as I can tell I've filled out the "from" field in the GUI - so not sure why I get this. The Mailserver used does not Support Plaintext - only TSL - maybe thats the reason?

etraff avatar Mar 31 '17 15:03 etraff

The SMTP settings to set via the GUI are very limited. Additional SMTP settings including TSL/SSL can be passed via the config file under ${logsniffer.home}/config.properties (restart after a change). You find a full list of possible SMTP properties on this page: https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html

mbok avatar Mar 31 '17 19:03 mbok

Since I spent a couple hours trying to figure this out, I just wanted to post my resolution for anyone else that stumbles across this while Googling their failed emails. In my case, I needed to enable STARTTLS and all I had to do was add the following to my config.properties file:

mail.smtp.starttls.enable=true

Notice that it does not follow the pattern of other mail settings (logsniffer.mail.host, etc.).

justinvoelker avatar Aug 24 '17 03:08 justinvoelker

Thanks for sharring this information I would add to the Wiki next days.

mbok avatar Aug 24 '17 06:08 mbok