33 hours ago
I'm successfully sending out email from a server using Postfix smtpd, but on the receiving end, the emails are just coming from dan@emerson (emerson is the name of the originating host), and not firstname.lastname@example.org. Thus they get put in spam. In main.cf I've set mydomain and myorigin to "mydomain.com" (the real domain withheld). Is there anything else I should check so I can get the outgoing emails to be sent from email@example.com?
8 hours ago
echo "Message body" | mail -s "Some subject" -r firstname.lastname@example.org email@example.com