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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

SMTP Configuration to connect to gmail


Level 1


Please let me know the SMTP configuration that needs be configured in Day CQ Mail Service to connect to gmail.

I have tried the following

# Configuration created by Apache Sling JCR Installer

smtp.password="my gmail account password""false"




from.address="my gmail id"""

I have tried the port numbers both 465 and 587. . I have turned on this setting as well. But I am not able to connect getting the connection refused error.

Please help me in this regard.

Thanks in advance



2 Replies


Community Advisor

Hi ,

Can you try to enable SSL?

Below is google smtp relay servers details

Fully qualified domain name of SMTP service
Configuration options
  • Options: Port 25, 465, or 587
  • Secure Socket Layer (SSL)/Transport Layer Security (TLS) protocols.
  • Dynamic IPs are allowed, but a static IP might be required due to authentication requirements.
  • Port 465 (SSLrequired)
  • Port 587 (TLS required)
  • Dynamic IPs allowed
  • Port 25
  • TLS not required
  • Dynamic IPs allowed
  • Mail can only be sent to Gmail or G Suite users.

Can you check STEP 2 also at Send email from a printer, scanner, or app - G Suite Administrator Help




Level 10

Try writing your own email serve using Java MAIL API. See if that works for  your use case. See this article -- Scott's Digital Community: Creating custom CQ email services

For some reason - gmail and MessageServiceGateway seems to produce issues.