I use postfix on a debian server and I have it configured to use gmail as a smarthost (hope I've got that right).
How can I set the From: address on my outgoing mails? I need to change that on every occasion. (Background: a wordpress blog contact form plugin sets the from address but that gets changed to my google app address.)
Example: when I run
echo foo | mail -s subject firstname.lastname@example.org the From name is always the one of my google account.
This is part of my
main.cf from postfix, if this helps.
smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_password smtp_tls_security_level = may
Any other information I should provide?