Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

SMTP service uses incorrect port

Avatar

Avatar
Validate 1
Level 2
Jing_Luo
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Jing_Luo
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Jing_Luo
Level 2

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-10-2015

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

Answers (3)

Answers (3)

Avatar

Avatar
Boost 1
Level 1
sudesh16071989
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
sudesh16071989
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
sudesh16071989
Level 1

31-08-2017

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

Avatar

Avatar
Boost 1
Level 1
sudesh16071989
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
sudesh16071989
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
sudesh16071989
Level 1

30-08-2017

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

Avatar
Validate 1
Level 2
Jing_Luo
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Jing_Luo
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Jing_Luo
Level 2

15-10-2015

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