Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

LS Emails via Amazon AWS SES - cannot connect?

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago - 2 years 6 months ago #230326 by Armitage2k
My LimeSurvey installation sits on an AWS instance and has access to the AWS Simple Email Service (SES). I send all of my application emails via PHPMailer and SES, so I know for a fact that all settings and credentials are correct and working, yet I am unable to get my SES account to work with LS. I constantly receive a "Cannot connect to server" error which should not be the case especially since there is no firewall involved in this, which leads me to suspect a possible issue with the authentication.

My SES account is located in eu-west-1, I login with my 16digit AWS account number (not an email address) and my secret as password. Does LS support AWS at all? Is there any documentation on how to make this work? I tried all sorts of configurations and just cant get it to work.

Thanks

Edit: LS documentation  is not really helpful for this
Last edit: 2 years 6 months ago by Armitage2k.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #230332 by holch

Edit: LS documentation is not really helpful for this


This is NOT the documention for Limesurvey Community Edition, this is the FAQ for when you use the SaaS service Limesurvey Pro provided by the Limesurvey GmbH.

Are you on their hosted service or are you using Limesurvey Community Edition on your own servers. Unfortunately you did not answer the base questions about where your installation is hosted, which version you use, etc.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230337 by Armitage2k
Replied by Armitage2k on topic LS Emails via Amazon AWS SES - cannot connect?

My LimeSurvey installation sits on an AWS instance


Self-hosted with LS Community Edition (latest) :)
 

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230454 by Armitage2k
Replied by Armitage2k on topic LS Emails via Amazon AWS SES - cannot connect?
Anyone have any idea about this?

Please Log in to join the conversation.

More
2 years 6 months ago #230466 by jelo
LimeSurvey uses the phpmailer library. There is nothing special about LimeSurvey.
You need to configure a valid SMTP server.

You can activate the debugoption in the mailsettings to get more infos.

Consult the documentation about AWS and SMTP to ensure you get everything right.
docs.aws.amazon.com/ses/latest/dg/send-e...oftware-package.html

I took short look and see a SMTP username and not the AWS 16digit number in the doc. But I currently don't use SES.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230472 by Armitage2k
Replied by Armitage2k on topic LS Emails via Amazon AWS SES - cannot connect?
Well, yes and no.

I also use the phpmailer library with my various PHP projects and can connect without problems via my 16 digit AWS key as username. The issue I believe is with the SMTP authentication from LS since phpmailer separates between a username and from-email, which in LS seems to be the same thing.

An example would be that in AWS I authenticate with my AWS key as username, but set my FROM email as something else, since SES has domain authorisation and can essentially mask itself as any inbox name under that name. Long story short, there is a difference between username used for authentication and from email used for sending mail, which in LS seems to be the same value.

No worries, I fixed this by creating an actual email account via AWS WorkMail and use this one to authenticate and send from. Its a bit annoying though since I now have a physical inbox (that I am billed for) which I would have loved to avoid. Anyway.

Thanks!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose