git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ccfdb01
)
Added log selector "unknown_in_list".
author
Philip Hazel
<ph10@hermes.cam.ac.uk>
Mon, 12 Sep 2005 13:39:31 +0000
(13:39 +0000)
committer
Philip Hazel
<ph10@hermes.cam.ac.uk>
Mon, 12 Sep 2005 13:39:31 +0000
(13:39 +0000)
doc/doc-txt/ChangeLog
patch
|
blob
|
history
doc/doc-txt/NewStuff
patch
|
blob
|
history
src/src/globals.c
patch
|
blob
|
history
src/src/macros.h
patch
|
blob
|
history
src/src/match.c
patch
|
blob
|
history
diff --git
a/doc/doc-txt/ChangeLog
b/doc/doc-txt/ChangeLog
index 08907ffa7cdc0b47cf88a5bbb9aa81825e6aacbb..5b1c2fa4cdda77def75598a39887dc72880278d5 100644
(file)
--- a/
doc/doc-txt/ChangeLog
+++ b/
doc/doc-txt/ChangeLog
@@
-1,4
+1,4
@@
-$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.2
19 2005/09/12 10:49:30
ph10 Exp $
+$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.2
20 2005/09/12 13:39:31
ph10 Exp $
Change log file for Exim from version 4.21
-------------------------------------------
Change log file for Exim from version 4.21
-------------------------------------------
@@
-159,6
+159,9
@@
PH/38 When log_selector = +received_sender was set, and the addition of the
less than full, an overflow happened when the terminating "\n" was
subsequently added.
less than full, an overflow happened when the terminating "\n" was
subsequently added.
+PH/39 Added a new log selector, "unknown_in_list", which provokes a log entry
+ when the result of a list match is failure because a DNS lookup failed.
+
Exim version 4.52
-----------------
Exim version 4.52
-----------------
diff --git
a/doc/doc-txt/NewStuff
b/doc/doc-txt/NewStuff
index 15cf0b44d8e2ede0b63553439588ad0092aaea34..85be6dc06bff708b59cb79855200f979a82d2ecf 100644
(file)
--- a/
doc/doc-txt/NewStuff
+++ b/
doc/doc-txt/NewStuff
@@
-1,4
+1,4
@@
-$Cambridge: exim/doc/doc-txt/NewStuff,v 1.6
7 2005/09/12 10:08:53
ph10 Exp $
+$Cambridge: exim/doc/doc-txt/NewStuff,v 1.6
8 2005/09/12 13:39:31
ph10 Exp $
New Features in Exim
--------------------
New Features in Exim
--------------------
@@
-142,6
+142,10
@@
PH/10 There is a new ACL control called "suppress_local_fixups". This applies
(3) Remotely submitted, no fixups applied: the default.
(4) Remotely submitted, fixups applied: use control = submission.
(3) Remotely submitted, no fixups applied: the default.
(4) Remotely submitted, fixups applied: use control = submission.
+PH/11 There is a new log selector, "unknown_in_list", which provokes a log
+ entry when the result of a list match is failure because a DNS lookup
+ failed.
+
Exim version 4.52
-----------------
Exim version 4.52
-----------------
diff --git
a/src/src/globals.c
b/src/src/globals.c
index a4e37fb4e8131668b3388aab5f594688eef34686..78ba196541520157e565eb14a50083112f89ec93 100644
(file)
--- a/
src/src/globals.c
+++ b/
src/src/globals.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/globals.c,v 1.3
6 2005/09/12 10:08:54
ph10 Exp $ */
+/* $Cambridge: exim/src/src/globals.c,v 1.3
7 2005/09/12 13:39:31
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-676,7
+676,8
@@
bit_table log_options[] = {
{ US"subject", LX_subject },
{ US"tls_certificate_verified", LX_tls_certificate_verified },
{ US"tls_cipher", LX_tls_cipher },
{ US"subject", LX_subject },
{ US"tls_certificate_verified", LX_tls_certificate_verified },
{ US"tls_cipher", LX_tls_cipher },
- { US"tls_peerdn", LX_tls_peerdn }
+ { US"tls_peerdn", LX_tls_peerdn },
+ { US"unknown_in_list", LX_unknown_in_list }
};
int log_options_count = sizeof(log_options)/sizeof(bit_table);
};
int log_options_count = sizeof(log_options)/sizeof(bit_table);
diff --git
a/src/src/macros.h
b/src/src/macros.h
index 432da931c964b392ed1ec5bc792c30f41d24e8f9..57ceceaac535df5e4048c79210ccfb31d11b1088 100644
(file)
--- a/
src/src/macros.h
+++ b/
src/src/macros.h
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/macros.h,v 1.1
8 2005/08/01 13:20:28
ph10 Exp $ */
+/* $Cambridge: exim/src/src/macros.h,v 1.1
9 2005/09/12 13:39:31
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-390,6
+390,7
@@
set all the bits in a multi-word selector. */
#define LX_tls_certificate_verified 0x80010000
#define LX_tls_cipher 0x80020000
#define LX_tls_peerdn 0x80040000
#define LX_tls_certificate_verified 0x80010000
#define LX_tls_cipher 0x80020000
#define LX_tls_peerdn 0x80040000
+#define LX_unknown_in_list 0x80080000
#define L_default (L_connection_reject | \
L_delay_delivery | \
#define L_default (L_connection_reject | \
L_delay_delivery | \
diff --git
a/src/src/match.c
b/src/src/match.c
index 100e4c0cbadd2f1bb2f03bc79e8d043389d2feb7..18787e8acd63c95fcbe060c2bd0c31a114ba9b21 100644
(file)
--- a/
src/src/match.c
+++ b/
src/src/match.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/match.c,v 1.
8 2005/08/01 13:20:28
ph10 Exp $ */
+/* $Cambridge: exim/src/src/match.c,v 1.
9 2005/09/12 13:39:31
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-720,7
+720,12
@@
while ((sss = string_nextinlist(&list, &sep, buffer, sizeof(buffer))) != NULL)
{
HDEBUG(D_lists) debug_printf("%s %s (%s)\n", ot,
include_unknown? "yes":"no", error);
{
HDEBUG(D_lists) debug_printf("%s %s (%s)\n", ot,
include_unknown? "yes":"no", error);
- if (!include_unknown) return FAIL;
+ if (!include_unknown)
+ {
+ if ((log_extra_selector & LX_unknown_in_list) != 0)
+ log_write(0, LOG_MAIN, "list matching forced to fail: %s", error);
+ return FAIL;
+ }
log_write(0, LOG_MAIN, "%s: accepted by +include_unknown", error);
return OK;
}
log_write(0, LOG_MAIN, "%s: accepted by +include_unknown", error);
return OK;
}
@@
-811,7
+816,12
@@
while ((sss = string_nextinlist(&list, &sep, buffer, sizeof(buffer))) != NULL)
HDEBUG(D_lists) debug_printf("%s %s (%s)\n", ot,
include_unknown? "yes":"no", error);
(void)fclose(f);
HDEBUG(D_lists) debug_printf("%s %s (%s)\n", ot,
include_unknown? "yes":"no", error);
(void)fclose(f);
- if (!include_unknown) return FAIL;
+ if (!include_unknown)
+ {
+ if ((log_extra_selector & LX_unknown_in_list) != 0)
+ log_write(0, LOG_MAIN, "list matching forced to fail: %s", error);
+ return FAIL;
+ }
log_write(0, LOG_MAIN, "%s: accepted by +include_unknown", error);
return OK;
}
log_write(0, LOG_MAIN, "%s: accepted by +include_unknown", error);
return OK;
}