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: [email protected]
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 [email protected]; Wed, 24 Feb 2021 20:18:41 +0100
To: [email protected]
Date: Wed, 24 Feb 2021 10:25:14 +0100
Message-Id: <[email protected]>
Subject: =?utf-8?Q?Verdiene_7000_Euro_pro_Tag_von_zu_Hause_aus?=
From: "Dragon" <[email protected]>
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 [email protected]
2021-02-24 15:41:19 1lEvLm-00042d-Oe => rd <[email protected]> 
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/



-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to