The document describes how you can configure dial-up e-mail server using dsmtp mailer introduced in sendmail 8.10.
In on-line mode sendmail will attempt "at once" delivery of messages accepted during on-line mode It is much better solution for semi-permanent or "long calls" dial-up sites than other solutions I know.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE AUTHOR NAME MUST BE QUOTED IN ANY WORK DERIVATED FROM THE WORK.
Add the following lines to *.mc file you use to generate sendmail.cf
dnl Do not check envelope sender address via DNS FEATURE(`accept_unresolvable_domains')dnl dnl Do not canonify email addresses (the process requires DNS lookups) FEATURE(`nocanonify')dnl dnl Use mailertable FEATURE(`mailertable')dnl
and generate new sendmail.cf file
Create /etc/mail/mailertable-online file
# keep empty if you want send directly # send directly, use the ISP as fall-back . esmtp:%1:[isp-mail-server]
and /etc/mail/mailertable-offline file
# use dummy dsmtp relay to keep messages in the queue . dsmtp:[127.0.0.255]
Modify ip-up and ip-down scripts usually located in /etc/ppp/ directory [on some systems you should modify ip-up.local and ip-down.local ]
ip-up fix:
# compile online version of mailertable ( cd /etc/mail; makemap hash mailertable < mailertable-online ) # make sendmail process the queue (side effect of making it reread the configuration) kill -HUP `cat _file_with_sendmail_daemon_pid_` # or run "sendmail -q &" instead of HUPing
ip-down fix:
# compile offline version of mailertable ( cd /etc/mail; makemap hash mailertable < mailertable-offline )
If you use sendmail 8.12 modify *.mc file you use to generate submit.cf
define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
Other ways to configure sendmail for dial-up:
The
posting
Subject: dialup in sendmail 8.10
Date: 2000-07-29
Newsgroups: comp.mail.sendmail
Message-ID: <39ABEC70.F132F0AC@anfi.freeshell.org>