[exim] can someone help me with a(nother) problem?

Top Pagina
Delete this message
Reply to this message
Auteur: Chuck
Datum:  
Aan: exim-users
Onderwerp: [exim] can someone help me with a(nother) problem?
Greetings and thanks in advance for any help that might be available. Thanks also for
exim-4.20, and other versions including 4.50. My wife says I can fly to England to attend
the Exim conference and she won't object to my spending what would amount to about
1,200 pounds -- YIKES! I'd love to do it, but it is hard for me to rationalize that
expenditure, much as I like Exim, considering the size of "ourdomain.org" and the few
users we have. :-)

Apologies in advance for this being rather long. It is, however, mostly header snippets.

My problem concerns filtering using a mail client (Pegasus, but could be any).

Currently using Exim 4.50 and we are making a copy of each incoming message using
the following entriwa in /etc/aliases

Let's say the user is Anna Jones and her UID is anna and her formal email name is
Anna.Jones@???

Anna.Jones:    anna


anna:    rcd, \anna



So, rcd gets a copy of each incoming message addressed to anna@??? or to
Anna.Jones@??? and that part is working just fine.

The problem is that anna gets a lot of email from a court system and the messages
come out of Exim addressed like this:

Date: Thu, 5 May 2005 etc.
From: thedepartment@???
To: thedepartment@???
Subj: case number etc.

BODY OF MESSAGE IRRELEVANT

BLAH, BLAH, BLAH


THEN:

Notice will be electronically mailed to:

Richard C D____ rd___@???, anna.jones@???

others

others

------------end of the message--------- (it doesn't really say THAT!)

OK, if I use Pegasus to examine the header, it looks like this: (this is from same place
but it was before exim-4.50 update so it says 4.34, but we get hundreds and they're all
the same)

Return-path: <thedepartment@???>
Envelope-to: anna.jones@???
Delivery-date: Tue, 03 May 2005 13:22:03 -0500
Received: from resXX.gtwy.thecourt.gov ([XXX.XX.111.130] 
helo=xxxxx.xxxxx.thecourt.gov)
    by ourdomain.org with esmtp (Exim 4.34)
    id 1DT21y-0001zc-MP
    for anna.jones@???; Tue, 03 May 2005 13:22:02 -0500
Received: (from root@localhost)
    by xxxxx.xxxxx.thecourt.gov (8.11.7p1+Sun/8.11.7) id j43I8oc00010;
    Tue, 3 May 2005 13:08:50 -0500 (CDT)
Date: Tue, 3 May 2005 13:08:50 -0500 (CDT)
MIME-Version: 1.0
From: thedepartment@???
To: thedepartment@???
Message-Id: <2099999@???>
Subject: Proof of Claim 04-XXXXXX
Content-Type: text/html
X-UIDL: 2f%"!m5"#!dV*"!VR$#!


I hope that in obscuring the real identities I have not made mincemeat of what you need
to see.

What I want to do is this:

On the RCD computer, using Pegasus (or something else other than Outlook Express),
filter mail addressed to anna or anna.jones or containing the expression "Envelope-to:
anna" and put it into a folder in the Pegasus mail client called Anna-In.

Any mail from inside or outside ourdomain.org addressed to anna, anna.jones actually IS
filtered properly but these whose headers have been rewritten defy my modest brain.
They simply go to the inbasket where RCD has to look at them one by one and put them
where they belong.

I understand that the "Envelope-To: anna.jones@???" is added by the
transport, but can you suggest anything that would allow me to "catch" these messages
in my filter.

If you need other info, I'll certainly supply it.