cptactionhank / docker-atlassian-jira-software

Atlassian JIRA Software wrapped in a Docker image
https://cptactionhank.github.io/docker-atlassian-jira-software
MIT License
267 stars 165 forks source link

Has no access to the internet from within the running container #64

Closed kurtontheway closed 5 years ago

kurtontheway commented 5 years ago

I had the container up with the latest image, but I couldn't manage to set up mail notification as it seems to have no access to the Internet.

kurtontheway commented 5 years ago

I got the following debugging message, where user & password did not matched what I have defined in the setting page, the username from the debugging message was the user in docker, which doesn't make sense...

...
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=smtp.exmail.qq.com, user=daemon, password=<null>
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.exmail.qq.com", port 465, isSSL false
DEBUG SMTP: exception reading response, THROW: 
...
kurtontheway commented 5 years ago

Resolved. In my case, choose 'SECURE_SMTP' for protocol instead of 'SMTP', as a plus to 'TLS'.