Reason : com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.252 SendAsDenied;
user1@domain.com not allowed to send as
user2@domain.com; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. 1.84300:0A000000, 1.84300:0A000000, 1.84300:0E000000, 1.84300:32000000, 1.116652:301F0000, 1.81836:76020000, 0.117068:0B000000, 1.79180:0A000000, 1.79180:0A000000, 1.79180:0E000000, 1.79180:32000000, 1.79180:FA000000, 0.73100:5230314D, 0.38698:05000780, 1.41134:87000000, 1.41134:47000000, 0.37692:87000000, 0.44092:87000000, 0.41232:01000000, 0.60208:0F010480, 0.37136:71DA8300, 0.34608:87000000, 0.55056:7A000100, 0.42768:87000000, 0.56112:ACC3F302, 0.52807:9BC3F302, 0.46663:87000000, 1.41134:47000000, 7.36354:0100000000000109ACC3F302, 4.33016:DC040000, 7.40748:010000000000010B87000000, 7.57132:000000000000000087000000, 4.39640:DC040000, 1.63016:32000000, 8.45434:CD178544E0FF4A42BCCDA6CAB6BA239700000000, 1.46798:04000000, 5.10786:0000000031352E32302E373938322E3030303A424D31505230314D42333136393A62383332623462322D393933622D343066382D383831302D3837616363616332353466343A31303734383A2E4E455420382E302E38000800000000, 7.51330:45AA749EE7D7DC080A000000, 0.39570:0A000000, 1.55954:0A000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:00000000, 1.56562:00000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:00000000, 1.56562:00000000, 1.55954:0A000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:00000000, 1.56562:00000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:00000000, 1.56562:00000000, 1.64146:0E000000, 1.33010:0E000000, 2.54258:00000000, 1.33010:0E000000, 2.54258:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 1.33010:32000000, 2.54258:DC040000, 0.79500:00000000, 0.100684:00000000, 4.120460:DC040000, 1.52466:02000000, 1.52466:02000000, 1.42738:05000000, 0.37698:1B000000, 1.42738:05000000, 0.37698:02000000, 1.52466:01000000, 0.60402:1B000000, 1.52466:01000000[EndDiagnosticData] [Hostname=BM1PR01MB3169.INDPRD01.PROD.OUTLOOK.COM]