Expand my Community achievements bar.

SOLVED

SMTP service uses incorrect port

Avatar

Former Community Member

This question as same as DarrenBiz  asked on February 02, 2015 ,but i can‘t find the answer. Here is the queation

I am trying to configure the Day CQ Mail Service for SMTP on AEM 6.0 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

Thanks before,

Jing

1 Accepted Solution

Avatar

Correct answer by
Level 10

Here is a community article that talks about this use case: 

http://therealcq.blogspot.ca/2013/01/setting-up-gmail-as-your-smtp-server-in.html

If you follow this and it does not work - this sounds like a bug. Please open a ticket here: 

https://helpx.adobe.com/marketing-cloud/experience-manager.html

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Here is a community article that talks about this use case: 

http://therealcq.blogspot.ca/2013/01/setting-up-gmail-as-your-smtp-server-in.html

If you follow this and it does not work - this sounds like a bug. Please open a ticket here: 

https://helpx.adobe.com/marketing-cloud/experience-manager.html

Avatar

Former Community Member

Hi, I tried it, but it didn't work,and I also created a custom cq email services with Maven. It also can't send a email with Gmail.

I've given up using Gmail mailbox.

Thanks,wink

Avatar

Level 1

Hi All,

smacdonald2008  Is there any solution for this issue. I am creating a workflow which send mail, to test it i have configured Day CQ mail service to use port 465 for gmail smtp server but still cq is sending request using port 25.

Screenshot for configuration is attached. Please let me know if i am doing anything wrong.

Version : AEM 6.2

Error i am getting:

CustomStep Error in Sending mailcom.day.cq.mailer.MailingException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:25

mail_Confgig.jpg

Best,

Sudesh

Avatar

Level 1

Hi All,

Sorry to bother you guys but thought it might be helpful for someone.

I was using wrong password so after failing for given configuration(port 465) api uses default port also to check connection i.e. port 25.

Other than that, If everything is in place it could be your network issue. Your network is not allowing to connect to gmail smtp server then try it on public network.

You also need to enable less secure access to your gmail account to get it work here https://myaccount.google.com/lesssecureapps

Best,

Sudesh