Hi!

On Sat, Feb 14, 2009 at 09:47:38AM +0900, Jordi Beltran Creix wrote:
>[...]

>Hello,

>Forgive me, but wouldn't
>    (echo "Subject: type of machine" ; dmesg ; sysctl hw.sensors) |
>sendmail -f$YOUR_EMAIL dm...@openbsd.org
>be better?
>Else, if the hostname is not a valid domain, the mail does not get through.

Your gripe is valid a bit.  Your command doesn't work either, though.

1. it misses a blank line after the subject header.
2. it doesn't set the envelope from if your user isn't in the trusted
   users list.

Better once and for all setup your mail system to send out mail with a
valid email address and host name (or use a smarthost to circumvent
the latter).  See "masquerading" for sendmail.

Kind regards,

Hannah.

Reply via email to