Hosted by PSE.pl | Created: 2002-05-30 | Last update: 2005-01-12 23:54:12 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

Deliveries to Shared Mailboxes (sendmail)

Abstract

The document describes how to make sendmail deliver messages to a shared mailbox. It requires copying "envelope recipient" information into message headers e.g. fetchmail typically uses X-Envelope-To: header.

Unlike solution suggested in sendmail FAQ (Q3.29) which stores one message copy per every recipient this solution stores only one copy of the message.

This page is mentioned in PROCMAIL QUICK START by Nancy McGough.


Copyright (c) 2002 Andrzej Filip

Install

  1. Make procmail mailer capable to deliver to more than one recipient
    MODIFY_MAILER_FLAGS(`PROCMAIL',`+m')
    MAILER(`procmail')
    
  2. Create the procmail script in /etc/procmailrcs directory.
  3. Make sendmail use the script for deliveries to shared-mailbox.domain [requires FEATURE(`mailertable')]

    Required mailertable entry:

    shared-mailbox.domain   procmail:/etc/procmailrcs/shared-mailbox.domain.rc
    

    Make sure that shared-mailbox.domain IS NOT a local email domain. To get list of local domains use:

    echo '$=w' | sendmail -bt
    
  4. Make sendmail accept messages fro shared-mailbox.domain [requires FEATURE(`access_db')]

    Required access entry [syntax supported by sendmail 8.10+]:

    to:shared-mailbox.domain        RELAY
    
  5. [Optional] Make sendmail know valid user addresses in shared-mailbox.domain using virtusertable for non local domains (available since sendmail 8.10+).
    user1@shared-mailbox.domain  !
    user2@shared-mailbox.domain  !
    @shared-mailbox.domain  error:nouser user unknown
    

Additional