I can't set as Email Server office 365 SMTP server. I have a private cloud server running latest version on a Ubuntu 18.04 VM. I tried in the configuration of the Server the SMTP settings and the Exchange server settings. Both don't work. Settings I use: Server name: smtp.office365.com Port: 587 Encryption method: STARTTLS username: email password: email pass Setting Exchange returns this error: System Error javax/xml/ws/http/HTTPException With SMTP settings the error is: com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:300E0000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140FF0870800101048050000, 20.50032:140FF0878317000080030400, 0.35180:4D050000, 255.23226:0A005581, 255.27962:0A000000, 255.27962:0E000000, 255.31418:0A005681, 16.55847A000000, 17.43559:00000000E0020000000000000000000000000000, 20.52176:140FF0870800401080030400, 20.50032:140FF0878317101061050000, 0.35180:0A005981, 255.23226:1F001432, 255.27962:0A000000, 255.27962:32000000, 255.17082C040000, 0.27745:6B050000, 4.21921C040000, 255.27962:FA000000, 255.1494:70050000, 0.38698:0F010480, 0.37692:0F010480, 0.37948:0C000100, 5.33852:00000000534D545000010480, 4.56248C040000, 7.40748:010000000000010B1A010480, 7.57132:00000000000000001A010480, 1.63016:32000000, 4.39640C040000, 8.45434:3BA0230E6F0B954F97A675ED04B10FAC00000000, 5.10786:0000000031352E32302E323033322E3030383A5649315031383930314D42303730313A38366135386438662D326139322D343731322D393266622D313530333231626665643433001A010480, 255.1750:0A004F31, 255.31418:9D050000, 0.22753:0A006481, 255.21817C040000, 4.60547C040000, 0.21966:0A006581, 4.30158C040000 [Hostname=VI1P18901MB0701.EURP189.PROD.OUTLOOK.COM] Continue reading...