Email relay via 365 blocks spoofing of user name

Hi,
configuring the email relay for user password reset:

for use via 365

the relay gateway is “smtp.office365.com

setting user & password works.

But 365 WILL NOT allow spoofing of user details.

relay=smtp.office365.com[40.100.54.242]:25, delay=1.3, delays=0.01/0/0.92/0.38, dsn=5.2.252, status=bounced (host smtp.office365.com[40.100.54.242] said: 554 5.2.252 SendAsDenied; infrastructure@domain.com not allowed to send as MAILER-DAEMON@mirrors.org.domain.com;

it needs some way of ensuring all teh details match, for it to pass the relay requirements of 365

ok…

seems setting this system variable to match the email login fixes it…:
umc/self-service/passwordreset/email/sender_address