Sending dmesgs with femail
From OpenBSD-Wiki
| Written for: OpenBSD Version 4.2 |
Contents |
[edit] Overview
If you have a mail server available which doesn't require authentication (i.e. SMTP-AUTH) and you don't want to install a full-fledged email client on dedicated machines like routers, femail(8) from ports can help you sending a dmesg easily.
[edit] Installation
Please use the correct architecture and a server near you.
# pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/femail-0.97.tgz
If you don't want to install the package, just extract the program:
$ ftp ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/femail-0.97.tgz $ tar -xzf femail-0.97.tgz -s "/sbin\///" sbin/femail
[edit] Use
First you need the email header:
$ cat <<__EOT > dmesg.txt From: Your Name <account@example.com> To: dmesg@openbsd.org Subject: Model xyz, ACPI works OK __EOT
Note: please provide a valid email address, so you can be contacted by developers.
Next, append the dmesg:
$ dmesg >> dmesg.txt
Finally, send it. "-v" verbose, "-t" read recipients from stdin:
$ more dmesg.txt | SMTPHOST=mail.example.com femail -v -t
Note: Without the SMTPHOST environment variable femail connects to localhost.
Reminder: if you just extracted femail you likely need to run ./femail in above example.
If you plan to use femail frequently for even other uses, set 'smtphost' in the femail.conf config file, see man page.
[edit] More
todo: determine if it's ok to send acpi-dump (if somethings not working) and related to dmesg@
[edit] Links
[edit] Comments
Place your comments here.
