Monitor mail queue with filter

check_mailq_filter – an Icinga / Nagios postfix mail queue monitor with a filter (include or exclude mails matching a pattern). So to exclude facebook mails from your monitor you may run: check_mailq_filter.py -x ‘.*facebookmail.*’ While you’re here, have a look at pfqueue – a console tool for interactively viewing your postfix queue that’s a step …

Continue reading ‘Monitor mail queue with filter’ »

Auto-insert snippet for python emacs

A small skeleton you can put into your python emacs editing session: ;; insert python skeleton with auto-insert (eval-after-load ‘autoinsert ‘(define-auto-insert ‘(“\\.\\py\\'” . “python skeleton”) ‘(“” “#!/usr/bin/env python” \n “# ” (file-name-nondirectory (buffer-file-name)) \n \n “def main():” \n “pass” \n \n “if __name__ == ‘__main__’:” \n “main()” \n \n)))