I added a second domain to my web server. I had my hosting company assist with postfix configuration. Since then I am able to send email from the command line using php:
php -r 'mail("firstname.lastname@example.org", "Test Subject", "Test Message", "-f email@example.com");'
When I use the above to send email to either Outlook and Gmail, everything is perfect, so long as I include the
"-f firstname.lastname@example.org". Email from Magento, on the other hand, shows me the email is "sent by/via"
Since as far as I know Magento is using the php mail command, why am I not getting the correct from address? What can I do to fix this? This seems like it would be a very common problem to have, I would think there is some sort of setting in Magento I'm missing.