[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: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Sat Dec 22 14:42:05 2001
- Organization: nobaloney.net
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Jens-Peter Otto wrote:
> 1.Use FEATURE(local_procmail) in your .mc file so procmail (which
> you must install separately) will deliver mail to the mailbox.
My RaQ4 uses procmail. So the first one, above, has already been done
by the friendly folk at Sun/Cobalt <smile>.
> 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
You MUST have the alias in your virtusertable file and that must be a
tab between the two columns. Be sure to add it at the bottom, where'
it's okay to add local additions.
Then be sure to has the file:
# makemap hash virtusertable < virtusertable
> 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 is the last step.
> I created the .procmailrc, that however results only in an
> "X-Envelope-To: UNKNOWN" in each mail ...
Because the error condition (:0fE) is to use "UNKNOWN". So you're not
getting anything in the variable $1.
If it still doesn't work after you've verified you've done all the above
(and it may not; I've not tried it nor researched if (for example)
jeff+bill goes to the jeff email box or not or if the information after
the "+" is what ends up in the $1 variable), I'd try a sendmail mailing
list for more definitive information.
There's a good mailing-list for mailserver help at
listar@xxxxxxxxxxxxxx Send "subscribe mailhelp" in the subject line to
subscribe.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net
P. O. Box 52672, Riverside, CA 92517
voice: (909) 778-9980 * fax: (702) 548-9484