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 dan@mydomain.com. 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 dan@mydomain.com?
main.cf
mydomain
myorigin
8 hours ago
Try with:
echo "Message body" | mail -s "Some subject" -r dan@mydomain.com destination@receiver.com