AWS SES setup for Email

AWS SES setup for Email

by Surajit Kundu -
Number of replies: 4

I have migrated moodle to AWS with EC2, but after migration I am having lot of issues related to emails and I want to use AWS SES as my email server. I have SMTP endpoint along with credential from AWS. Can anyone please let me know what all files I will have to change to point to AWS SES ?

Thanks

Average of ratings: -
In reply to Surajit Kundu

Re: AWS SES setup for Email

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I have no idea of Amazon Web Services. You'll find the setup for outgoing e-mail in Moodle under Site administration > Server > Email > Outgoing mail configuration. The doc page is https://docs.moodle.org/en/Mail_configuration#Outgoing_mail_configuration, pretty self-explanatory though.
In reply to Visvanath Ratnaweera

Re: AWS SES setup for Email

by Surajit Kundu -
I have horizontal scaling and source code is not in shared file system, so changing some setting from front end may not work properly, I was assuming setting all the smtp parameter in phpmailer.php could help "https://github.com/moodle/moodle/blob/master/lib/phpmailer/src/PHPMailer.php" But I don't know if that's the right way to do that
In reply to Surajit Kundu

Re: AWS SES setup for Email

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

There is no need to change files,

  • smtphosts; email-smtp.REGION.amazonaws.com:465
  • smtpsecure: SSL
  • smtpauthtype: LOGIN
  • smtpuser: AWS credential username
  • smtppass: AWS credential password