[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Re: [cobalt-developers] X-Envelope-To ?
- Subject: [cobalt-developers] Re: [cobalt-developers] X-Envelope-To ?
- From: "Jens-Peter Otto" <jp.otto@xxxxxxxxxxxxxxx>
- Date: Sat Dec 22 10:01:00 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
> If you only need this when receiving mail then it can be done
with
> procmail for each user. In a person's home directory put a
.procmailrc
> file with:
>
> 0: Hf
> * .*
> |formail -b -f -A "X-Envelope-To: your text here"
>
>
> That's all there is to it. Formail will append the header line
before
> delivering the message to the users maibox.
the customer needs the kludge to seperate the mails for his
employees that he receives in one mailbox. Therefore the above
"your text here" needs to be a variable containing the receiver
(they use some tobit software that chokes on mailing-list mails).
The sendmail FAQ says:
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.
Note that "domuser" must be an actual username, *not* an alias.
It may be necessary to append "@localhost", as follows
@domain.com domuser+%1@localhost
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"
I created the .procmailrc, that however results only in an
"X-Envelope-To: UNKNOWN" in each mail ...
>
>
> Jens-Peter Otto wrote:
>
>> Hello,
>>
>> I was asked to add a "X-Envelope-To:" header to all messages to
a
>> certain domain. In the sendmail-faq I found a recipe, that
however
>> includes manually fiddling with the virtusertable, something I
would
>> prefer not to do ...
>>
>> Is there anyone out there who successfully mastered that task
on a RAQ
>> 4?
>>
>> Thanks,
>>
>> Jens-Peter Otto
>>