I have configured outgoing mail to use Amazon Web Services SES, following the guide here: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-software-package.html
I can send test messages and they are received correctly. I can also invite new users via the JIRA UI and they get their email invitations with no problem.
However, issue notifcations fail, with errors such as: (I have replaced an actual email address with xxxx@xxx.com)
{code}
2017-07-25 15:30:00,152 Sending mailitem To='xxxx@xxx.com' Subject='(NGWDD-38) CSV download for today's date does
ot match roll-up number' From='null' FromName='John Holdzkom (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JI
RA.10138.1500993908000@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultip
art@6d9c345d' MessageId='null' ExcludeSubjectPrefix=false' ERROR anonymous Mail Queue Service [c.a.mail.queue.MailQu
eueImpl] Error occurred in sending e-mail: To='xxxx@xxx.com' Subject='(NGWDD-38) CSV download for today's date does
not match roll-up number' From='null' FromName='John Holdzkom (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<
JIRA.10138.1500993908000@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMult
ipart@6d9c345d' MessageId='null' ExcludeSubjectPrefix=false'
com.atlassian.mail.MailException: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: email-smtp.us
-east-1.amazonaws.com, 25; timeout 10000;
nested exception is:
java.net.SocketTimeoutException: connect timed out
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:225)
at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44)
at com.atlassian.mail.queue.MailQueueImpl.sendBufferUnderLock(MailQueueImpl.java:103)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:56)
at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:51)
at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:48)
{code}
This does not make sense to me since the server configurations are working fine for test messages and new user accounts.
Any help would be appreciated, thanks.
I am beginning to wonder if the problem is that the From address is null. From the log:
{code}
From='null' FromName='gmcmullin (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA
.10138.1500993908000@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@
3659f1a6' MessageId='null' ExcludeSubjectPrefix=false' ERROR anonymous
. . .
{code}
even though I have a valid From address configured in the Outgoing Mail configuration, and am not overriding that for any Project (and in the Project setting it reflects the one configured for Outgoing).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did. I switched to the SECURE_SMTP option and port 465 and also increased the Timeout to 90000ms. I had tried port 465 earlier but not with that large of a Timeout. With this combination it started working and has been fine ever since.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I'll give it a try I also found EC2 instances (AWS Linux AMI) have their MTU set pretty high (6500 ish) which on another thread they recommended changing it to the default ethernet of 1500. I'll update you if I find anything on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
John our issue was simple our EC2 instance don't have public IP addresses by design. Without a public IP or a NAT gateway they couldn't get to the external AWS SES server. We spun up a NAT gatway and all worked well with the below
SMTP
port 587
tls check
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a best guess from previous SES usage, but I think you might be encountering the following two issues:
Amazon SES works great for our (small) production deployment of the entire Atlassian suite, but besides verifying email addresses and domains and moving out of the sandbox, you really need to make sure to manage your sending limits and esp. monitor your sending activity to avoid issues with bounces, complaints and rejects.
For more guidance you might also want to check the extensive Troubleshooting Amazon SES collection.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your responses. I should have mentioned that I have verified my domain with SES and my account is allowed up to 50k emails per day and is outside the sandbox. To be granted this, I had to set up an SNS topic to capture bounces, complaints, and rejects (and I have seen none).
So I'm still stumped.... I may contact AWS support to see if they have any ideas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I changed two things which seemed to make this work, but it did not last long.
a) changed from SMTP (port 25) to SMTPS (port 465)
b) changed Timeout from 10000 to 60000 ms
However, after about 1 day, outgoing mail again fails, now with the following error:
{code}
com.atlassian.mail.MailException: javax.mail.MessagingException: [EOF]
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:225)
at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44)
at com.atlassian.mail.queue.MailQueueImpl.sendBufferUnderLock(MailQueueImpl.java:103)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:56)
at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:51)
at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:48)
at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:110)
at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:50)
at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:48)
at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:21)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:62)
at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44)
at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32)
at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)
at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)
at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)
{code}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.