Hi list,

we receive many E-Mails with faked From (Header), and I'm trying to block them. Currenty I extract the domain (most our own domain) and check it for SPF.

Hier my code to extract the From:

warn set acl_m_from = ${extract{2}{@}{${reduce{${addresses:$h_from:}}{}{$item}}}}

Unfortunately we receive E-Mail with TWO From addresses, such:

From: Blah <[email protected]> <[email protected]>

and then my code does not work anymore...

Can someone help me to extract the FIRST address from the faked header?

Thanks a lot!
Luca Bertoncello
([email protected])

--
## 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