-$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.401 2006/10/03 08:54:50 ph10 Exp $
+$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.402 2006/10/03 10:25:55 ph10 Exp $
Change log file for Exim from version 4.21
-------------------------------------------
PH/13 Added $message_headers_raw to provide the headers without RFC 2047
decoding.
+PH/14 Corrected misleading output from -bv when -v was also used. Suppose the
+ address A is aliased to B and C, where B exists and C does not. Without
+ -v the output is "A verified" because verification stops after a
+ successful redirection if more than one address is generated. However,
+ with -v the child addresses are also verified. Exim was outputting "A
+ failed to verify" and then showing the successful verification for C,
+ with its parentage. It now outputs "B failed to verify", showing B's
+ parentage before showing the successful verification of C.
+
Exim version 4.63
-----------------
-/* $Cambridge: exim/src/src/verify.c,v 1.39 2006/09/25 11:25:37 ph10 Exp $ */
+/* $Cambridge: exim/src/src/verify.c,v 1.40 2006/10/03 10:25:55 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
while (addr_new != NULL)
{
int rc;
+ uschar *show_address;
address_item *addr = addr_new;
addr_new = addr->next;
addr->next = NULL;
+ /* When full_info is set, child addresses are displayed in top-level
+ messages. Otherwise, we show only the top level address. */
+
+ show_address = full_info? addr->address : address;
+
DEBUG(D_verify)
{
debug_printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n");
allok = FALSE;
if (f != NULL)
{
- fprintf(f, "%s%s %s", ko_prefix, address,
+ address_item *p = addr->parent;
+
+ fprintf(f, "%s%s %s", ko_prefix, show_address,
address_test_mode? "is undeliverable" : "failed to verify");
if (!expn && admin_user)
{
if (addr->basic_errno > 0)
fprintf(f, ": %s", strerror(addr->basic_errno));
if (addr->message != NULL)
- fprintf(f, ":\n %s", addr->message);
+ fprintf(f, ": %s", addr->message);
+ }
+
+ /* Show parents iff doing full info */
+
+ if (full_info) while (p != NULL)
+ {
+ fprintf(f, "%s\n <-- %s", cr, p->address);
+ p = p->parent;
}
fprintf(f, "%s\n", cr);
}
allok = FALSE;
if (f != NULL)
{
- fprintf(f, "%s%s cannot be resolved at this time", ko_prefix, address);
+ address_item *p = addr->parent;
+ fprintf(f, "%s%s cannot be resolved at this time", ko_prefix,
+ show_address);
if (!expn && admin_user)
{
if (addr->basic_errno > 0)
- fprintf(f, ":\n %s", strerror(addr->basic_errno));
+ fprintf(f, ": %s", strerror(addr->basic_errno));
if (addr->message != NULL)
- fprintf(f, ":\n %s", addr->message);
+ fprintf(f, ": %s", addr->message);
else if (addr->basic_errno <= 0)
- fprintf(f, ":\n unknown error");
+ fprintf(f, ": unknown error");
}
+ /* Show parents iff doing full info */
+
+ if (full_info) while (p != NULL)
+ {
+ fprintf(f, "%s\n <-- %s", cr, p->address);
+ p = p->parent;
+ }
fprintf(f, "%s\n", cr);
}
+
if (!full_info) return copy_error(vaddr, addr, DEFER);
else if (yield == OK) yield = DEFER;
}
/* If we are handling EXPN, we do not want to continue to route beyond
- the top level. */
+ the top level (whose address is in "address"). */
else if (expn)
{
(addr_new != NULL && /* At least one new address AND */
success_on_redirect))) /* success_on_redirect is set */
{
- if (f != NULL) fprintf(f, "%s %s\n", address,
+ if (f != NULL) fprintf(f, "%s %s\n", show_address,
address_test_mode? "is deliverable" : "verified");
/* If we have carried on to verify a child address, we want the value
> a@test.ex verified
-> b@test.ex failed to verify:
- Unrouteable address
-> f@test.ex failed to verify:
- bad user
+> b@test.ex failed to verify: Unrouteable address
+> f@test.ex failed to verify: bad user
> p@test.ex verified
-> x@test.ex failed to verify:
- Unrouteable address
+> x@test.ex failed to verify: Unrouteable address
> y@test.ex verified
> pipe@test.ex verified
> file@test.ex verified
> "smartuser.a@test.ex"@test.ex verified
-> "smartuser.b@test.ex"@test.ex failed to verify:
- Unrouteable address
+> "smartuser.b@test.ex"@test.ex failed to verify: Unrouteable address
> "smartuser.b@test.ex,a@test.ex"@test.ex verified
>
220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
550 <"smartuser.b@test.ex"@test.ex> Unrouteable address\r
250 <"smartuser.b@test.ex,a@test.ex"@test.ex> is deliverable\r
221 the.local.host.name closing connection\r
+v1@test.ex verified
+v2@test.ex verified
+a3@test.ex failed to verify: bad user
+ <-- v1@test.ex
+userx@test.ex
+ <-- v1@test.ex
+ router = all, transport = local_delivery
+a3@test.ex failed to verify: bad user
+ <-- v2@test.ex
+userx@test.ex [duplicate, would not be delivered]
+ <-- v2@test.ex
+ router = all, transport = local_delivery