diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0545 | 32 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0545 | 5 | ||||
-rw-r--r-- | test/src/fakens.c | 14 | ||||
-rw-r--r-- | test/stderr/0545 | 121 | ||||
-rw-r--r-- | test/stdout/0545 | 7 |
5 files changed, 166 insertions, 13 deletions
diff --git a/test/confs/0545 b/test/confs/0545 new file mode 100644 index 000000000..1f70fbb9f --- /dev/null +++ b/test/confs/0545 @@ -0,0 +1,32 @@ +# Exim test configuration 0545 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +dns: + driver = dnslookup + transport = smtp + self = send + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/scripts/0000-Basic/0545 b/test/scripts/0000-Basic/0545 new file mode 100644 index 000000000..caec73458 --- /dev/null +++ b/test/scripts/0000-Basic/0545 @@ -0,0 +1,5 @@ +# CNAME not rewriting +exim -d -bt userx@alias-eximtesthost +**** +exim -d -bt userx@alias-eximtesthost.test.ex +**** diff --git a/test/src/fakens.c b/test/src/fakens.c index 3ec432c49..9c561653d 100644 --- a/test/src/fakens.c +++ b/test/src/fakens.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/test/src/fakens.c,v 1.2 2006/02/16 10:05:34 ph10 Exp $ */ +/* $Cambridge: exim/test/src/fakens.c,v 1.3 2006/11/07 14:13:19 ph10 Exp $ */ /************************************************* * fakens - A Fake Nameserver Program * @@ -415,18 +415,6 @@ while (fgets(CS buffer, sizeof(buffer), f) != NULL) rdlptr[0] = ((pk - rdlptr - 2) >> 8) & 255; rdlptr[1] = (pk -rdlptr - 2) & 255; - - /* If we have just yielded a CNAME, we must change the domain name to the - new domain, and re-start the scan from the beginning. */ - - if (found_cname) - { - domain = fcopystring("%s", p); - domainlen = Ustrlen(domain); - domain[domainlen - 1] = 0; /* Removed trailing dot */ - rrdomain[0] = 0; /* No previous domain */ - (void)fseek(f, 0, SEEK_SET); /* Start again at the beginning */ - } } *pkptr = pk; diff --git a/test/stderr/0545 b/test/stderr/0545 new file mode 100644 index 000000000..cfe6a114e --- /dev/null +++ b/test/stderr/0545 @@ -0,0 +1,121 @@ +Exim version x.yz .... +changed uid/gid: forcing real = effective + uid=uuuu gid=CALLER_GID pid=pppp +configuration file is TESTSUITE/test-config +admin user +originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +sender address = CALLER@the.local.host.name +Address testing: uid=uuuu gid=EXIM_GID euid=uuuu egid=EXIM_GID +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +Testing userx@alias-eximtesthost +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +Considering userx@alias-eximtesthost +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +routing userx@alias-eximtesthost +--------> dns router <-------- +local_part=userx domain=alias-eximtesthost +calling dns router +dns router called for userx@alias-eximtesthost + domain = alias-eximtesthost +DNS lookup of alias-eximtesthost (MX) using fakens +DNS lookup of alias-eximtesthost (MX) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex (MX) using fakens +DNS lookup of eximtesthost.test.ex (MX) gave NO_DATA +returning DNS_NODATA +DNS lookup of alias-eximtesthost (AAAA) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of alias-eximtesthost (A) using fakens +DNS lookup of alias-eximtesthost (A) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex (A) using fakens +DNS lookup of eximtesthost.test.ex (A) succeeded +local host found for non-MX address +fully qualified name = alias-eximtesthost.test.ex +eximtesthost.test.ex ip4.ip4.ip4.ip4 mx=-1 sort=xx +domain changed to alias-eximtesthost.test.ex +rewriting header lines +re-routed to userx@alias-eximtesthost.test.ex +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +Considering userx@alias-eximtesthost.test.ex +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +routing userx@alias-eximtesthost.test.ex +--------> dns router <-------- +local_part=userx domain=alias-eximtesthost.test.ex +calling dns router +dns router called for userx@alias-eximtesthost.test.ex + domain = alias-eximtesthost.test.ex +DNS lookup of alias-eximtesthost.test.ex (MX) using fakens +DNS lookup of alias-eximtesthost.test.ex (MX) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex-MX: using cached value DNS_NODATA +DNS lookup of alias-eximtesthost.test.ex (AAAA) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex-AAAA: using cached value DNS_NODATA +DNS lookup of alias-eximtesthost.test.ex (A) using fakens +DNS lookup of alias-eximtesthost.test.ex (A) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex (A) using fakens +DNS lookup of eximtesthost.test.ex (A) succeeded +local host found for non-MX address +fully qualified name = alias-eximtesthost.test.ex +eximtesthost.test.ex ip4.ip4.ip4.ip4 mx=-1 sort=xx +remote host address is the local host: alias-eximtesthost.test.ex: configured to try delivery anyway +set transport smtp +queued for smtp transport: local_part = userx +domain = alias-eximtesthost.test.ex + errors_to=NULL + domain_data=NULL localpart_data=NULL +routed by dns router + envelope to: userx@alias-eximtesthost.test.ex + transport: smtp + host eximtesthost.test.ex [ip4.ip4.ip4.ip4] +search_tidyup called +>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>> +Exim version x.yz .... +changed uid/gid: forcing real = effective + uid=uuuu gid=CALLER_GID pid=pppp +configuration file is TESTSUITE/test-config +admin user +originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +sender address = CALLER@the.local.host.name +Address testing: uid=uuuu gid=EXIM_GID euid=uuuu egid=EXIM_GID +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +Testing userx@alias-eximtesthost.test.ex +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +Considering userx@alias-eximtesthost.test.ex +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +routing userx@alias-eximtesthost.test.ex +--------> dns router <-------- +local_part=userx domain=alias-eximtesthost.test.ex +calling dns router +dns router called for userx@alias-eximtesthost.test.ex + domain = alias-eximtesthost.test.ex +DNS lookup of alias-eximtesthost.test.ex (MX) using fakens +DNS lookup of alias-eximtesthost.test.ex (MX) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex (MX) using fakens +DNS lookup of eximtesthost.test.ex (MX) gave NO_DATA +returning DNS_NODATA +DNS lookup of alias-eximtesthost.test.ex (AAAA) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of alias-eximtesthost.test.ex (A) using fakens +DNS lookup of alias-eximtesthost.test.ex (A) succeeded +CNAME found: change to eximtesthost.test.ex +DNS lookup of eximtesthost.test.ex (A) using fakens +DNS lookup of eximtesthost.test.ex (A) succeeded +local host found for non-MX address +fully qualified name = alias-eximtesthost.test.ex +eximtesthost.test.ex ip4.ip4.ip4.ip4 mx=-1 sort=xx +remote host address is the local host: alias-eximtesthost.test.ex: configured to try delivery anyway +set transport smtp +queued for smtp transport: local_part = userx +domain = alias-eximtesthost.test.ex + errors_to=NULL + domain_data=NULL localpart_data=NULL +routed by dns router + envelope to: userx@alias-eximtesthost.test.ex + transport: smtp + host eximtesthost.test.ex [ip4.ip4.ip4.ip4] +search_tidyup called +>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>> diff --git a/test/stdout/0545 b/test/stdout/0545 new file mode 100644 index 000000000..1495ed9e6 --- /dev/null +++ b/test/stdout/0545 @@ -0,0 +1,7 @@ +userx@alias-eximtesthost.test.ex + <-- userx@alias-eximtesthost + router = dns, transport = smtp + host eximtesthost.test.ex [ip4.ip4.ip4.ip4] +userx@alias-eximtesthost.test.ex + router = dns, transport = smtp + host eximtesthost.test.ex [ip4.ip4.ip4.ip4] |