procmail
[Top] [All Lists]

Re: rewriting and emails from mailing lists

1999-09-09 21:46:41
Venky <venky(_at_)del2(_dot_)vsnl(_dot_)net(_dot_)in> writes:
I searched the archives but could not find a similar problem.

Hmm, when I search the archives for "virtual host" I find *lots* of
matches, including references to era eriksson's FAQ.  See below.


I have a virtually hosted domain where aliasing is being done:
somenames(_at_)mydomain(_dot_)com go to one mailbox and 
othernames(_at_)mydomain(_dot_)com go to
another mailbox

We use some pop mail collectors to collect the mail from the mailbox and
distribute over our LAN.

There is a problem that happens with some mailing lists. Usually, there is
some stamp such as recipient(_at_)mydomain(_dot_)com somewhere in the header 
of the
email, which allows the mail collector to identify the message. In the case
of some mailing lists, there is *NO* mention of the alias/ recipient or
even the domain name anywhere in the header ! What i cannot figure out is
how do these messages land up in the appropriate mailbox anyway! (i checked
by subscribing to certain mailing lists from various email addresses).

For an explanation of this please read:

        http://www.iki.fi/~era/procmail/mini-faq.html#advanced


Now, what i would very much like to do is to use procmail to rewrite the To
header or to write a new header, such as procmail_to:
username(_at_)mydomain(_dot_)com(_dot_) I tried a variety of combinations 
using "!" but
without any luck.

At the virtual hosting point, is the envelope recipient being saved
somewhere?  If procmail is part of the actual virtual hosting action, is
it being passed the envelope recipient on its command line?  If you're not
sure what the answers to those questions, how is the virtual hosting done?


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>