On 6/6/2007, "lore" <[EMAIL PROTECTED]> wrote: >hi all, >I have a problem...I need that my postfix send me ( on gmail account ) an >email after the server started up. Can I use the same account on gmail to >send it? >I've tryed with > >mail -s test [EMAIL PROTECTED] < mail_text
To get your gmail address into the from line, you would need to format an RFC822 message, complete with headers and feed it into either your local print spool, or send it off to an external smtp server yourself.. I suppose your best bet is something along the line of this; cat mail | sendmail The file mail should in this case contain all the headers you need (from, to, subject, date, message-id, content-type, content-disposition, etc..) Alternatively, if you invoke sendmail with some parameters, it can insert headers for you - refer to the sendmail manpage. Some related info; cat mail | mail -s test [EMAIL PROTECTED] no trailing . needed in the file you could even use echo 'server up' rather than 'cat mail' for testing MTAs, I frequently pipe 'date' through 'mail' >the cat of mail_text is > >test test test >. > >but the answer is: Mail Delivery Status Report will be mailed to <root> What do you mean by "answer"? That the MDSR would be delivered to <root> is quite expected, as root was the sender.. >Could anybody help me? What really i need to change in main.cf? You might want to set local_domain.. -- Cheers, Morten :wq _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
