Send system cronjob output via XMPP

This is useful if you either lack a complete e-mail infrastructure for your server, or if you don't need a full-fledged e-mail server setup with domain names and all that.

I personally use it to get the information as fast as possible, rather than wait for the next polling of …

more ...

Mail on SSH-login

First we need a way to send an e-mail. This package provides the "mail" command.

apt-get install mailutils

As root, create the file /etc/ssh/sshrc with the following content:

exec 1>&2
env | mail -s "LOGIN $USER@$(hostname) from ${SSH_CONNECTION%% *}" root

From now on the user "root" will receive …

more ...