Re: [OT] automatic mail bash script
lore <[email protected]> Wed, 6 Jun 2007 15:03:26 +0200
| Newsgroups | gmane.linux.trustix.general |
|---|---|
| Message-ID | <[email protected]> |
hi Morten, Alternatively, if you invoke sendmail with some parameters, it can insert > headers for you - refer to the sendmail manpage. ok, i've chosen this way ;o) 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' ok... > for testing MTAs, I frequently pipe 'date' through 'mail' do you mean that if I run mail -s test [email protected] I've to recieve an email on [email protected] account ( with subject "test" and nothing in the body ) from root...is it right? Because i don't recieve the email > What do you mean by "answer"? > That the MDSR would be delivered to <root> is quite expected, as root was > the sender.. I mean the answer from the command line...when I run the command "mail -s....." the shell return me that... >Could anybody help me? What really i need to change in main.cf? > > You might want to set local_domain.. > ok, but i've no domain in my server, because is a home little server and i need to recieve on mail the ip of ppp0 :) - buena mista social ska -