Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

SMTP service uses incorrect port

Avatar

Level 7

I am trying to configure the Day CQ Mail Service for SMTP on CQ 5.6.1 using Gmail and while I have set the port to 465 and SSL in the config, it is trying to send using port 25 (and failing)

Is this a known issue and if so, what is the patch for this?

Config:

[img]day_cq_mail_service.png[/img]

Error:

03.02.2015 12:00:37.429 *ERROR* [pool-6-thread-11-null(null)] com.day.cq.workflow.impl.email.EMailNotificationService error while sending email for com.day.cq.workflow.impl.exec.CQWorkItemWrapper@1e71db83: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:25

1 Accepted Solution

Avatar

Correct answer by
Level 10

Logging is not correct & issue is filled. But it will use the port 465. Agree it causes lot of confusion please file an support request

View solution in original post

3 Replies

Avatar

Level 7

Also, looking at the DEBUG output, it seems as if it is using port 465, but SSL is false. Which should I believe?

[img]day_cq_mail_service_2.png[/img]

Avatar

Correct answer by
Level 10

Logging is not correct & issue is filled. But it will use the port 465. Agree it causes lot of confusion please file an support request

Avatar

Level 7

Thanks Sham - issue logged with DayCare