Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
if [ $# = 2 ]
then
i=$2
p=61902 # Change this - first free port
if [ $1 = "add" ]
then
echo Making links to $i in home directory...
echo "|/home/`whoami`/bin/qmail-lmtp $p 1" > ~/.qmail-$i