[Exim] sender_domains expansion

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Viktor Varga
Data:  
Para: exim-users
Assunto: [Exim] sender_domains expansion
Hi,
I'm using exim 3.33 as virtual mail server, and it working well :))).
But, i tried to upgrade the server to 4.04 version, and I think that I rewrite
the configuration properly, but there was a problem in ACL.
Here is parts from my conf file:


MYSQL_DOMAIN = SELECT DISTINCT MYSQL_DOMAINFIELD FROM MYSQL_AUTHTABLE WHERE
MYSQL_DOMAINFIELD='$domain'
#(in older version 3.33 there was $key variable)

LOCAL_DOMAINS = localhost:127.0.0.1: myhost: myhost.mynet.net
.
.
.
domainlist local_domains = LOCAL_DOMAINS:\
           mysql;MYSQL_DOMAIN
.
.
#and now the critical section in acl_check_rcpt:
accept  hosts         = +relay_from_hosts
          sender_domains = +local_domains


When I tried to relay:

Trying x.x.x.x...
Connected to myhost.mynet.net (x.x.x.x).
Escape character is '^]'.
220 .net ESMTP Exim 4.04 Thu, 23 May 2002 12:48:37 -0100
helo xyz
250 myhost.mynet.net Hello you.mynet.net [y.y.y.y]
mail from: xxx@???
250 OK
rcpt to: yyy@???
550 relay not permitted

Here are the debug output:
LRU list:
internal_search_find: file="NULL"
type=mysql key="SELECT DISTINCT domain FROM auth WHERE
domain='recipient.com'" /* !!!!!!!!!!!!!!!!!!!!!!!!!! */
database lookup required for SELECT DISTINCT domain FROM auth WHERE
domain='recipient.com'
MYSQL query: SELECT DISTINCT domain FROM auth WHERE domain='recipient.com'
MYSQL new connection: host=mysql.mynet.net port=3306 socket=NULL database=mail
user=mail
MYSQL: no data found
lookup failed
sender.com in "localhost:127.0.0.1: myhost: myhost.mynet.net:mysql;SELECT
DISTINCT domain FROM auth WHERE domain='recipient.com'"? no (end of list)
sender.com in "+local_domains"? no (end of list)
accept: condition test failed
processing "deny"
deny: condition test succeeded
SMTP>> 550 relay not permitted

LOG: MAIN REJECT
H=you.mynet.net (xyz) [y.y.y.y] F=<xxx@???> rejected RCPT
yyy@???: relay not permitted

And finally the question:
WHY EXIM TRIES TO EXPAND $domain WITH RECIPIENT DOMAIN, AND NOT WITH SENDER
DOMAIN ??????
IS IT A BUG OR I JUST MISSCONFIGURE THE SERVER ??????


Viktor Varga