[exim] Exim rewrite rule for missing from address possible

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jan Keirse
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Exim rewrite rule for missing from address possible
Hello,

We've got a UPS device that sends out mails where the from in the body
does not contain a valid email address, only a name. The device sends
mails pretty much like this:

-------------start----------------------
Return-path: <valid.email@???>
Received: from [10.44.31.123] (helo=)
        by ourmailgateway.ourdomain.com with smtp (Exim 4.84)
        (envelope-from <valid.email@???>)
        id 1XPS9w-00038u-Ge
        for 32473713280@???; Thu, 04 Sep 2014 10:12:48 +0200
Date: Thu, 04 Sep 2014 10:12:48 +0200
Message-Id: <E1XPS9w-00038u-Ge@???>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
From: SOCOMEC UPS Mail Service
To: somephonenumber@???
Subject: some subject
some mail body
-------------end----------------------


The problem is that oursmsgateway, on which we have little influence,
does not accept the mail because the from in the body (SOCOMEC UPS
Mail Service) is invalid. The UPS does not allow us to change this
'address' as far as we can see.
I have tried rewrite rules like this:

^SOCOMEC\.*\$ valid.email@??? EhS

which does not work, I assume because it would only affect the MAIL
FROM: at the start of the SMTP conversation, not the email body.

And also:
valid.email@???     another.valid.email@??? Eh


But this doesn't work either (I assume because valid.email is not in
the from: in the body.

Is there a way to have exim change the email body from if it does not
contain an email address, only a name?


Kind Regards,

Jan Keirse

--


**** DISCLAIMER ****

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."