On 7/31/2014 2:15 PM, Xie, Wei wrote:
> Greetings,
> 
>  
> 
> In Postfix header_check,  I would like to know how to fetch “From
> address” from header via Postfix head_check.  The rule “/^From: (.*)
> / PREPEND Resent-From: [email protected] “ seems not working.
> 
>  

yuck...  horrible abuse of the Resent-From header.

Does your test mail actually have a From: header?

Does your header_checks file have other From: rules above this?
Only one header_checks rule will fire for a particular header.


But this is a really bad idea. Resent-From should NOT be added by
the MTA.



> 
> But the following two rules are working.
> 
>  
> 
> # TEST 1
> 
> /^subject:/ PREPEND Resent-From: [email protected]
> 
> # TEST 2
> 
> /^To: (.*)/ PREPEND Resent-From: [email protected]
> <mailto:[email protected]>
> 
> /^To: (.*)/ PREPEND Resent-From: $1
> 
>  
> 
> Can somebody help?
> 
>  
> 
> Thanks,
> 
>  
> 
> Carl
> 

Reply via email to