makemap
. This is needed to maintain the /etc/mailertable
file.
/etc/sendmail.cf
. This file is not one that people mess with anymore - it is built from
m4 macro files.
/var/spool/bsmtp
, directory owned by daemon, if you go with the suggested defaults.
sendmail.cf
file must be rebuilt with Batch SMTP support. The package above includes
the relevant m4 macro files.
/usr/local/src/sendmail-8.7.5/cf/cf/
provider.mc
- note particularly the line MAILER(bsmtp)dnl
/usr/local/src/sendmail-8.7.5/cf/mailers/bsmtp
make provider.cf
/usr/local/etc/finger
, and add this line to the users
file :- mail: /usr/local/etc/finger/deliver %H
Add bsmtp account :-
/etc/mailertable
, as domain.com bsmtp:domain.com
/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