Re: [exim] Get the value of an external script in a condition

2018-02-22 Thread Phil Pennock via Exim-users
On 2018-02-20 at 13:54 +, Andrew C Aitchison via Exim-users wrote: > Interesting idea to use the whois database to detect spammers. > Since whois data has expiry info and doesn't change every day, > I wonder how easy it would be to cache the results. The jwhois client does this; it's a GNU pro

Re: [exim] Get the value of an external script in a condition

2018-02-20 Thread Mueller via Exim-users
-users@exim.org] Gesendet: Dienstag, 20. Februar 2018 14:54 An: exim-users@exim.org; muel...@tropenklinik.de Betreff: Re: [exim] Get the value of an external script in a condition >From the documentation that Jeremy quoted, I think that your script should use "exit 0" and "exi

Re: [exim] Get the value of an external script in a condition

2018-02-20 Thread Andrew C Aitchison via Exim-users
condition test failed So what is going wrong ? -Ursprüngliche Nachricht- Von: Jeremy Harris via Exim-users [mailto:exim-users@exim.org] Gesendet: Dienstag, 20. Februar 2018 10:35 An: exim-users@exim.org Betreff: Re: [exim] Get the value of an external script in a condition On 20/02/18 09:

Re: [exim] Get the value of an external script in a condition

2018-02-20 Thread Jeremy Harris via Exim-users
On 20/02/18 13:00, Mueller via Exim-users wrote: > So when I run Exim in verbose. It turns out the expansion is working, but > nervertheless it points to false but it should be true?: > > > 13:54:04 9383 processing "defer" > 13:54:04 9383 expanding: run{/etc/exim/panama $sender_address_domain

Re: [exim] Get the value of an external script in a condition

2018-02-20 Thread Mueller via Exim-users
ailto:exim-users@exim.org] Gesendet: Dienstag, 20. Februar 2018 10:35 An: exim-users@exim.org Betreff: Re: [exim] Get the value of an external script in a condition On 20/02/18 09:15, Mueller via Exim-users wrote: > #!/bin/bash > out=$(/usr/bin/whois $1|grep "Registrar:"| cut -d &#

Re: [exim] Get the value of an external script in a condition

2018-02-20 Thread Jeremy Harris via Exim-users
On 20/02/18 09:15, Mueller via Exim-users wrote: > #!/bin/bash > out=$(/usr/bin/whois $1|grep "Registrar:"| cut -d ':' -f2| awk '{print $1}') > echo "$out" > > I tried it with the $run command, but it uis always set to false! > > defer condition= ${if match{run{/etc/exim/panama > $sender_address_

[exim] Get the value of an external script in a condition

2018-02-20 Thread Mueller via Exim-users
Dear all, I try to put an acl in my exim config. I want to get the registrar of the "$sender_address_domain" of incoming mails. So i can block known spam-registrars (Panama). This is my shell script: #!/bin/bash out=$(/usr/bin/whois $1|grep "Registrar:"| cut -d ':' -f2| awk '{print $1}') echo "$