Error when automated mail is sent

Hi, I’m getting this error:

Error [120]: Ran into problems sending Mail. Response: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:F3310000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.4

Happens when automated mail like the ones that tell the recipient his leave has been approved/refused. Can someone please help me resolve this. I’m a beginner to this sort of thing.

Hi,

It is the SMTP server that respond error 554.
Need to ask your SMTP server provider.

Could be all kind of reasons: 554 SMTP Error Code | SMTP Field Manual
It’s also interesting to analyze the header of the email (e.g. https://mailheader.org/)

I think the problem might be the sender address for the automatic email. It’s not using the email address that I want. What’s the line for changing the default automated email sender in php.ini?

Have you tried to change the email at Admin-Emails
/htdocs/admin/mails.php

How do I do that? Btw I’ve fiddled with it a bit more and automated email seems to work on leave approval/refusal and password reset. The only time the automated email fails is for the leave application (supposed to send one to the supervisor automatically). Apparently it is because when a user applies for leave it emulates that user’s email and not the one specified in the email settings. How do I get it to use the email from the settings?