Setup EMails: Difference between revisions

m
Tag: 2017 source edit
Tag: 2017 source edit
Line 237: Line 237:
Error after sending EHLO xxxxxx:4435 : 501
Error after sending EHLO xxxxxx:4435 : 501


the problem is not into your authentication because error is before that, at very begin of protocol. Try to go on Home - Setup - Other and add MAIL_SMTP_USE_FROM_FOR_HELO to value 1 so Dolibarr will use the domain in the from email as the HELO string. With 0, Dolibarr will use "smtp.office365.com" that may be refused.
the problem is not into your authentication because error is before that, at very begin of protocol. Try to go on Home - Setup - Other and add MAIL_SMTP_USE_FROM_FOR_HELO to value 2 (default on recent versions) so Dolibarr will use the domain defined into conf $dolibarr_main_url_root of you conf.php file as the HELO string. Use 1 to use the domain in the FROM email. With 0 (old versions), Dolibarr will use "smtp.office365.com" that may be refused.


===Outlook / Office365 / Exchange server (with OAuth2)===
===Outlook / Office365 / Exchange server (with OAuth2)===