[exim] Exim ACL questions...

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Ritchie P. Fraser
日付:  
To: exim-users@exim.org
題目: [exim] Exim ACL questions...
Hi All,

I am struggling with the whole exim ACL rules thing. Syntactically and mixing lists and expansion strings

Given an eMail:
    TO:   recipient@???
    FROM:  any@???


Rule (in words)
------------------
If the recipient localpart is a valid recipient
AND recipient domain is valid
AND sender domain is not our domain
AND sending computer is NOT our smarthost

exim ACL so far....
---------------------
allow     domains               =             +local_domains : +relay_sql_domains
                local_parts          =             lsearch{local_file.txt}
                condition             = ${if \
                                                                and{ \
                                                                                {  ! {$sender_host_address}{+relay_from_host : +relay_sql_hosts}  } \
                                                                                {  ! {$sender_address_domain}{+local_domains : +relay_sql_domains }  } \
                                                                } \
                                                                {true} \
                                                                {false} \
                                                }


Am I even going in the right direction?

Can anyone shed some light or point me on the path to understanding and enlightenment, please.

Kind Regards,
Ritchie Fraser
Systems Administrator

T : +44 (0) 1304 840506
F : +44 (0) 1304 840075