Re: [exim] match the "From: " domain, not "Return-Path: " (l…

Top Page
Delete this message
Reply to this message
Author: Mike Cardwell
Date:  
To: Exim Users List
Subject: Re: [exim] match the "From: " domain, not "Return-Path: " (lookup{$sender_address_domain})
Tomasz Chmielewski wrote:

> Right now, I can look up the sender's domain in "Return-Path: " with
> lookup{$sender_address_domain}.
>
> I would like to decide about what happens with a mail based on its
> "From: " address, rather than "Return-Path: ".
>
> Can I do a similar check for a domain name used in the "From: " field?


Instead of $sender_address_domain, use ${domain:$h_From:}

Please remember, there are cases where both of those variables can be blank.

--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/
Technical Blog: https://secure.grepular.com/blog/