Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't connect SMTP to Fisheye

Brian Weinreich August 3, 2017

Added my server IP to the /etc/hosts file

 

Starting mail system...
mail.smtp.host = email-smtp.us-east-1.amazonaws.com
mail.smtp.starttls.enable = true
mail.smtp.port = 25
mail.from = no-reply@density.io
mail.smtp.connectiontimeout = 30000
mail.smtp.timeout = 30000
mail.smtp.auth = true
username = AKIAI2OHMLB7M2CIJHNQ
password = *******
Mail system started.
Invalid user email '' - using server email as from address.
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "email-smtp.us-east-1.amazonaws.com", port 25, isSSL false
220 email-smtp.amazonaws.com ESMTP SimpleEmailService-2110753669 7yyiErG1p2Ow5Qfl2guB
DEBUG SMTP: connected to host "email-smtp.us-east-1.amazonaws.com", port: 25
EHLO
501 Syntax: EHLO hostname
HELO
501 Syntax: HELO
problem sending email
501 Syntax: HELO

at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1363)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:838)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:375)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)

1 answer

1 accepted

0 votes
Answer accepted
Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2017
Brian Weinreich August 3, 2017

Yep tried that. Stopped and started the application and still doesn't work. Anything I should do after editing the hosts file? It is behind a load balancer. 

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2017

Hmm not sure, I would double check that it was done correctly. All occurances of this problem that I can find all come back to the same fix.

I expect that your loadbalancer is in front of the application as a proxy, not as an outbound proxy? If yes, it shouldn't matter.

Can you get any logs from the Amazon side of the connection information?

Brian Weinreich August 4, 2017

Ah, okay I realized that my hostname on the EC2 instance was 

ip-10-0-X-X so I had to update my hosts file with the public IP, the cname, and then that hostname.

Works now. Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events