
Domain mail delivery from a dialup account

Installation

     * Needs Eric Allman's latest sendmail-8.7.5 package at
       ftp://ftp.cs.berkeley.edu/ucb/sendmail/sendmail.8.7.5.tar.gz
       With it comes makemap. This is needed to maintain the
       /etc/mailertable file.
     * Needs new /etc/sendmail.cf. This file is not one that people mess
       with anymore - it is built from m4 macro files.
     * Needs Felix Schroeter's <felix@snake.pond.sub.org> Batch SMTP
       package on ftp://ftp.wizzy.com/pub/wizzy/bsmtp-0.93.tar.gz.
       This includes Andy Rabagliati's <andyr@wizzy.com> deliver perl
       script to run on being fingered.
     * Install the Batch SMTP package. Felix has a nice configure script
       that asks you the details of your system, and searches for the
       relevant tools, and patches his code (and mine) appropriately. One
       question is asked that may puzzle you - where are "private
       binaries" kept. You may choose to go with the default, but make
       sure the directory exists, or I put them in /etc/mail. This writes
       files in /var/spool/bsmtp, directory owned by daemon, if you go
       with the suggested defaults.
     * Your sendmail.cf file must be rebuilt with Batch SMTP support. The
       package above includes the relevant m4 macro files.
          + Go to the place on your system where you keep your sendmail
            configuration files - in my case that is
            /usr/local/src/sendmail-8.7.5/cf/cf/
          + Example source in provider.mc - note particularly the line
            MAILER(bsmtp)dnl
          + Put the macro files for the BSMTP mailer in the mailer
            directory - in my case that would be
            /usr/local/src/sendmail-8.7.5/cf/mailers/bsmtp
          + Type make provider.cf
     * Needs Mike Shanzer's fingerd-1.3 package at
       ftp://kiwi.foobar.com/pub/fingerd.tar.gz or my local copy on
       ftp://ftp.wizzy.com/pub/wizzy/fingerd.tar.gz. It must be
       configured to run the perl script below when mail@provider.com is
       fingered. I install the fingerd configuration files in
       /usr/local/etc/finger, and add this line to the users file :-
       mail: /usr/local/etc/finger/deliver %H
       
Maintenance

   Add bsmtp account :-
   
     * add domain.com to /etc/mailertable, as domain.com bsmtp:domain.com
     * create /etc/mailertable.{pag|dir} with the following command :-
       /etc/mail/makemap dbm /etc/mailertable
     * send the following message to account owner :-

From: postmaster@provider.com
To: user@provider.com
Subject: Batched SMTP delivery of mail

Dear account owner,

Mail delivery to your domain has been changed to use Batched SMTP.

You MUST have an SMTP server running on the machine mail.domain.com
whenever you are dialed up to provider.com.

Any mail addressed to your domain, or any sub-domain of your toplevel
domain, is delivered as follows :-

1. If you are online, it is delivered directly to your mailserver,
   mail.domain.com.

2. If you are offline, it is saved in a file at provider.com.

To trigger delivery of saved mail, use "finger mail@provider.com" while
online. This will deliver all saved mail to your SMTP server above.

--
postmaster@provider.com
