SuiteCRM 7.5.0 Office 365 SMTP

What I initially thought was a Inbound Email and case creation issue, turns out to be a SMTP issue instead.
We’re using Microsoft Office 365 for our company emails and after working for 2 days, we’re having weird issues with outgoing e-mails.

I’ve set up a general, systemwide smtp. When trying to send a test e-mail after entering the SMTP settings, I get an error:

[quote]Error:The following From address failed: xxxx
SMTP server error: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM[/quote]
and in the suitecrm.log:

[quote]Fri Jan 30 07:58:04 2015 [2324][1][FATAL] SMTP -> ERROR:Password not accepted from server. Code: 535 Reply: 535 5.7.3 Authentication unsuccessful

Fri Jan 30 07:58:14 2015 [2324][1][FATAL] SugarPHPMailer encountered an error: The following From address failed: xxxx[/quote]

I then logged in as a regular user, went to e-mails/settings, opened up SMTP settings and entered that users valid username/password for the SMTP. Sending a test e-mail displays:

But no e-mail actually reaches the target. Furthermore, this is what pops up in the suitecrm.log:

I then proceeded to add a new SMTP server, for that regular user. After entering the server details (identical to those of the system-wide smtp) and tying to send a test e-mail I once again get a success message in the frontend and this in the log file:

The test e-mail never reaches the recipient

However, this is where things get interesting.

Now I have two (presumably identical) SMTPservers set up for the regular user. But when I compose a new e-mail and try to send it, this is what happens.

Sending an e-mail using the system-wide SMTP (I have entered this users username and password in the e-mail settings):
frontend message:

[quote]Error:SMTP Error: Data not accepted.
SMTP server error: 5.7.60 SMTP; Client does not have permissions to send as this sender[/quote]
log file:

Sending an e-mail using the users individual smtp server:
the e-mail gets sent fine. No errors in frontend nor in the log file.

I think I solved the issue for now.

When defining the system wide SMTP server as Microsoft Excahneg server, it works fine. While defining it as Other does not.

Personal SMTP server works with either settings.


where did you defined this, on CRM or mail server side?

Best regards,