[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Sendmail configuration



This is from the sendmail Faq:


>>>>>>>>>>>>
Q3.29 -- How can I add a header specifying the actual recipient when having
multiple users in a virtual
domain go to a single mailbox?

Date: July 2, 1998

Stuffing multiple user's mail into a single mail box is not a good method
of distributing user mail but if you must do this, the following solution
should allow a tool like fetchmail to separate the messages for individual
users.

    1.Use FEATURE(local_procmail) in your .mc file so procmail (which you
must install
    separately) will deliver mail to the mailbox.
    2.Use FEATURE(virtusertable) to create a virtual user table entry for
the domain as
    follows:

       @domain.com     domuser+%1

       where domuser is the username of the mailbox you will be using.
    3.Put this in the respective domuser's $HOME/.procmailrc:

       DOMAIN=domain.com
       ENV_TO=$1

       :0f
       * ENV_TO ?? .
       | formail -i "X-Envelope-To: "$ENV_TO@$DOMAIN

       :0fE
       | formail -i "X-Envelope-To: UNKNOWN"

       This will insert an X-Envelope-To header with the original envelope
recipient address when the message is delivered the normal way via the
virtusertable, and UNKNOWN if for some
       reason it was sent directly to domuser.
<<<<<<<<


Although I have done this, ENV_TO is never set to anything.

Any ideas as to why not?


JR