Skip to main content

How to configure Gmail in SCH On Premise?


AkshayJadhav
StreamSets Employee
Forum|alt.badge.img

Configuring email on SCH can be useful sometimes. Eg.: If you want to send subscriptions. 

 

1. Allow "less secure" application to access your account:

You can allow it if you are logged into any Gmail account through the link below: 

https://myaccount.google.com/u/0/lesssecureapps?pli=1

 

2. Configure common-to-all-apps.properties file in $DPM_DIST/etc:

Make sure to change what is highlighted in red with your own credentials. The information highlighted in bold can be copied from here.

45 # SMTP configuration to send emails
46 # All properties starting with 'mail.' are used to create the JavaMail session, supported protocols are 'smtp' & 'smtps'
47 mail.transport.protocol=smtp
48 mail.smtp.host=smtp.gmail.com
49 mail.smtp.port=587
50
51 # The possible value is "true" or "false"
52 mail.smtp.auth=true
53
54 # The possible values is "true" or "false"
55 mail.smtp.starttls.enable=true
56
57 mail.smtps.host=smtps.gmail.com
58 mail.smtps.port=465
59 mail.smtps.auth=true
60
61 # If 'mail.smtp.auth' or 'mail.smtps.auth' are to true, these properties are used for the user/password credentials,
62 # @email-password.txt@ will load the value from the 'email-password.txt' file in the config directory (where this file is)
63 xmail.username=agent
64 xmail.password=@email-password.txt@
65 # FROM email address to use for the messages
66 xmail.from.address=agent@gmail.com

3. Restart DPM.

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply