[exim] $original_local_part does not match local part in Env…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Rainer Dorsch
Ημερομηνία:  
Προς: exim users
Αντικείμενο: [exim] $original_local_part does not match local part in Envelope-to
Hi,

I have a mail rule in my .forward file

[..]
elif "$original_local_part" is "microdollar" then save Maildir/.AA-
bokomoko.spam/
[..]
else
save Maildir/
endif

and I am wondering why an email with the header does not match this rule

Return-path: <>
Envelope-to: microdollar@???
Delivery-date: Wed, 24 Feb 2021 20:18:41 +0100
Received: from astmpdsfsdf-i110telefonica.westeurope.cloudapp.azure.com 
([51.144.111.8] helo=hx2p.uni-kassel.de)
        by contabo.bokomoko.de with esmtp (Exim 4.92)
        id 1lEzgE-000822-A0
        for microdollar@???; Wed, 24 Feb 2021 20:18:41 +0100
To: microdollar@???
Date: Wed, 24 Feb 2021 10:25:14 +0100
Message-Id: <GvLAIpd-rudsqcs-dpggrgx@???>
Subject: =?utf-8?Q?Verdiene_7000_Euro_pro_Tag_von_zu_Hause_aus?=
From: "Dragon" <vttkjur@???>
MIME-Version: 1.0
Content-Type: text/html
X-Spam-Score: 4.1 (++++)
X-Spam-Report: Spam detection software, running on the system 
"contabo.bokomoko.de",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.


whereas others match this rule as expected.

As logfile entry I get
2021-02-24 15:41:19 1lEvLm-00042d-Oe <= <> H=adsfsdf-
i38p.northcentralus.cloudapp.azure.com (8pwh.gdajie.com) [52.240.147.103]
P=esmtp K S=4972 id=VavwMbp-rudsqcs-dpggrgx@???
2021-02-24 15:41:19 1lEvLm-00042d-Oe => rd <microdollar@???>
R=local_user T=maildir_home
2021-02-24 15:41:19 1lEvLm-00042d-Oe Completed

Is there a way to log the value of $original_local_part (or other variables)
in /var/log/exim/mainlog ?

Would e.g.

[...]
else
save Maildir/ logwrite $local_original_part
endif

work?

Many thanks
Rainer

--
Rainer Dorsch
http://bokomoko.de/