How to config outgoing email working?
Asked by Ronn Nguyen:

outgoing-mail.pngoutgoing-mail2.png  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-config-outgoing-email-working/qaq-p/160146?attachment-id=879){#link_11926145bdbbb2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/200138/1/outgoing-mail.png){#display_11926145bdbbb2_0}  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-config-outgoing-email-working/qaq-p/160146?attachment-id=880){#link_11926145bdbbb2_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/200138/2/outgoing-mail2.png){#display_11926145bdbbb2_2}


Answers:
author: Ronn Nguyen
body: Yes, I can make it works now by changing the security of gmail account. It's great. Thank you very much.


author: Nic Brough -Adaptavist-
body: The StartTLS command is part of secure communications, but you've used a non-secure port.

See [https://confluence.atlassian.com/display/JIRA/Configuring+JIRA's+SMTP+Mail+Server+to+Send+Notifications](https://confluence.atlassian.com/display/JIRA/Configuring+JIRA) for a bit more about what the settings should be

comments: author: Ronn Nguyen
body: I try to use gmail to send notification email, but it still not working, I attached the way I do with Gmail as below.  
What is StartTLS on Linux and Tomcat? Cause I'm not working on Linux and Tomcat before? Can you help me in easy steps?  

I just want to install a JIRA on local server that can working well as cloud. I'm very thank you.

outgoing-mail3.pngoutgoing-mail4.png  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-config-outgoing-email-working/qaq-p/160146?attachment-id=11313){#link_11926153bc33b8}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/200141/1/outgoing-mail3.png){#display_11926153bc33b8_0}  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-config-outgoing-email-working/qaq-p/160146?attachment-id=11314){#link_11926153bc33b8_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/200141/2/outgoing-mail4.png){#display_11926153bc33b8_2}


author: Nic Brough -Adaptavist-
body: Ok, so you've now got the correct StartTLS settings and it IS sending the right stuff.Gmail is now responding with an \*Account\* based failure - your previous insecure attempts have probably locked the account out as their security system would see them as an attack.As the message says, you'll need to visit gmail and log into it via a browser to confirm that you are not an attacker.


author: rrudnicki
body: Hi Ron,

Based on your error message, you are getting the Must issue a STARTTLS command first because in the JNDI SMTP resource configuration, mail.smtp.starttls.enable isn't turned on.

Please have a look into [this KB](https://confluence.atlassian.com/display/JIRAKB/Unable+to+Send+Email+with+SMTP+Server+via+SSL+%27530+5.7.0+Must+issue+a+STARTTLS+command+first%27+Due+to+%27mail.smtp.starttls.enable%27+Property) which has the resolution. Since you are using the google smtp, I also recommend you to check [this documentation](https://confluence.atlassian.com/pages/viewpage.action?pageId=42795030) related to setup gmail as email server.

Regards,

Renato Rudnicki


Tags: email