[exim] Postfix regex map to Exim ACL

Pàgina inicial
Delete this message
Reply to this message
Autor: Stefano Sasso
Data:  
A: exim-users
Assumpte: [exim] Postfix regex map to Exim ACL
Hi *,
    is there a quick way to convert a postfix regex/pcre map for use with
an exim acl?


I have some regex files like this:
(header_checks)
/^X-Mailer: .*EVAMAIL/                REJECT Sorry, your mailer was identified as
mass mailer program.
...
/^X-Mailer: .*Avalanche/                REJECT Sorry, your mailer was identified
as mass mailer program.
...
/^Date: .* 19[0-9][0-9]/                REJECT Past Date
/^From: <>/                        REJECT You need to specify a return address,
otherwise we will not accept your email.


(host_blacklist)
/[Dd]ynamic/                        REJECT
/[Dd][Hh][Cc][Pp]/                    REJECT
/\.dsl\.brasiltelecom\.net\.br$/            REJECT
...



The only idea I had is to use the embedded perl interpreter (condition
= perl{xxxxx}{yyyy}) and a subroutine that loads the "map file" and
checks the parameter with =~/<file_loaded_expression>/.


any other hint?
thanks,
bye

--
Stefano Sasso
http://stefano.dscnet.org/