Re: [Exim] Problem: Relaying for uncommon nets

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Christian Hertel
Data:  
Para: exim-users
Assunto: Re: [Exim] Problem: Relaying for uncommon nets
--
Hello folks again,

> exim -d -bh 1.1.1.1
> this will start a testing smtp-session from 1.1.1.1, show us the
> debug-log, that should be enough to find out what happens.


I tried that and found out that the problem occurs only when using mysql
querys for building hostlists, not if I write it manually in exim.conf.

The only entry in our MySQL-Table is "120.255.255.0/24".

Here is the relevant exim debugging ouput:


--- First, with the manually entered entry ---
[...]
processing "accept"
check hosts = +relay_from_hosts
host in "127.0.0.1 : 120.255.255.0/24"? no (end of list)
host in "+relay_from_hosts"? no (end of list)
accept: condition test failed
processing "accept"
check authenticated = *
accept: condition test failed
processing "deny"
deny: condition test succeeded
SMTP>> 550 Relaying denied

550 Relaying denied
[...]
---


--- Now with just this entry in the mysql table ---
[...]
processing "accept"
check hosts = +relay_from_hosts
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="SELECT net FROM mail_access WHERE status = 'ok'" partial=-1
affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
type=mysql key="SELECT net FROM mail_access WHERE status = 'ok'"
database lookup required for SELECT net FROM mail_access WHERE status =
'ok'
MYSQL query: SELECT net FROM mail_access WHERE status = 'ok'
MYSQL using cached connection for localhost/edgate/root
lookup yielded: 120.255.255.0/24
host in "127.0.0.1 : mysql;SELECT net FROM mail_access WHERE status =
'ok'"? yes (matched "mysql;SELECT net FROM mail_access WHERE status =
'ok'")
data from lookup saved for cache for +relay_from_hosts: 120.255.255.0/24
host in "+relay_from_hosts"? yes (matched "+relay_from_hosts")
accept: condition test succeeded
SMTP>> 250 Accepted

250 Accepted
[...]
---


I called exim as follows:

exim4 -d -bh 10.10.10.1


Any further ideas?


--
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 ]
--