Hosted by PSE.pl | Created: 2002-04-12 | Last update: 2003-06-17 09:06:38 UTC | GnuPG signature of this page
anfiTop | anfiUp | Andrzej Filip | Mirror Sites | GnuPG Keys | New!google
googleMy Postings | slashdotJournal | Showing Gratitude
Personal | Sendmail | Exim | General MTA | Cyrus IMAP | UUCP

Sendmail 8.10+ Dial-up

Abstract

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.


Copyright (c) 2000,2002 Andrzej Filip

Install

  1. 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

  2. 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]
    
  3. 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 )
    
  4. If you use sendmail 8.12 modify *.mc file you use to generate submit.cf

    define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
    

Additional

Other ways to configure sendmail for dial-up:

Original Posting

googleThe posting
Subject: dialup in sendmail 8.10
Date: 2000-07-29
Newsgroups: comp.mail.sendmail
Message-ID: <39ABEC70.F132F0AC@anfi.freeshell.org>