Configuring Email configuring-email
AEM Communities uses email for
By default, the email feature is not functional as it requires specification of an SMTP server and SMTP user.
Default Mail Service Configuration default-mail-service-configuration
The default mail service is required for both notifications and subscriptions.
-
On the primary publisher
-
Signed in with administrator privileges
-
Access the Web Console
- For example,
-
Locate the
Day CQ Mail Service
-
Select the edit icon
This is based on the documentation for Configuring Email Notification, but with a difference in that the field "From" address
is not required and should be left empty.
For example (filled in with values for illustrative purposes only):
-
SMTP server host name: (required) The SMTP server to use.
-
SMTP server port (required) The SMTP server port must be 25 or higher.
-
SMTP user: (required) The SMTP user.
-
SMTP password: (required) The SMTP user’s password.
-
“From” address: Leave empty
-
SMTP use SSL: If checked, will send secure email. Ensure the port is set to 465 or as required for SMTP server.
-
Debug email: If checked, enables logging of SMTP server interactions.
AEM Communities Email Configuration aem-communities-email-configuration
Once the default mail service is configured, the two existing instances of the AEM Communities Email Reply Configuration
OSGi config, included in the release, become functional.
Only the instance for subscriptions needs to be further configured when allowing reply by email.
-
[email](#configuration-for-notifications)
instancefor notifications, which does not support reply email, and should not be altered
-
[subscriptions-email](#configuration-for-subscriptions)
instancerequires configuration to fully enable creating post from reply email
To reach the Communities email configuration instances:
-
On the primary publisher
-
Signed in with administrator privileges
-
Access the Web Console
- For example,
-
Locate
AEM Communities Email Reply Configuration
Configuration for Notifications configuration-for-notifications
The instance of AEM Communities Email Reply Configuration
OSGi config with the Name email is for the notifications feature. This feature does not include email reply.
This configuration should not be altered.
-
Locate the
AEM Communities Email Reply Configuration
-
Select the edit icon
-
Verify the Name is
email
-
Verify Create post from reply email is
unchecked
Configuration for Subscriptions configuration-for-subscriptions
For Communities subscriptions, it is possible to enable or disable the ability for a member to post content by replying to an email.
- Locate the
AEM Communities Email Reply Configuration
- Select the edit icon
- Verify the Name is
subscriptions-email
-
Name : (required)
subscriptions-email
. Do Not Edit. -
Create post from reply email: If checked, recipient of subscription email may post content by sending a reply. Default is checked.
-
Add tracked id to header: Default is
Reply-To
. -
Maximum length of Subject: If tracker id is added to subject line, this is the maximum length of subject, excluding tracked id, after which it will be trimmed. Note that this should be as small as possible to avoid tracked id information from being lost. Default is 200.
-
Email “From” address: (required) Address that notification email would be delivered from. Likely the same SMTP user specified for the default mail service. Default is
no-reply@example.com
. -
Reply-to-Delimiter: If tracker id is added to Reply-to header, this delimiter will be used. Default is
+
(plus sign). -
Tracker Id prefix in subject: If tracker id is added to subject line, this prefix will be used. Default is
post#
. -
Tracker id prefix in message body: If tracker id is added to message body, this prefix will be used. Default is
Please do not remove this:
. -
Email as HTML: If checked, Content-Type of email will be set as
"text/html;charset=utf-8"
. Default is checked. -
Default user name: This name will be used for no name users. Default is
no-reply@example.com
. -
Templates root path: The email is built using template stored at this root path. Default is
/etc/community/templates/subscriptions-email
.
Configure Polling Importer configure-polling-importer
In order for the email to be brought into the repository, it is necessary to configure a polling importer and configure its properties in the repository manually.
Add New Polling Importer add-new-polling-importer
- On the primary publisher
- Signed in with administrator privileges
- Browse to the polling importer console
For example, - Select Add
-
Type: (required) Pull down to select
POP3 (over SSL).
-
URL: (required) The outbound mail server. For example,
pop.gmail.com:995/INBOX?username=community-emailgmail.com&password=****
-
Import to Path*: (required) Set to
/content/usergenerated/mailFolder/postEmails
by browsing to thepostEmails
folder and select OK -
Update Interval in Seconds: (optional) The mail server configured for the default mail service may have requirements regarding the update interval value. For example, Gmail may require an interval of
300
. -
Login: (optional)
-
Password: (optional)
-
Select OK
Adjust Protocol for New Polling Importer adjust-protocol-for-new-polling-importer
Once the new polling configuration is saved, it is necessary to further modify properties of the subscription email importer in order to change the protocol from POP3
to emailreply
Using CRXDE Lite:
-
On the primary publisher
-
Signed in with administrator privileges
-
Browse to
-
Select the newly created configuration
-
Modify the following properties
- feedType: replace
pop3s
withemailreply
- source: replace source’s protocol
pop3s://
withemailreply://
- feedType: replace
The red triangles indicate the modified properties. Be sure to save the changes:
- Select Save All