users/heiko/exim.git
7 years agoDebug: output type of process as it terminates
Jeremy Harris [Fri, 20 Oct 2017 18:30:20 +0000 (19:30 +0100)]
Debug: output type of process as it terminates

7 years agoTestsuite: accept changed output from perl version difference
Jeremy Harris [Fri, 20 Oct 2017 16:45:21 +0000 (17:45 +0100)]
Testsuite: accept changed output from perl version difference

7 years agoTestsuite: ignore optional-config output
Jeremy Harris [Fri, 20 Oct 2017 15:21:32 +0000 (16:21 +0100)]
Testsuite: ignore optional-config output

7 years agoTestsuite: dump stdout for a force-continue
Jeremy Harris [Fri, 20 Oct 2017 14:40:42 +0000 (15:40 +0100)]
Testsuite: dump stdout for a force-continue

7 years agoAdd equivalent for missing poll(2) #define in OpenBSD
Jeremy Harris [Fri, 20 Oct 2017 14:28:07 +0000 (15:28 +0100)]
Add equivalent for missing poll(2) #define in OpenBSD

7 years agoDocs: note that } chars in a RE are also needing escaping for ${sg }
Jeremy Harris [Wed, 18 Oct 2017 21:34:12 +0000 (22:34 +0100)]
Docs: note that } chars in a RE are also needing escaping for ${sg }

7 years agoInclude sys/uio.h for writev()
Heiko Schlittermann (HS12-RIPE) [Wed, 18 Oct 2017 20:38:20 +0000 (22:38 +0200)]
Include sys/uio.h for writev()

7 years agoMore information string for missing MxSQL Base Version
Heiko Schlittermann (HS12-RIPE) [Wed, 18 Oct 2017 20:19:44 +0000 (22:19 +0200)]
More information string for missing MxSQL Base Version

7 years agoTestsuite: avoid indeterminate delivery ordering
Jeremy Harris [Sat, 14 Oct 2017 20:53:10 +0000 (21:53 +0100)]
Testsuite: avoid indeterminate delivery ordering

7 years agoTestsuite: OpenSSL version output variances
Jeremy Harris [Sat, 14 Oct 2017 20:43:37 +0000 (21:43 +0100)]
Testsuite: OpenSSL version output variances

7 years agoTidy build for OpenBSD
Jeremy Harris [Sat, 14 Oct 2017 18:56:50 +0000 (19:56 +0100)]
Tidy build for OpenBSD

7 years agoTidy build for OpenBSD
Jeremy Harris [Sat, 14 Oct 2017 18:16:59 +0000 (19:16 +0100)]
Tidy build for OpenBSD

7 years agocoding standards
Jeremy Harris [Sat, 14 Oct 2017 14:37:01 +0000 (15:37 +0100)]
coding standards

7 years agoString handling: refactor the expanding-string routines and users to use a descriptor...
Jeremy Harris [Thu, 12 Oct 2017 21:05:14 +0000 (22:05 +0100)]
String handling: refactor the expanding-string routines and users to use a descriptor struct

7 years agoFix mariadb/mysql macro confusion
Heiko Schlittermann (HS12-RIPE) [Fri, 13 Oct 2017 22:24:54 +0000 (00:24 +0200)]
Fix mariadb/mysql macro confusion

7 years agoTestsuite: add cipher-suite seen on OpenBSD
Jeremy Harris [Fri, 13 Oct 2017 16:05:59 +0000 (17:05 +0100)]
Testsuite: add cipher-suite seen on OpenBSD

7 years agoTestsuite: openssl variant debug output
Jeremy Harris [Thu, 12 Oct 2017 17:20:56 +0000 (18:20 +0100)]
Testsuite: openssl variant debug output

7 years agoFix queue_run_in_order to ignore the PID portion of the message ID
Jeremy Harris [Thu, 12 Oct 2017 13:03:08 +0000 (14:03 +0100)]
Fix queue_run_in_order to ignore the PID portion of the message ID

7 years agoMySQL: fix build on Fedora 27, where MariaDB version information has become unavailable
Jeremy Harris [Tue, 10 Oct 2017 20:39:54 +0000 (21:39 +0100)]
MySQL: fix build on Fedora 27, where MariaDB version information has become unavailable

7 years agoFix FreeBSD build (again)
Jeremy Harris [Tue, 10 Oct 2017 20:38:42 +0000 (21:38 +0100)]
Fix FreeBSD build (again)

7 years agoAvoid build conflict vs. FreeBSD /usr/include/sys/file.h
Jeremy Harris [Tue, 10 Oct 2017 12:09:43 +0000 (13:09 +0100)]
Avoid build conflict vs. FreeBSD /usr/include/sys/file.h

7 years agoFix debug_printf data size
Jeremy Harris [Sun, 8 Oct 2017 18:00:37 +0000 (19:00 +0100)]
Fix debug_printf data size

7 years agoLogging: show when input from truncated for logging "next input sent too soon"
Jeremy Harris [Sun, 8 Oct 2017 17:56:13 +0000 (18:56 +0100)]
Logging: show when input from truncated for logging "next input sent too soon"

7 years agoTFO: early-data for identd queries
Jeremy Harris [Sun, 8 Oct 2017 16:34:16 +0000 (17:34 +0100)]
TFO: early-data for identd queries

7 years agoTFO: on FreeBSD avoid client TFO-mode connects unless a TCP_FASTOPEN setsocketopt...
Jeremy Harris [Sun, 8 Oct 2017 15:12:06 +0000 (16:12 +0100)]
TFO: on FreeBSD avoid client TFO-mode connects unless a TCP_FASTOPEN setsocketopt succeeds

This fixes the FreeSBD no-kernel-support issues (it succeded the sendto for the
connect-with-data, but dod not queue the data).  Having checked dynamically, do
not claim support-for TFO either.

7 years agoFix identd connections on FreeBSD under TCP Fast Open
Jeremy Harris [Sat, 7 Oct 2017 13:36:52 +0000 (14:36 +0100)]
Fix identd connections on FreeBSD under TCP Fast Open

7 years agoTestsuite: accept different debug detail for peer-terminated connection
Jeremy Harris [Fri, 6 Oct 2017 21:58:39 +0000 (22:58 +0100)]
Testsuite: accept different debug detail for peer-terminated connection

7 years agoUse flag names rather than values in debug output
Jeremy Harris [Fri, 6 Oct 2017 21:18:30 +0000 (22:18 +0100)]
Use flag names rather than values in debug output
The values differ between Linux and FreeBSD

7 years agoCheck for proper output separator in expanding ${addresses:STRING} (Closes 2171)
Heiko Schlittermann (HS12-RIPE) [Wed, 4 Oct 2017 20:25:45 +0000 (22:25 +0200)]
Check for proper output separator in expanding ${addresses:STRING}    (Closes 2171)

Better yet would be to force setting the output separator literally,
and not after expansion of the STRING. But this would be an incompatible
change.

7 years agoBetter handling of printing NULL pointers
Jeremy Harris [Fri, 6 Oct 2017 17:11:22 +0000 (18:11 +0100)]
Better handling of printing NULL pointers

7 years agotestsuite output changes
Jeremy Harris [Thu, 5 Oct 2017 21:41:03 +0000 (22:41 +0100)]
testsuite output changes

7 years agoFix debug output for NULL pointers on FreeBSD.
Jeremy Harris [Thu, 5 Oct 2017 20:54:28 +0000 (21:54 +0100)]
Fix debug output for NULL pointers on FreeBSD.

The testsuite had failures, mostly in DB opens finding no existing file,
where debug output to stderr showed "0xAAAAAAAA" rather than "(nil)".
Code it explicitly, at least in %p handling, rather than relying on sprintf() bevahiour.

7 years agoTestsuite: for TFO testcases manipulate the system state
Jeremy Harris [Sun, 1 Oct 2017 20:45:11 +0000 (21:45 +0100)]
Testsuite: for TFO testcases manipulate the system state

Linux-centric; will need elaboration for other platforms

7 years agoTFO: better detection of client fast-open connections (again)
Jeremy Harris [Sun, 1 Oct 2017 17:11:36 +0000 (18:11 +0100)]
TFO: better detection of client fast-open connections (again)

7 years agoTestsuite: Ignore optional-config output change
Jeremy Harris [Mon, 25 Sep 2017 17:53:12 +0000 (18:53 +0100)]
Testsuite: Ignore optional-config output change

7 years agoDKIM: support specifying alternate-identity tag for signing. Bug 2170
Jeremy Harris [Mon, 25 Sep 2017 15:36:47 +0000 (16:36 +0100)]
DKIM: support specifying alternate-identity tag for signing.  Bug 2170

7 years agoTFO: early-data for ClamAV and for readsocket expansion
Jeremy Harris [Tue, 19 Sep 2017 20:57:30 +0000 (21:57 +0100)]
TFO: early-data for ClamAV and for readsocket expansion

7 years agoAvoid repeated string-copy building command-string for rspamd
Jeremy Harris [Tue, 19 Sep 2017 20:45:10 +0000 (21:45 +0100)]
Avoid repeated string-copy building command-string for rspamd

7 years agoTFO: better detection of client fast-open connections
Jeremy Harris [Tue, 19 Sep 2017 14:10:21 +0000 (15:10 +0100)]
TFO: better detection of client fast-open connections

7 years agoFix testsuite build for non-TFO platforms
Jeremy Harris [Tue, 19 Sep 2017 12:24:43 +0000 (13:24 +0100)]
Fix testsuite build for non-TFO platforms

7 years agoTFO: early-data for client outbound via socks5 proxy
Jeremy Harris [Mon, 18 Sep 2017 10:50:07 +0000 (11:50 +0100)]
TFO: early-data for client outbound via socks5 proxy

7 years agoexipick: add -C|--config option
Heiko Schlittermann (HS12-RIPE) [Mon, 18 Sep 2017 20:56:36 +0000 (22:56 +0200)]
exipick: add -C|--config option

This fits better to
   echo test | exim -C /tmp/test.conf -v test@example.com
   exipick -C /tmp/test.conf

7 years agoSOCKS: fix unitialized-pointer
Jeremy Harris [Mon, 18 Sep 2017 16:47:52 +0000 (17:47 +0100)]
SOCKS: fix unitialized-pointer

7 years agotidying
Jeremy Harris [Sat, 16 Sep 2017 22:43:54 +0000 (23:43 +0100)]
tidying

7 years agoFix build on FreeBSD
Jeremy Harris [Sat, 16 Sep 2017 17:05:57 +0000 (18:05 +0100)]
Fix build on FreeBSD

7 years agoFix function prototype
Jeremy Harris [Sat, 16 Sep 2017 16:32:37 +0000 (17:32 +0100)]
Fix function prototype

7 years agoSupport parallel-build for the buildtin macros
Jeremy Harris [Sat, 16 Sep 2017 16:11:20 +0000 (17:11 +0100)]
Support parallel-build for the buildtin macros

7 years agotidying
Jeremy Harris [Sat, 16 Sep 2017 15:03:32 +0000 (16:03 +0100)]
tidying

7 years agoProvide readn() as a wrapper around read()
Heiko Schlittermann (HS12-RIPE) [Sat, 16 Sep 2017 13:13:15 +0000 (15:13 +0200)]
Provide readn() as a wrapper around read()

This readn() reads all the data requested, even if the
writer sends it in smaller chunks.

7 years agoUse writev(2) when sending delivery status to the parent
Heiko Schlittermann (HS12-RIPE) [Thu, 29 Jun 2017 18:13:40 +0000 (20:13 +0200)]
Use writev(2) when sending delivery status to the parent

7 years agoDo not use O_NONBLOCK for reading the delivery transport pipe
Heiko Schlittermann (HS12-RIPE) [Wed, 5 Jul 2017 06:47:56 +0000 (08:47 +0200)]
Do not use O_NONBLOCK for reading the delivery transport pipe

7 years agoTidy build under pre-v3 GnuTLS
Jeremy Harris [Tue, 12 Sep 2017 19:27:19 +0000 (20:27 +0100)]
Tidy build under pre-v3 GnuTLS

7 years agoDKIM: support multiple signing, by selector
Jeremy Harris [Tue, 12 Sep 2017 16:49:58 +0000 (17:49 +0100)]
DKIM: support multiple signing, by selector

7 years agoDKIM: support multiple hash methods
Jeremy Harris [Tue, 12 Sep 2017 16:37:48 +0000 (17:37 +0100)]
DKIM: support multiple hash methods

7 years agoDKIM: rename internal signing api
Jeremy Harris [Fri, 19 May 2017 12:32:53 +0000 (13:32 +0100)]
DKIM: rename internal signing api

7 years agoDKIM: fix signing bug induced by total size of parameter text
Jeremy Harris [Sun, 10 Sep 2017 19:23:21 +0000 (20:23 +0100)]
DKIM: fix signing bug induced by total size of parameter text
causing header-line fold between "b=" and terminating ";" of
pseudo-header.

7 years agospecified-initialisers
Jeremy Harris [Fri, 8 Sep 2017 18:24:40 +0000 (19:24 +0100)]
specified-initialisers

7 years agoFix sieve QP regression from Coverity cleanups
Phil Pennock [Tue, 5 Sep 2017 00:24:56 +0000 (20:24 -0400)]
Fix sieve QP regression from Coverity cleanups

Fixes: 2161
7 years agoLogging: restrict TFO client-side to Linux
Jeremy Harris [Sat, 2 Sep 2017 15:16:43 +0000 (16:16 +0100)]
Logging: restrict TFO client-side to Linux

The detection method depends on a getsockopt struct member apparently
not supported by FreeBSD (at least).  Other platforms status unknown.

7 years agoLogging: TCP Fast Open
Jeremy Harris [Wed, 30 Aug 2017 22:52:40 +0000 (23:52 +0100)]
Logging: TCP Fast Open

7 years agoFix address ignore-errors flag bit initialisation and propagation
Jeremy Harris [Mon, 21 Aug 2017 19:46:52 +0000 (20:46 +0100)]
Fix address ignore-errors flag bit initialisation and propagation

Broken-by: 7eb0e5d2b8
7 years agoFixed compilation with mariadb-10.2
Jaroslav Škarvada [Fri, 18 Aug 2017 13:57:19 +0000 (15:57 +0200)]
Fixed compilation with mariadb-10.2

https://bugzilla.redhat.com/show_bug.cgi?id=1467312

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Exim-merge-changes: added ChangeLog item (Phil Pennock)

7 years agoUse bitfields for flags in the "addr" struct
Jeremy Harris [Sun, 20 Aug 2017 21:09:15 +0000 (22:09 +0100)]
Use bitfields for flags in the "addr" struct

7 years agoLogging: add elapsed-time element to unexpected-diconnection lines
Jeremy Harris [Sun, 20 Aug 2017 12:42:16 +0000 (13:42 +0100)]
Logging: add elapsed-time element to unexpected-diconnection lines

7 years agotidying
Jeremy Harris [Mon, 14 Aug 2017 14:04:24 +0000 (15:04 +0100)]
tidying

7 years agotidying
Jeremy Harris [Mon, 14 Aug 2017 12:35:22 +0000 (13:35 +0100)]
tidying

7 years agoFix EXPERIMENTAL_DMARC build
Jeremy Harris [Sun, 13 Aug 2017 20:36:25 +0000 (21:36 +0100)]
Fix EXPERIMENTAL_DMARC build

Broken-by: f2ed27cf5f
7 years agoFix non-TLS build
Jeremy Harris [Sun, 13 Aug 2017 14:16:08 +0000 (15:16 +0100)]
Fix non-TLS build

Broken-by: e5de01f091
7 years agoTypo
Jeremy Harris [Sun, 13 Aug 2017 14:12:27 +0000 (15:12 +0100)]
Typo

Broken-by: f2ed27cf5f
7 years agoDocument CVE assignment for Berkeley DB issue
Jeremy Harris [Sun, 13 Aug 2017 10:07:33 +0000 (11:07 +0100)]
Document CVE assignment for Berkeley DB issue

7 years agoCoding: use specified-initialisers
Jeremy Harris [Mon, 7 Aug 2017 14:33:14 +0000 (15:33 +0100)]
Coding: use specified-initialisers

7 years agoUse exim string facilities rather than custom parser for DKIM pubkey
Jeremy Harris [Wed, 9 Aug 2017 22:39:25 +0000 (23:39 +0100)]
Use exim string facilities rather than custom parser for DKIM pubkey

7 years agoDKIM: Enforce any "h" field present in the DNS publickey record. This can be set...
Jeremy Harris [Wed, 28 Jun 2017 14:25:12 +0000 (15:25 +0100)]
DKIM:  Enforce any "h" field present in the DNS publickey record.  This can be set to require specific
hash types, eg sha256, in signatues.  There is an IETF draft in discussion which deprecates sha1 so this
feature may start to be used.

7 years agoLogging: millisecond time on 'no MAIL' lines. Bug 2102
Jeremy Harris [Sun, 6 Aug 2017 14:44:13 +0000 (15:44 +0100)]
Logging: millisecond time on 'no MAIL' lines.  Bug 2102

7 years agotidying
Jeremy Harris [Sat, 5 Aug 2017 14:51:36 +0000 (15:51 +0100)]
tidying

7 years agotidying
Jeremy Harris [Sat, 5 Aug 2017 14:04:39 +0000 (15:04 +0100)]
tidying

7 years agoDebugging: millisecond timestamps. Bug 2102
Jeremy Harris [Sat, 5 Aug 2017 13:06:36 +0000 (14:06 +0100)]
Debugging: millisecond timestamps.  Bug 2102

7 years agoLogging: millisecond QT and DT. Bug 2102
Jeremy Harris [Fri, 4 Aug 2017 14:13:17 +0000 (15:13 +0100)]
Logging: millisecond QT and DT.  Bug 2102

7 years agoUse retval from sprintf while walking buffers
Jeremy Harris [Tue, 1 Aug 2017 20:49:04 +0000 (21:49 +0100)]
Use retval from sprintf while walking buffers

7 years agoTidying
Jeremy Harris [Sun, 16 Jul 2017 16:21:35 +0000 (17:21 +0100)]
Tidying

7 years agoLogging: millisecond timestamps. Bug 2102
Jeremy Harris [Sun, 30 Jul 2017 19:51:10 +0000 (20:51 +0100)]
Logging: millisecond timestamps.  Bug 2102

No change to QT logging yet as that will need a spool format update

7 years agoRetire historical build files from Makefile
Jeremy Harris [Sun, 30 Jul 2017 13:37:56 +0000 (14:37 +0100)]
Retire historical build files from Makefile

7 years agoRetire historical build files
Jeremy Harris [Sun, 30 Jul 2017 13:21:43 +0000 (14:21 +0100)]
Retire historical build files

7 years agoOn callout avoid SIZE every time but noncacheable rcpt main-verify. Bug 2151
Jeremy Harris [Sat, 22 Jul 2017 15:38:08 +0000 (16:38 +0100)]
On callout avoid SIZE every time but noncacheable rcpt main-verify.  Bug 2151

7 years agoDo not rely on linker identifying common strings
Jeremy Harris [Tue, 18 Jul 2017 22:29:54 +0000 (23:29 +0100)]
Do not rely on linker identifying common strings

7 years agoFix cache-cold random callout verify. Bug 2147
Jeremy Harris [Tue, 18 Jul 2017 22:10:33 +0000 (23:10 +0100)]
Fix cache-cold random callout verify.  Bug 2147

7 years agoOptimise scanning config for macros
Jeremy Harris [Sun, 16 Jul 2017 17:02:57 +0000 (18:02 +0100)]
Optimise scanning config for macros

7 years agoFix macro_predef build for auth_cyrus_sasl
Jeremy Harris [Sun, 16 Jul 2017 13:36:38 +0000 (14:36 +0100)]
Fix macro_predef build for auth_cyrus_sasl

7 years agoFix build for earlier version Berkeley DB
Jeremy Harris [Sun, 16 Jul 2017 12:52:57 +0000 (13:52 +0100)]
Fix build for earlier version Berkeley DB

7 years agotidying
Jeremy Harris [Sat, 15 Jul 2017 18:55:59 +0000 (19:55 +0100)]
tidying

7 years agoUse the BDB "environment" so that a database config file is not looked for. Bug...
Jeremy Harris [Wed, 5 Jul 2017 11:57:24 +0000 (12:57 +0100)]
Use the BDB "environment" so that a database config file is not looked for.  Bug 2141

7 years agoAdd directory name as new arg to EXIM_DBOPEN
Jeremy Harris [Tue, 11 Jul 2017 19:52:34 +0000 (20:52 +0100)]
Add directory name as new arg to EXIM_DBOPEN

7 years agoAdd $smtp_command_history variable
Jeremy Harris [Wed, 5 Jul 2017 13:30:05 +0000 (14:30 +0100)]
Add $smtp_command_history variable

7 years agotidying
Jeremy Harris [Sun, 9 Jul 2017 15:12:45 +0000 (16:12 +0100)]
tidying

7 years agoAvoid creating before-buffer pointer. Bug 2145
Jeremy Harris [Sun, 9 Jul 2017 13:29:31 +0000 (14:29 +0100)]
Avoid creating before-buffer pointer.  Bug 2145

Found by: ASAN / <ago@gentoo.org>

7 years agoPrebuild the data structure for builtin macros
Jeremy Harris [Sat, 8 Jul 2017 16:54:44 +0000 (17:54 +0100)]
Prebuild the data structure for builtin macros

7 years agoPrebuild the data structure for builtin macros
Jeremy Harris [Sat, 8 Jul 2017 12:24:38 +0000 (13:24 +0100)]
Prebuild the data structure for builtin macros

7 years agoSplit macro name storage out from macro definition struct
Jeremy Harris [Sat, 8 Jul 2017 12:59:49 +0000 (13:59 +0100)]
Split macro name storage out from macro definition struct

7 years agoexigrep: use less --quite-if-one-screen --no-init hs-typos
Heiko Schlittermann (HS12-RIPE) [Tue, 4 Jul 2017 11:33:08 +0000 (13:33 +0200)]
exigrep: use less --quite-if-one-screen --no-init

7 years agoTransform string_append_listele{,_n}() to proper expanding-string triplet interface
Jeremy Harris [Sun, 2 Jul 2017 09:30:48 +0000 (10:30 +0100)]
Transform string_append_listele{,_n}() to proper expanding-string triplet interface
(but do always maintain a nul-term string result).  This avoids always copying the
previous list version, and should do fewer allocs too.