UNB/ CS/ David Bremner/ blog/ posts/ Setting up nullmailer and ssh
  1. Set up a passwordless ssh keypair in /etc/nullmailer (or somewhere); make these owned by mail.mail

  2. Create a user on the remote host with password login disabled.

  3. ssh once from local mail user to remotemail user as a test. This also sets up known

  4. copy the sshsendmail script to /usr/lib/nullmailer and make it executable

  5. apt-get install libuser-perl