What is the definitive way to stop the system from sending emails as asterisk

With all the email security these days there must be a way to set these systems easily. I have changed the main.cf , conical files, the voicemail.conf, setup a do not email from this email asterisk @mydonain.com restarting the server (postfix) and still it sends an email with asterisk@ as the sender. This is nuts the number of things that we have to go through. Is there a definitive guide on how to do this?

sorry for the rant, just frustrated

1 Like

It is not the definitive way. However rather than change from addresses in the application (unsuccessful) I used postfix smtp_generic_maps.

In /etc/postfix/main.cf

..
smtp_generic_maps = hash:/etc/postfix/smtp_generic
..

In /etc/postfix/smtp_generic, for example:

[email protected]       [email protected]
@localhost.localdomain     [email protected]

and

postmap /etc/postfix/smtp_generic

Thanks Darcy I will give it a try.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.