Major email service providers do not allow this aliasing.
That is, they do not allow an email to be sent from an ID that is not logged in with SMTP.
to be able to send an email the sender must have the SMTP login of ID in question.
How do you configure SMTP for department email ID's