Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't send test email after configuring Confluence (server edition) to send emails

Dialectik
September 15, 2021

Confluence configuration for sending emails is done according to the information: https://confluence.atlassian.com/conf74/configuring-a-server-for-outgoing-mail-1003129449.html

It should be noted that at the beginning Confluence (server version) was installed on a server with a different IP address. Then the IP address was changed. But the mail server was configured with the same IP address of the server, which was originally and with a new IP address.

We set up our own mail server (192.168.Y.XXX) - sending from port 25. Physically, the mail server is located on the same machine as the server with Confluence installed (with the IP address 192.168.Y.ZZZ). The result is an error:

“An error has occurred with sending the test email:

com.atlassian.mail.MailException: javax.mail.SendFailedException: Invalid Addresses;

  nested exception is:

com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1 <evgen@mysite.ua>: Recipient address rejected: SMTP AUTH is required for users under this sender domain ... "

 

There was also an attempt to configure sending mail through the Google service smtp.gmail.com through port 465. But this also produces an error:

“An error has occurred with sending the test email:

com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbt

534-5.7.14 ErwQQhmyYGEzhLBUitBsW3d7ujGpJcp2hyAIjbfmcIcoxinjfiS41a1Vc3eyilDekDbxk

534-5.7.14 ljcC76aIBNy129IdVx3U0c4m6xwSeFedYUMRK1Cp_4koxrmV4PsFA_vi9wV1ZFYG>

534-5.7.14 Please log in via your web browser and then try again.

534-5.7.14 Learn more at

534 5.7.14 https://support.google.com/mail/answer/78754 i18sm70145ljj.84 - gsmtp "

 

Logins and passwords are correct, Google authentication is one-factor (not two-factor). If I register port 587 for Google, then a timeout error is obtained.

I would be glad for any help.

2 answers

1 accepted

0 votes
Answer accepted
Kishan Sharma
Community Champion
September 15, 2021

Hi @Dialectik For the google smtp service, i can see "AuthenticationFailedException" in the error, you can refer this thread where similar issue was fixed.

Dialectik
September 16, 2021

Thanks for the google smtp service it worked. But the main task is to send letters via own mail server (192.168.Y.XXX). This task has not yet been solved.

Kishan Sharma
Community Champion
September 16, 2021

Great. For your mail server, are you not able to send email to any user who has a valid email address as the error you are getting says "SendFailedException: Invalid Addresses"

Dialectik
September 28, 2021

For now, the solution was to use Google SMTP with two factor authentication and app password

Like Kishan Sharma likes this
0 votes
Brant Schroeder
Community Champion
September 15, 2021

@Dialectik 

Is the connection actually happening?  Do you have any software firewalls on the server that could be blocking the connection?  Have you traced the connection to make sure it is going through?

Dialectik
September 16, 2021

There is a firewall, but an exception is written for it, according to which it must pass all connections for sending mail from the corresponding server

Brant Schroeder
Community Champion
September 16, 2021

Have you tried disabling the firewall to see if it works when the firewall is off?  Or have you done a trace to make sure the traffic is making it through?

Dialectik
September 16, 2021

Firewall is not a problem because there is no firewall except fail2ban - but this ip is whitelisted. log from server:

image_2021_09_14T19_39_43_350Z.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events