On Mon, Oct 04, 2004 at 09:44:47AM +0530, Nikhil Joshi wrote:
Hi! I am trying to send a mail from a script like
cat /tmp/mymail.txt | sendmail
I believe you should be doing a:
cat /tmp/mymail.txt | sendmail -t
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 ?
Look at the $mydomain, $myhost and $myorigin in main.cf
Its been quiet a while since I've seen a Postfix main.cf, but, I remember the options to be somthing like the above.
HTH,
Nosfertu