This is a simple add-on to allow qmail to process BSMTP.

The "rsmtp" program handles incoming messages.
Install this where uuxqt can find it. Under the name "rcsmtp" or
"rgsmtp" it will invoke gzip for uncompressing its input.

The "maildir2bsmtp" program handles outgoing messages.
It takes messages from a maildir and converts them into BSMTP format,
much like maildir2smtp. To use it, deliver your outgoing mail into a maildir:
maildirmake /var/qmail/bsmtp; chown -R alias /var/qmail/bsmtp
Put
 :alias-uucp
into control/virtualdomains and
 /var/qmail/bsmtp/
into ~alias/.qmail-uucp-default.
Then run from crontab for user "alias" the following:
  maildir2bsmtp -s100000 /var/qmail/bsmtp "uucp-" \
        "gzip -cf | uux - -r -gC uucphost!rgsmtp"
(note the quotes!).

maildir2bsmtp puts processed messages in the "cur" subfolder tagged
"batched". It puts messages that could not be processed due to some
error in the "cur" subfolder tagged "BAD". It deletes messages which
are tagged "batched" and older than 24 hours from the "cur" subfolder
and cleans up the "tmp" subfolder as required by maildir(5).

The programs are written in perl (4 or 5). Make sure to set the #!
lines and PATH right.

The BSMTP format was essentially copied from smail. In particular,
lines end with NL only. rsmtp handles incoming CRLF line endings,
however.

January 1997 - Olaf Titz <olaf@bigred.inka.de>
