Force postfix to make ‘from’ email the same as authenticated login

I recently set up a postfix server with mysql authentication to centralise all my outgoing emails into an easy to use server with API functionality to tie into all the sites I’m developing, but noticed that even though I logged in with a specific email address, I was able to change the ‘From’ email address into anything (even one that wasn’t in the authentication tables). Continue reading “Force postfix to make ‘from’ email the same as authenticated login”