There' are a few discussions on this already but I was not able to get things working after following them so hoping someone can point me in the right direction.
I want to configure Windchill to use an SMTP server that uses TLS. I wasn't successful in getting this to work and don't have access to the SMTP server so I switched to trying to use gmail SMTP since it looks like others have gotten this to work in the past.
I have:
1) Enabled IMAP in the gmail account
2) Enabled less secure access in the gmail account
3) Exported a certificate for smtp.gmail.com and imported it into the JRE keystore using keytool.
4) Emailed my corporate account from the gmail account to make sure it doesn't get caught as spam
5) Set the following Windchill properties:
- wt.mail.from=<gmail address>
- wt.notify.notificationSenderEmail=<gmail address>
- wt.mail.mailhost=smtp.gmail.com:587
- wt.mail.properties=$(wt.home)$(dir.sep)mail.properties
- wt.mail.smtp.starttls.enable=true
- wt.mail.starttls.enable=true (I'm pretty sure the line above is the correct property but saw it called out this way a few times so set this as well just in case)
- wt.mail.smtp.starttls.required=true
- wt.mail.smtp.ssl.trust=smtp.gmail.com
- wt.mail.smtp.username=<username@gmail.com> - this is stored in mail.properties file
- wt.mail.smtp.password=<gmail password> - this is stored in mail.properties file
6) Tried to send email from Windchill. The email stays in the queue and never gets sent.
I turned on the verbosity in Windchill. In the method server log it appears to connect but not using TLS (my IP XXXX out for security) :
2016-04-14 16:41:57,589 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-smtp.gmail.com at your service, [XXXXXX]
2016-04-14 16:41:57,589 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-SIZE 35882577
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-8BITMIME
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-STARTTLS
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-ENHANCEDSTATUSCODES
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-PIPELINING
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250-CHUNKING
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 250 SMTPUTF8
2016-04-14 16:41:57,590 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "SIZE", arg "35882577"
2016-04-14 16:41:57,591 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "8BITMIME", arg ""
2016-04-14 16:41:57,591 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "STARTTLS", arg ""
2016-04-14 16:41:57,591 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
2016-04-14 16:41:57,591 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "PIPELINING", arg ""
2016-04-14 16:41:57,591 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "CHUNKING", arg ""
2016-04-14 16:41:57,591 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: Found extension "SMTPUTF8", arg ""
2016-04-14 16:41:57,633 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: use8bit false
2016-04-14 16:41:57,633 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - MAIL FROM:<adawkins@fitbit.com>
2016-04-14 16:41:57,647 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - 530 5.7.0 Must issue a STARTTLS command first. d12sm60264283pfj.85 - gsmtp
2016-04-14 16:41:57,647 INFO [EMailQueue.SchedulingThread] wt.system.out Administrator - DEBUG SMTP: got response code 530, with response: 530 5.7.0 Must issue a STARTTLS command first. d12sm60264283pfj.85 - gsmtp
Any suggestions for what I'm missing highly appreciated!
Abby