[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Re: [cobalt-developers] X-Envelope-To ?
- Subject: Re: [cobalt-developers] Re: [cobalt-developers] X-Envelope-To ?
- From: Herb Rubin <herbr@xxxxxxxxxxxx>
- Date: Sat Dec 22 10:38:01 2001
- Organization: Pathfinders Software
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Jens,
Technically, there is only "one receiver" since it all dumps into a
single mailbox.
Can't they just use the To: line to figure out who it belongs to? That
won't work
100% either since they will get alot of mail not addressed to anyone in
the office.
Seems like a mess to me.
Herb
Jens-Peter Otto wrote:
> > 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
> >>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
--
Herb Rubin Pathfinders Software
herbr@xxxxxxxxxxxx http://www.pfinders.com
phone: 650-692-9220 fax: 650-692-9250