[Exim] Help with expansion variables

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Earnshaw
Data:  
A: exim-users
Assumpte: [Exim] Help with expansion variables
Hi list,

Exim 4.12, Openldap 2.1.10. Diligent use of spec.txt and FAQ.html with
Mozilla 1.1's search facility, which is o.k. Diligent searching in the
mail archives on my hard disk, coming up to 14 1/2 thousand postings of
all sorts since Exim v4 was released :-) I don't usually get stumped.

What I'm trying to do, is to reject mail from senders who claim to be a
local part in my domain. A certain (very small up to now, but growing)
amount of spam comes from these. Yes, I'm running SA 2.50 (latest CVS)
but don't filter small (< 2KB) messages.

I use the following ACL and it doesn't break anything, but telnetting in
from a machine in another domain [0] doesn't produce the wanted result.
Maybe it will with mail, I don't have that much experience yet.

The relevant part of acl_check_rcpt is:
______________________________________________________

begin acl

<acl stuff>

  # Trying to shut out people from outside who say they're us.
  # Works partly :-)
   deny condition = ${if and { \
     {!eq {$sender_address_domain}{$domain}} \
     {eq {$sender_address_local_part}{*@$domain}} \
     } \
     {true}{false} \
     }


<much more acl stuff>
_______________________________________________________

I notice that in the debug info the condition variables aren't expanded.
If I leave the $ sign out before "${if", they get expanded, but this
breaks the filter, which I'd expect. I have many more of this sort of
thing for ldap, AUTH etc.

Maybe I'm wasting my time. Anybody any ideas?

Best,

Tony

_________________________________________________________

[0]

14152 smtp_setup_msg entered
14152 SMTP<< helo me
14152 sender_fullhost = machine.domain.no (me) [172.16.1.201]
14152 sender_rcvhost = machine.domain.no ([172.16.1.201] helo=me)
14152 set_process_info: 14152 handling incoming connection from
machine.domain.no (me) [172.16.1.201]
14152 SMTP>> 250 billy.demon.nl Hello machine.domain.no [172.16.1.201]
14152 SMTP<< mail from: tonni@???
14152 SMTP>> 250 OK
14152 SMTP<< rcpt to: billy@???
14152 using ACL "acl_check_rcpt"
14152 processing "accept"
14152 check recipients = postmaster
14152 address match: subject=billy@??? pattern=postmaster
14152 billy.demon.nl in "postmaster"? no (end of list)
14152 billy@??? in "postmaster"? no (end of list)
14152 accept: condition test failed
14152 processing "deny"
14152 check condition = ${if and { {!eq
{$sender_address_domain}{$domain}} {eq
{$sender_address_local_part}{*@$domain}} } {true}{false} }
14152                 = false
14152 deny: condition test failed






--

Tony Earnshaw

When all's said and done ...
there's nothing left to say or do.

e-post:        tonni@???
www:        http://www.billy.demon.nl