[Exim] Conditions in ACL's

Góra strony
Delete this message
Reply to this message
Autor: Christian Hertel
Data:  
Dla: exim-users
Temat: [Exim] Conditions in ACL's
--
Hi Folkz!

I've got a little problem with my ACL conditions. I want to achieve that
mails which were not spooled in from localhost and for whose sender
address domain no MX record can be resolved should not be accepted.

So first, I built this condition to deny mails from anywhere other than
localhost, but it does not work:

deny condition = ${if !eq {$sender_host_address}{} {yes}{no} }


The exim documentation says that if mails were spooled in from
localhost, the variable $sender_host_address is an empty string.
Then what is wrong with the condition above? Why does it not match?


My thought was the following condition to achieve everything I wanted:

deny condition = ${if and { {!eq {$sender_host_address}{}} {!eq {
${lookup dnsdb{mx=$sender_address_domain}{true}}} } {yes}{no} }


Ideas appreciated.


Cheers,

--
Christian Hertel
Technik

infoServe GmbH
Nell-Breuning-Allee 6
D-66115 Saarbruecken

T: (0681) 8 80 08 - 0
F: (0681) 8 80 08 - 33
www.infos.de
E: c.hertel@???
--
Content-Description: Dies ist ein digital signierter Nachrichtenteil

[ signature.asc of type application/pgp-signature deleted ]
--