Skip to content

Instantly share code, notes, and snippets.

<VirtualHost *:80>
ServerName munin.example.org
ServerAlias munin
ServerAdmin info@example.org
DocumentRoot /srv/www/munin.example.org
ErrorLog /var/log/apache2/munin.example.org-error.log
CustomLog /var/log/apache2/munin.example.org-access.log combined
@ssm
ssm / testmail.sh
Created May 15, 2011 11:08
Shell function to test local system mail configuration
# Shell function to test mail delivery.
# Requirements: Linux, and "sendmail" somewhere in PATH
# Run "testmail <recipient>". This will return a single string, for
# which you can find in the mail log.
testmail () {
if [ -n "$1" ]; then
uuid=$(cat /proc/sys/kernel/random/uuid);