SMTP setup for adding admin users

More
1 year 2 months ago #213076 by Leon0402
Hi, 

I've tried to set up SMTP, so I can add other admin users, which will get an invatation with their password. The problem is that it fails sending the e-mail and it's rather unclear what went wrong. The popup just says failed to send E-Mail. At the top of the page it just says 
2021-03-09 07:44:06 CLIENT -> SERVER: QUIT
2021-03-09 07:44:06 SERVER -> CLIENT: 221 Service Closing transmission

It seems the actualy error message, which gives more hints why this happended is not shown. There are also no hints displayed in the console, where I'm running LimeSurvey. 

In fact, my smtp setup actually seems to be correct as I can send invites for a survey.So it seems it might be a bug with LimeSurvey if sending email works in one place, but not in the other. But perhaps you have some idea, what else I can check. 

My Configuration is pretty much standard. I use a yahoo mail with smtp setup and SSL (as it's required by yahoo). Furthermore I use an application password, which I generated as using the normal password with third party apps doesn't work for security reasons with most providers. 
I also activated smtp debug mode.
The topic has been locked.
More
1 year 2 months ago #213124 by holch
As always: Which Limesurvey version are you using?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
More
1 year 2 months ago #213129 by Leon0402
I'm on 3.25.15
The topic has been locked.
More
1 year 2 months ago #213134 by DenisChenu
Set maildebug to always
manual.limesurvey.org/Global_settings#Email_settings

Create a survey, add token
Send an invitation

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
1 year 2 months ago - 1 year 2 months ago #213143 by Leon0402
Hi Denis,

I already did both. As I said sending invitation links from withing a survey works like a charm.
Just sending emails for adding admin users fails.
Last edit: 1 year 2 months ago by Leon0402.
The topic has been locked.
More
1 year 2 months ago #213144 by DenisChenu
Sorry,

Forum broken today …

Did you try activate debug mode ? manual.limesurvey.org/Debug_mode

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
1 year 2 months ago #213178 by tpartner
Is the default email address in global settings the same as the address in the survey settings?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
1 year 2 months ago #213224 by jelo

My Configuration is pretty much standard. I use a yahoo mail with smtp setup and SSL (as it's required by yahoo). Furthermore I use an application password, which I generated as using the normal password with third party apps doesn't work for security reasons with most providers.
 

Please provide the complete settings of the LimeSurvey mail settings. E.g. what port is used?  You should compare these setting with a mail client like Thunderbird to check if the settings are really working. Your hint with the generated password might is the reason for no longer being able to use LimeSurvey with Yahoo. Sounds like OAuth2, which isn't supported by LimeSurvey. I'm not using Yahoo and don't know if SMTP is still available without OAuth2. Yahoo switched to OAuth2 last year.
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
1 year 2 months ago #213225 by Leon0402

Sorry,

Forum broken today …

Did you try activate debug mode ? manual.limesurvey.org/Debug_mode
 
Just debug=1, I might try 2 as well. 

Is the default email address in global settings the same as the address in the survey settings?

It is. Although there is some confusion here as I run LimeSurvey in Docker and there is a variable "LIMESURVEY_ADMIN_EMAIL" I have to set. This seems to have preference over the same setting in global setting. 

Please provide the complete settings of the LimeSurvey mail settings. E.g. what port is used?  You should compare these setting with a mail client like Thunderbird to check if the settings are really working. Your hint with the generated password might is the reason for no longer being able to use LimeSurvey with Yahoo. Sounds like OAuth2, which isn't supported by LimeSurvey. I'm not using Yahoo and don't know if SMTP is still available without OAuth2. Yahoo switched to OAuth2 last year.
 

smtp Server: smtp.mail.yahoo.com:587 
username: This email address is being protected from spambots. You need JavaScript enabled to view it. 
password: application generated password (This is needes for third parties, same for google and probably most other email providers) 
encryption: TSL 

I also tried Port 465  with SSL Encryption. 

Both configuration do work with sending invites to surveys! So it can't really be a problem with OAuth2? Or does LimeSurvey support it in one place, but not in others ... that would be kinda weird. 

I also use this E-Mail in a python application and it's working well, so here is again a check that the configuration should be alright. 

 
The topic has been locked.
More
1 year 2 months ago #213233 by jelo

In fact, my smtp setup actually seems to be correct as I can send invites for a survey.
 
If this statement is true, it cannot be related to the mail settings at all.
I wonder if you still be able to send invitations via this Yahoo account.

Where is LimeSurvey installed/hosted?
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
1 year 2 months ago #213241 by Leon0402
What do you mean with "I wonder if you still be able to send invitations via this Yahoo account"?

LimeSurvey runs in a docker container on a server. I just though that it actually is behind a proxy and yahoo is afaik not whitelisted. So I wonder if there is a proxy issue ... but again, why should it work in one place, but not the other?
The topic has been locked.
More
1 year 2 months ago #213247 by tpartner
Is the default email address in global settings the same as the address in the survey settings?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
1 year 2 months ago #213254 by Leon0402
You already asked that ;)

It still is. Although the Adress in the survey settings seems to be determined by an Environment Variable.
I would expect that the email address in global settings defaults to the environment variable, but when changed it takes precedence.

Anyway, the environment variable and global settings email are set to the same value, so doesn't matter so much at the moment.
The topic has been locked.
More
1 year 2 months ago #213255 by tpartner

You already asked that

I did not see it answered.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
1 year 2 months ago #213276 by ViliusS

Sorry,

Forum broken today …

Did you try activate debug mode ? manual.limesurvey.org/Debug_mode

 
Just debug=1, I might try 2 as well. 

Is the default email address in global settings the same as the address in the survey settings?

It is. Although there is some confusion here as I run LimeSurvey in Docker and there is a variable "LIMESURVEY_ADMIN_EMAIL" I have to set. This seems to have preference over the same setting in global setting. 

Please provide the complete settings of the LimeSurvey mail settings. E.g. what port is used?  You should compare these setting with a mail client like Thunderbird to check if the settings are really working. Your hint with the generated password might is the reason for no longer being able to use LimeSurvey with Yahoo. Sounds like OAuth2, which isn't supported by LimeSurvey. I'm not using Yahoo and don't know if SMTP is still available without OAuth2. Yahoo switched to OAuth2 last year.
 

smtp Server: smtp.mail.yahoo.com:587 
username: This email address is being protected from spambots. You need JavaScript enabled to view it. 
password: application generated password (This is needes for third parties, same for google and probably most other email providers) 
encryption: TSL 
 
According to Yahoo documentation SMTP username should be just "myMailAccount" without the domain part.

Indeed, LimeSurvey's SMTP settings can be confusing. Make sure that LimeSurvey Admin Email AND Admin Name is the same as your Yahoo email and name. Not sure how Yahoo handles this but some email providers block sending if name in "From:" doesn't match what is set in the mail account.

By the way, have you specified correct email for new survey administrator? I've missed this couple of times in the past and could not understand why sending password emails did not work :)

For what it's worth LimeSurvey works with Yahoo accounts even if Oauth is enabled. App Passwords are the correct way to go. If none of the above helps you will have to find SMTP mock service to see what's going on on the SMTP level. LimeSurvey's mail debug option is buggy and won't show anything during user creation :(.
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now