I am unable to get Jenkins to build based on an email using the poll-mailbox-trigger plugin
My setup in E-mail Notification is as follows
- SMTP server: myExchangeServerHostName
- Default user e-mail suffix: @companyName.com
- Use SMTP Authentication: True
- User Name: DOMAIN\user
- Password: aboveUserPassword
- Use SSL: False
- SMTP Port: 587
- Reply-To Address:
- Charset: UTF-8
From here I can successfully send a test email to myself and I receive it.
In my build the Poll Mailbox Trigger settings are as follows
- Host: myExchangeServerHostName
- Username: DOMAIN\user
- Password: aboveUserPassword
- Advanced Email Properties:
- mail.imaps.port=587
- mail.imap.ssl.enable=true
- mail.imap.starttls.enable=true
- Schedule: H/5 * * * *
When Testing this connection I get
Connecting to the mailbox... Error : javax.mail.MessagingException: Unrecognized SSL message, plaintext connection?; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
I have tried
- mail.imap.ssl.enable=false
- using the email address instead of the domain\user
- adding mail.imaps.ssl.trust=*
None of the above seem to make any difference.