SMTP with o365

More
4 months 14 hours ago #171184 by nagit75
nagit75 created the topic: SMTP with o365
Hi,

I try to setup smtp with o365 :

host : smtp.office365.com:587
mail adress with password fine
TLS encryption

But don't work :

2018-07-12 13:04:24 CLIENT -> SERVER: QUIT
2018-07-12 13:04:24 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
4 months 11 hours ago #171221 by DenisChenu
DenisChenu replied the topic: SMTP with o365
Unsure it was the issue here, but office365 didn't allow Sender != From != Smtp user.

I don't take time to make a clean plugin, but you you need to send sender == From == smtp user.

If i remind you need gitlab.com/SondagesPro/mailing/eventBeforeTokenEmailExtended to do this.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
3 months 4 weeks ago #171247 by nagit75
nagit75 replied the topic: SMTP with o365
Thanks.

But I don't understand how to add this event.

Please Log in or Create an account to join the conversation.

More
3 months 4 weeks ago #171250 by DenisChenu
DenisChenu replied the topic: SMTP with o365
OK,

most simple : set all your email to the smtp user : the email for Bounce of survey, the email of admin of the survey etc …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: nagit75

Please Log in or Create an account to join the conversation.

More
3 months 4 weeks ago #171252 by nagit75
nagit75 replied the topic: SMTP with o365
It works !

Thank you very much !

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #173805 by mbouster
mbouster replied the topic: SMTP with o365
Hi,
Can you please advice how to set SMTP with o365. In which directory to place the files?
Also is this applicable to limesurvey 3.4?


Please advice

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #173829 by nagit75
nagit75 replied the topic: SMTP with o365
Hi,

No need to remplace file.

Go to /admin/globalsettings#email and edit parameters with same user for admin default and smtp user.
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #173841 by mbouster
mbouster replied the topic: SMTP with o365
I did that.
An error again.

Error message: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: 5.7.60 SMTP; Client does not have permissions to send as this sender [DB7PR03MB4747.eurprd03.prod.outlook.com]SMTP code: 550Error message: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: 5.7.60 SMTP; Client does not have permissions to send as this sender [DB7PR03MB4747.eurprd03.prod.outlook.com]SMTP code: 550


Please advice.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #173842 by jelo
jelo replied the topic: SMTP with o365

mbouster wrote: 5.7.60 SMTP; Client does not have permissions to send as this sender [DB7PR03MB4747.eurprd03.prod.outlook.com]

The account you use, is not allowed to send via SMTP. That is an right/permission problem, which is not related to LimeSurvey. Contact Microsoftsupport or check the accounts on your own. Simplest way is to create a complete new emailaccount and then check it with a an emailclient (e.g. Thunderbird) first. If SMTP,POP and IMAP are working without issues, you will have no issues with LimeSurvey too.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #173851 by mbouster
mbouster replied the topic: SMTP with o365
I have made a research and found the solution. Thanks for your help.
There are 3 ways to authenticate user.

Currently, there’re three ways of SMTP reply in Office 365.
1. SMTP client submission
2. Direct send (cannot send to external users)
3. SMTP replay (static IP required)

Found in the below link.


answers.microsoft.com/en-us/msoffice/for...e9-86dc-e7505d233e6a

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #173852 by DenisChenu
DenisChenu replied the topic: SMTP with o365
Update TOO the emails in Survey settings : must be all the same.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #175473 by Stefaan
Stefaan replied the topic: SMTP with o365
Seems like I have followed the steps as outlined in this thread and ms article ( smtp setup with correct user and pw, tls, bounce email address, survey admin and bounce address all set to same emailaddress....)
but still get this error message

Error message: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting <li>SMTP debug output:</li><pre>2018-10-16 06:08:03 SMTP ERROR: Failed to connect to server: Connection refused (111) 2018-10-16 06:08:03 SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting </pre>

My limesurvey instance is hosted at godaddy (cpanel linux).

Anyone any suggestions?

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #175474 by DenisChenu
DenisChenu replied the topic: SMTP with o365
Not the good error. When you connect to office365 with some bad value : you have an authentification issue, not a connect issue.

Here : surely something with your hoster : can conect to external web address.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
3 weeks 3 days ago #175619 by Stefaan
Stefaan replied the topic: SMTP with o365
thank you - I'll do some digging there

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!