Issue
- When sending emails, the error "unable to send message: 554 X.X.XXX SendAsDenied" occurs.
- Steps to reproduce:
1. Configure the outlook mail server to send email notifications in Liferay
2. Sometimes, the following errors occurred while sending emails.
2022-06-26 09:55:21.121 ERROR [liferay/mail-2][MailEngine:74] Unable to send message: 554 5.2.252 SendAsDenied; mode_helpdesk@peugeotmotocycles.com not allowed to send as mode_helpdesk@peugeotmotocycless.com; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. 0.35250:AC2E0000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:A41D0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:A91D0000, 1.44866:B8000000, 16.55847:960F0000, 17.43559:0000000024020000000000000000000000000000, 20.52176:140FFD941200103100000000, 20.50032:140FFD948217000000000000, 0.35180:140FFD94, 255.23226:0A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:27000000, 0.35250:1F001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:5E000000, 1.36674:32000000, 1.61250:00000000, 1.45378:63000000, 1.44866:01000000, 16.55847:D9000000, 17.43559:0000000090030000000000000000000000000000, 20.52176:140FFD94120010106E000000, 20.50032:140FFD948217000003003600, 0.35180:73000000, 255.23226:0A001380, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:0A004200, 4.21921:DC040000, 255.27962:FA000000, 255.1494:0A006400, 0.38698:05000780, 1.41134:46000000, 7.36354:010000000000010B01000000, 0.37692:01000000, 0.37948:86000000, 5.33852:00000000534D545000000000, 7.36354:010000000000010901000000, 4.56248:DC040000, 7.40748:010000000000010B01000000, 7.57132:000000000000000086000000, 4.39640:DC040000, 1.63016:32000000, 8.45434:26715D8E1CC2224FAB31E7771B185A5589D7F9DD, 1.46798:04000000, 5.10786:0000000031352E32302E353337332E3031383A414D30505230354D42353230343A35353064343238342D393261302D343339342D393836312D3332396533336532663338353A343031333600, 7.51330:FB2368FB5957DA0859385CFB, 0.39570:00000000, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:00000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:03003866, 255.31418:0201030F, 0.22753:C5000000, 255.21817:DC040000, 0.64418:0300F40F, 4.39842:DC040000, 0.41586:0A002D67, 4.60547:DC040000, 0.21966:CF000000, 4.30158:DC040000[EndDiagnosticData] [Hostname=AM0PR05MB5204.eurprd05.prod.outlook.com]_ [Sanitized]
com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.252 SendAsDenied; mode_helpdesk@peugeotmotocycles.com not allowed to send as mode_helpdesk@peugeotmotocycless.com; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. 0.35250:AC2E0000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:A41D0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:A91D0000, 1.44866:B8000000, 16.55847:960F0000, 17.43559:0000000024020000000000000000000000000000, 20.52176:140FFD941200103100000000, 20.50032:140FFD948217000000000000, 0.35180:140FFD94, 255.23226:0A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:27000000, 0.35250:1F001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:5E000000, 1.36674:32000000, 1.61250:00000000, 1.45378:63000000, 1.44866:01000000, 16.55847:D9000000, 17.43559:0000000090030000000000000000000000000000, 20.52176:140FFD94120010106E000000, 20.50032:140FFD948217000003003600, 0.35180:73000000, 255.23226:0A001380, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:0A004200, 4.21921:DC040000, 255.27962:FA000000, 255.1494:0A006400, 0.38698:05000780, 1.41134:46000000, 7.36354:010000000000010B01000000, 0.37692:01000000, 0.37948:86000000, 5.33852:00000000534D545000000000, 7.36354:010000000000010901000000, 4.56248:DC040000, 7.40748:010000000000010B01000000, 7.57132:000000000000000086000000, 4.39640:DC040000, 1.63016:32000000, 8.45434:26715D8E1CC2224FAB31E7771B185A5589D7F9DD, 1.46798:04000000, 5.10786:0000000031352E32302E353337332E3031383A414D30505230354D42353230343A35353064343238342D393261302D343339342D393836312D3332396533336532663338353A343031333600, 7.51330:FB2368FB5957DA0859385CFB, 0.39570:00000000, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:00000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:03003866, 255.31418:0201030F, 0.22753:C5000000, 255.21817:DC040000, 0.64418:0300F40F, 4.39842:DC040000, 0.41586:0A002D67, 4.60547:DC040000, 0.21966:CF000000, 4.30158:DC040000[EndDiagnosticData] [Hostname=AM0PR05MB5204.eurprd05.prod.outlook.com]_ [Sanitized]
Environment
- Liferay DXP 7.3
Resolution
- Keep the email sender address and username same in the mail server configurations to resolve the mentioned above errors.
- Below are the steps for checking the same:
1. Click on Control Panel > Server Administration > Content.
2. Click on mail, and check the username.
3. Next, check the email sender address under Instance Settings > Email
Additional Information
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión