Alresco email configuration with smtp.office365.com error

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 10:39 AM
Hi All,
I have implemented Alfresco outbound email configuration to send mail to smtp.office365.com with the following configuration below:
# Outbound Email Configuration
#-------------
mail.host=smtp.office365.com
mail.port=587
mail.protocol=smtp
mail.username=username@companydomain.com
mail.password=user-password
mail.encoding=UTF-8
# Use SSL for secure communication
mail.smtp.starttls.enable=true
mail.smtp.auth=true
# Debugging (optional)
mail.debug=true
But when I execute a workflow with email notification, I get the following error below:
2025-03-05T12:11:35,335 [] ERROR [action.executer.MailActionExecuter] [mailAsyncAction4] Failed to send email to [mogunleye] : org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.252 SendAsDenied; "authenticated email address" not allowed to send as "sender email address"; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;
Can anyone please assist me on how to resolve this issue or anyone with good experience of Office365 email?
Thanks in advance.
- Labels:
-
Alfresco Content Services

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 08:19 AM
Error 554 means that your email server does not allow user abc@company.com to send mails on behalf of user def@company.com . This is a configuration issue you should search for. This is not related to Alfresco, as it seems to be able to properly communitate with office365 . com already.
