The Problem:
I recently subscribed to a cable modem service. My home machine
is now online almost 100% of the time. I also got a free domain
name. I wanted by email to be forwarded to my home machine if
possible otherwise spooled normally. My university department
recently upgraded to qmail (from sendmail).
The Solution:
Write a small QMTP fowarding program (serialmail wasn't really
what I wanted). Add the following two lines to my .qmail file:
|if $HOME/bin/tcpclient my.domain 209 $HOME/bin/qmtp
$SENDER neil; then exit 99; else exit 0; fi >>$HOME/qmtp.log
2>&1
./Maildir/
The source for qmtp is here:
http://www.ucalgary.ca/~nascheme/qmtp.c
Please let me know if you find any security holes. So far things
are working great.
I also have a patch to add maildir support to the pine imap
server. I based it on Mattias Larsson's patch but fixed some
problems with multiple folders on the server.
http://www.ucalgary.ca/~nascheme/maildir-nas.diff
Perhaps someone will find this information useful. Thanks for
qmail, tcpclient, and QMTP Dan.
Neil
--
"The percentage of users running Windows NT Workstation 4.0 whose PCs stopped
working more than once a month was less than half that of Windows 95 users."
-- microsoft.com/ntworkstation/overview/Reliability/Highest.asp