OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: How to rewrite the display part of a From: address

From: Alex Bligh (alexalex.org.uk)
Date: Thu Dec 06 2007 - 18:39:42 CST


Wietse,

Thanks a lot. That works perfectly (though the device needs further surgery
I'm sure pcre can handle it).

Alex

--On 6 December 2007 18:49:27 -0500 Wietse Venema <wietseporcupine.org>
wrote:

> Alex Bligh:
>> I have a deficient MUA (mobile device) which submits email via SMTP
>> like this:
>>
>> From: joebloggsexample.com
>>
>> rather than say:
>>
>> From: "Joe Bloggs" <joebloggsexample.com>
>>
>> As the MUA is not easily fixable, is there a mechanism where one can
>> rewrite only the display part of the header From: address?
>
> See the header_checks(5) REPLACE action (Postfix 2.2 and later).
>
> /From: *joebloggsexample\.com *$/
> REPLACE From: "Joe Bloggs" <joebloggsexample.com>
>
> Wietse
>
>

Alex