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.
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
On 05/10/04 13:03 +0530, Nosferatu!!! wrote: <snip>
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
myhostname and myorigin.
In this case though, he need canonical maps and masquerade_domains.
Devdas Bhagat
On Tue, 5 Oct 2004, Devdas Bhagat wrote:
Look at the $mydomain, $myhost and $myorigin in main.cf
myhostname and myorigin.
In this case though, he need canonical maps and masquerade_domains.
Hi! I guess i figured out by trial and error.
cat mail.txt|sendmail -f "My Name my_id@yahoo.com"
does the trick
BR Nikhil