Re: [Exim] reading a host list from a file whose name the re…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Haber
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] reading a host list from a file whose name the result of an expansion
On Mon, 7 Apr 2003 20:55:54 +0100 (BST), Philip Hazel
<ph10@???> wrote:
>It shouldn't. I'm going to suggest you use "exim -d -bh ...." again to
>try to see what is going on.


I think the relevant part of exim's debug log is the following:
|processing "deny"
|check hosts = "${if exists{/etc/exim4/local_host_blacklist}{/etc/exim4/local_host_blacklist}{}}"
|host in ""/etc/exim4/local_host_blacklist""? no (end of list)
|deny: condition test failed
which pretty much looks like exim actually compared the host name
against the literal string /etc/exim4/local_host_blacklist.

/etc/exim4/local_host_blacklist exists and contains a single line
saying "192.168.129.201". The test was invoked with exim -bh
192.168.129.201.

OTOH, when I say "hosts = 192.168.129.201" in exim's config file
itself, the relevant part of exim's debug log looks like:
|processing "deny"
|check hosts = 192.168.129.201
|host in "192.168.129.201"? yes (matched "192.168.129.201")
|deny: condition test succeeded
|SMTP>> 550 Locally blacklisted, you're out of luck
|550 Locally blacklisted, you're out of luck
|LOG: MAIN REJECT

A more detailed log can be seen on the WWW
(http://q.bofh.de/~mh/stuff/exim-acl-typescript).

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29