Hi! I am trying to send a mail from a script like
cat /tmp/mymail.txt | sendmail
where sendmail is the sendmail interface provided by Postfix. mymail.txt contains a valid From: field which is like my_id@yahoo.com However when I see the mailq, the sender field says: "root@localhost.localdomain"
I tried the sendmail -bs switch but it gives following message:
220 localhost.localdomain ESMTP Postfix 221 Error: I can break rules, too. Goodbye.
How do I override the root@localhost.localdomain ?
Thanks, Nikhil
P.S. Incidently pine manages to send mails by a different From name than that of user@domain.