Open
upgrade to 4.98.2 to resolve the to CVE-2025-26794 to CVE-2025-30232 #43
pop-code123Add on Jun 3
upgrade to 4.98.2 to resolve the to CVE-2025-26794 to CVE-2025-30232 #43
Open
Total: 11 files changed+213-79
| @@ -1,28 +0,0 @@ | |||
| 1 | -From 06a6f188c5fd423e787146f992e5a97f2476de91 Mon Sep 17 00:00:00 2001 | ||
| 2 | -From: Jeremy Harris <jgh146exb@wizmail.org> | ||
| 3 | -Date: Tue, 9 Jul 2024 11:23:21 +0800 | ||
| 4 | -Subject: [PATCH] Reject "dot, LF" as ending data phase. Bug 3063 | ||
| 5 | - | ||
| 6 | ---- | ||
| 7 | - src/smtp_in.c | 5 ++++- | ||
| 8 | - 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 9 | - | ||
| 10 | -diff --git a/src/smtp_in.c b/src/smtp_in.c | ||
| 11 | -index eb9c7e6..215a4c7 100644 | ||
| 12 | ---- a/src/smtp_in.c | ||
| 13 | -+++ b/src/smtp_in.c | ||
| 14 | -@@ -5110,7 +5110,10 @@ while (done <= 0) | ||
| 15 | - dummy call to get the DATA command sent. */ | ||
| 16 | - | ||
| 17 | - if (!acl_smtp_predata && cutthrough.cctx.sock < 0) | ||
| 18 | -- rc = OK; | ||
| 19 | -+ { | ||
| 20 | -+ if (!check_sync()) goto SYNC_FAILURE; | ||
| 21 | -+ rc = OK; | ||
| 22 | -+ } | ||
| 23 | - else | ||
| 24 | - { | ||
| 25 | - uschar * acl = acl_smtp_predata ? acl_smtp_predata : US"accept"; | ||
| 26 | --- | ||
| 27 | -2.27.0 | ||
| 28 | - | ||
Binary files do not support preview
| @@ -12,10 +12,10 @@ index dc5015f..07f8c23 100755 | |||
| 12 | echo "" >>$mft | 12 | echo "" >>$mft |
| 13 | cat $mftt >> $mft | 13 | cat $mftt >> $mft |
| 14 | diff --git a/src/EDITME b/src/EDITME | 14 | diff --git a/src/EDITME b/src/EDITME |
| 15 | -index f68b3f1..a0b37b2 100644 | 15 | +index ebfaf64..9e4e818 100644 |
| 16 | --- a/src/EDITME | 16 | --- a/src/EDITME |
| 17 | +++ b/src/EDITME | 17 | +++ b/src/EDITME |
| 18 | -@@ -101,7 +101,7 @@ | 18 | +@@ -103,7 +103,7 @@ |
| 19 | # /usr/local/sbin. The installation script will try to create this directory, | 19 | # /usr/local/sbin. The installation script will try to create this directory, |
| 20 | # and any superior directories, if they do not exist. | 20 | # and any superior directories, if they do not exist. |
| 21 | 21 | ||
| @@ -24,7 +24,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | #------------------------------------------------------------------------------ | 26 | #------------------------------------------------------------------------------ |
| 27 | -@@ -117,7 +117,7 @@ BIN_DIRECTORY=/usr/exim/bin | 27 | +@@ -119,7 +119,7 @@ BIN_DIRECTORY=/usr/exim/bin |
| 28 | # don't exist. It will also install a default runtime configuration if this | 28 | # don't exist. It will also install a default runtime configuration if this |
| 29 | # file does not exist. | 29 | # file does not exist. |
| 30 | 30 | ||
| @@ -33,7 +33,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 33 | 33 | ||
| 34 | # It is possible to specify a colon-separated list of files for CONFIGURE_FILE. | 34 | # It is possible to specify a colon-separated list of files for CONFIGURE_FILE. |
| 35 | # In this case, Exim will use the first of them that exists when it is run. | 35 | # In this case, Exim will use the first of them that exists when it is run. |
| 36 | -@@ -134,7 +134,7 @@ CONFIGURE_FILE=/usr/exim/configure | 36 | +@@ -136,7 +136,7 @@ CONFIGURE_FILE=/usr/exim/configure |
| 37 | # deliveries. (Local deliveries run as various non-root users, typically as the | 37 | # deliveries. (Local deliveries run as various non-root users, typically as the |
| 38 | # owner of a local mailbox.) Specifying these values as root is not supported. | 38 | # owner of a local mailbox.) Specifying these values as root is not supported. |
| 39 | 39 | ||
| @@ -42,7 +42,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 42 | 42 | ||
| 43 | # If you specify EXIM_USER as a name, this is looked up at build time, and the | 43 | # If you specify EXIM_USER as a name, this is looked up at build time, and the |
| 44 | # uid number is built into the binary. However, you can specify that this | 44 | # uid number is built into the binary. However, you can specify that this |
| 45 | -@@ -155,7 +155,7 @@ EXIM_USER= | 45 | +@@ -157,7 +157,7 @@ EXIM_USER= |
| 46 | # for EXIM_USER (e.g. EXIM_USER=exim), you don't need to set EXIM_GROUP unless | 46 | # for EXIM_USER (e.g. EXIM_USER=exim), you don't need to set EXIM_GROUP unless |
| 47 | # you want to use a group other than the default group for the given user. | 47 | # you want to use a group other than the default group for the given user. |
| 48 | 48 | ||
| @@ -51,7 +51,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 51 | 51 | ||
| 52 | # Many sites define a user called "exim", with an appropriate default group, | 52 | # Many sites define a user called "exim", with an appropriate default group, |
| 53 | # and use | 53 | # and use |
| 54 | -@@ -212,10 +212,10 @@ SPOOL_DIRECTORY=/var/spool/exim | 54 | +@@ -214,10 +214,10 @@ SPOOL_DIRECTORY=/var/spool/exim |
| 55 | # If you are building with TLS, the library configuration must be done: | 55 | # If you are building with TLS, the library configuration must be done: |
| 56 | 56 | ||
| 57 | # Uncomment this if you are using OpenSSL | 57 | # Uncomment this if you are using OpenSSL |
| @@ -64,7 +64,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 64 | # TLS_LIBS=-lssl -lcrypto | 64 | # TLS_LIBS=-lssl -lcrypto |
| 65 | # TLS_LIBS=-L/usr/local/openssl/lib -lssl -lcrypto | 65 | # TLS_LIBS=-L/usr/local/openssl/lib -lssl -lcrypto |
| 66 | 66 | ||
| 67 | -@@ -342,7 +342,7 @@ TRANSPORT_SMTP=yes | 67 | +@@ -344,7 +344,7 @@ TRANSPORT_SMTP=yes |
| 68 | # This one is special-purpose, and commonly not required, so it is not | 68 | # This one is special-purpose, and commonly not required, so it is not |
| 69 | # included by default. | 69 | # included by default. |
| 70 | 70 | ||
| @@ -73,7 +73,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | #------------------------------------------------------------------------------ | 75 | #------------------------------------------------------------------------------ |
| 76 | -@@ -351,9 +351,9 @@ TRANSPORT_SMTP=yes | 76 | +@@ -353,9 +353,9 @@ TRANSPORT_SMTP=yes |
| 77 | # MBX, is included only when requested. If you do not know what this is about, | 77 | # MBX, is included only when requested. If you do not know what this is about, |
| 78 | # leave these settings commented out. | 78 | # leave these settings commented out. |
| 79 | 79 | ||
| @@ -86,7 +86,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | #------------------------------------------------------------------------------ | 88 | #------------------------------------------------------------------------------ |
| 89 | -@@ -411,22 +411,28 @@ LOOKUP_DBM=yes | 89 | +@@ -413,22 +413,28 @@ LOOKUP_DBM=yes |
| 90 | LOOKUP_LSEARCH=yes | 90 | LOOKUP_LSEARCH=yes |
| 91 | LOOKUP_DNSDB=yes | 91 | LOOKUP_DNSDB=yes |
| 92 | 92 | ||
| @@ -105,10 +105,11 @@ index f68b3f1..a0b37b2 100644 | |||
| 105 | -# LOOKUP_MYSQL=yes | 105 | -# LOOKUP_MYSQL=yes |
| 106 | -# LOOKUP_MYSQL_PC=mariadb | 106 | -# LOOKUP_MYSQL_PC=mariadb |
| 107 | -# LOOKUP_NIS=yes | 107 | -# LOOKUP_NIS=yes |
| 108 | +-# LOOKUP_NISPLUS=yes | ||
| 108 | +LOOKUP_MYSQL=2 | 109 | +LOOKUP_MYSQL=2 |
| 109 | -+LOOKUP_MYSQL_PC=libmariadb | 110 | ++LOOKUP_MYSQL_PC=mariadb |
| 110 | -+LOOKUP_NIS=yes | 111 | ++# LOOKUP_NIS=yes |
| 111 | - # LOOKUP_NISPLUS=yes | 112 | ++# LOOKUP_NISPLUS=yes |
| 112 | +CFLAGS+=-I/usr/include/nsl -I/usr/include/tirpc | 113 | +CFLAGS+=-I/usr/include/nsl -I/usr/include/tirpc |
| 113 | +LIBS+=-L/usr/$(_lib)/nsl | 114 | +LIBS+=-L/usr/$(_lib)/nsl |
| 114 | + | 115 | + |
| @@ -124,7 +125,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 124 | # LOOKUP_SQLITE_PC=sqlite3 | 125 | # LOOKUP_SQLITE_PC=sqlite3 |
| 125 | # LOOKUP_WHOSON=yes | 126 | # LOOKUP_WHOSON=yes |
| 126 | 127 | ||
| 127 | -@@ -439,7 +445,7 @@ LOOKUP_DNSDB=yes | 128 | +@@ -441,7 +447,7 @@ LOOKUP_DNSDB=yes |
| 128 | 129 | ||
| 129 | 130 | ||
| 130 | # Some platforms may need this for LOOKUP_NIS: | 131 | # Some platforms may need this for LOOKUP_NIS: |
| @@ -133,7 +134,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 133 | 134 | ||
| 134 | #------------------------------------------------------------------------------ | 135 | #------------------------------------------------------------------------------ |
| 135 | # If you have set LOOKUP_LDAP=yes, you should set LDAP_LIB_TYPE to indicate | 136 | # If you have set LOOKUP_LDAP=yes, you should set LDAP_LIB_TYPE to indicate |
| 136 | -@@ -513,7 +519,7 @@ SUPPORT_DANE=yes | 137 | +@@ -515,7 +521,7 @@ SUPPORT_DANE=yes |
| 137 | # files are defaulted in the OS/Makefile-Default file, but can be overridden in | 138 | # files are defaulted in the OS/Makefile-Default file, but can be overridden in |
| 138 | # local OS-specific make files. | 139 | # local OS-specific make files. |
| 139 | 140 | ||
| @@ -142,7 +143,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 142 | 143 | ||
| 143 | 144 | ||
| 144 | #------------------------------------------------------------------------------ | 145 | #------------------------------------------------------------------------------ |
| 145 | -@@ -523,7 +529,7 @@ SUPPORT_DANE=yes | 146 | +@@ -525,7 +531,7 @@ SUPPORT_DANE=yes |
| 146 | # and the MIME ACL. Please read the documentation to learn more about these | 147 | # and the MIME ACL. Please read the documentation to learn more about these |
| 147 | # features. | 148 | # features. |
| 148 | 149 | ||
| @@ -151,7 +152,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 151 | 152 | ||
| 152 | # If you have content scanning you may wish to only include some of the scanner | 153 | # If you have content scanning you may wish to only include some of the scanner |
| 153 | # interfaces. Uncomment any of these lines to remove that code. | 154 | # interfaces. Uncomment any of these lines to remove that code. |
| 154 | -@@ -604,12 +610,12 @@ DISABLE_MAL_MKS=yes | 155 | +@@ -609,12 +615,12 @@ DISABLE_MAL_MKS=yes |
| 155 | 156 | ||
| 156 | # Uncomment the following line to add DMARC checking capability, implemented | 157 | # Uncomment the following line to add DMARC checking capability, implemented |
| 157 | # using libopendmarc libraries. You must have SPF and DKIM support enabled also. | 158 | # using libopendmarc libraries. You must have SPF and DKIM support enabled also. |
| @@ -167,7 +168,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 167 | # | 168 | # |
| 168 | # Library version libopendmarc-1.4.1-1.fc33.x86_64 (on Fedora 33) is known broken; | 169 | # Library version libopendmarc-1.4.1-1.fc33.x86_64 (on Fedora 33) is known broken; |
| 169 | # 1.3.2-3 works. It seems that the OpenDMARC project broke their API. | 170 | # 1.3.2-3 works. It seems that the OpenDMARC project broke their API. |
| 170 | -@@ -740,7 +746,7 @@ FIXED_NEVER_USERS=root | 171 | +@@ -749,7 +755,7 @@ FIXED_NEVER_USERS=root |
| 171 | # CONFIGURE_OWNER setting, to specify a configuration file which is listed in | 172 | # CONFIGURE_OWNER setting, to specify a configuration file which is listed in |
| 172 | # the TRUSTED_CONFIG_LIST file, then root privileges are not dropped by Exim. | 173 | # the TRUSTED_CONFIG_LIST file, then root privileges are not dropped by Exim. |
| 173 | 174 | ||
| @@ -176,7 +177,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 176 | 177 | ||
| 177 | 178 | ||
| 178 | #------------------------------------------------------------------------------ | 179 | #------------------------------------------------------------------------------ |
| 179 | -@@ -785,18 +791,18 @@ FIXED_NEVER_USERS=root | 180 | +@@ -794,18 +800,18 @@ FIXED_NEVER_USERS=root |
| 180 | # included in the Exim binary. You will then need to set up the run time | 181 | # included in the Exim binary. You will then need to set up the run time |
| 181 | # configuration to make use of the mechanism(s) selected. | 182 | # configuration to make use of the mechanism(s) selected. |
| 182 | 183 | ||
| @@ -203,7 +204,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 203 | 204 | ||
| 204 | # Heimdal through 1.5 required pkg-config 'heimdal-gssapi'; Heimdal 7.1 | 205 | # Heimdal through 1.5 required pkg-config 'heimdal-gssapi'; Heimdal 7.1 |
| 205 | # requires multiple pkg-config files to work with Exim, so the second example | 206 | # requires multiple pkg-config files to work with Exim, so the second example |
| 206 | -@@ -823,7 +829,7 @@ FIXED_NEVER_USERS=root | 207 | +@@ -832,7 +838,7 @@ FIXED_NEVER_USERS=root |
| 207 | # one that is set in the headers_charset option. The default setting is | 208 | # one that is set in the headers_charset option. The default setting is |
| 208 | # defined by this setting: | 209 | # defined by this setting: |
| 209 | 210 | ||
| @@ -212,7 +213,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 212 | 213 | ||
| 213 | # If you are going to make use of $header_xxx expansions in your configuration | 214 | # If you are going to make use of $header_xxx expansions in your configuration |
| 214 | # file, or if your users are going to use them in filter files, and the normal | 215 | # file, or if your users are going to use them in filter files, and the normal |
| 215 | -@@ -843,7 +849,7 @@ HEADERS_CHARSET="ISO-8859-1" | 216 | +@@ -852,7 +858,7 @@ HEADERS_CHARSET="ISO-8859-1" |
| 216 | # the Sieve filter support. For those OS where iconv() is known to be installed | 217 | # the Sieve filter support. For those OS where iconv() is known to be installed |
| 217 | # as standard, the file in OS/Makefile-xxxx contains | 218 | # as standard, the file in OS/Makefile-xxxx contains |
| 218 | # | 219 | # |
| @@ -221,7 +222,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 221 | # | 222 | # |
| 222 | # If you are not using one of those systems, but have installed iconv(), you | 223 | # If you are not using one of those systems, but have installed iconv(), you |
| 223 | # need to uncomment that line above. In some cases, you may find that iconv() | 224 | # need to uncomment that line above. In some cases, you may find that iconv() |
| 224 | -@@ -919,7 +925,7 @@ HEADERS_CHARSET="ISO-8859-1" | 225 | +@@ -928,7 +934,7 @@ HEADERS_CHARSET="ISO-8859-1" |
| 225 | # Once you have done this, "make install" will build the info files and | 226 | # Once you have done this, "make install" will build the info files and |
| 226 | # install them in the directory you have defined. | 227 | # install them in the directory you have defined. |
| 227 | 228 | ||
| @@ -230,7 +231,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 230 | 231 | ||
| 231 | 232 | ||
| 232 | #------------------------------------------------------------------------------ | 233 | #------------------------------------------------------------------------------ |
| 233 | -@@ -932,7 +938,7 @@ HEADERS_CHARSET="ISO-8859-1" | 234 | +@@ -941,7 +947,7 @@ HEADERS_CHARSET="ISO-8859-1" |
| 234 | # %s. This will be replaced by one of the strings "main", "panic", or "reject" | 235 | # %s. This will be replaced by one of the strings "main", "panic", or "reject" |
| 235 | # to form the final file names. Some installations may want something like this: | 236 | # to form the final file names. Some installations may want something like this: |
| 236 | 237 | ||
| @@ -239,7 +240,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 239 | 240 | ||
| 240 | # which results in files with names /var/log/exim_mainlog, etc. The directory | 241 | # which results in files with names /var/log/exim_mainlog, etc. The directory |
| 241 | # in which the log files are placed must exist; Exim does not try to create | 242 | # in which the log files are placed must exist; Exim does not try to create |
| 242 | -@@ -1004,7 +1010,7 @@ ZCAT_COMMAND=/usr/bin/zcat | 243 | +@@ -1013,7 +1019,7 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 243 | # (version 5.004 or later) installed, set EXIM_PERL to perl.o. Using embedded | 244 | # (version 5.004 or later) installed, set EXIM_PERL to perl.o. Using embedded |
| 244 | # Perl costs quite a lot of resources. Only do this if you really need it. | 245 | # Perl costs quite a lot of resources. Only do this if you really need it. |
| 245 | 246 | ||
| @@ -248,7 +249,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 248 | 249 | ||
| 249 | 250 | ||
| 250 | #------------------------------------------------------------------------------ | 251 | #------------------------------------------------------------------------------ |
| 251 | -@@ -1014,7 +1020,7 @@ ZCAT_COMMAND=/usr/bin/zcat | 252 | +@@ -1023,7 +1029,7 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 252 | # that the local_scan API is made available by the linker. You may also need | 253 | # that the local_scan API is made available by the linker. You may also need |
| 253 | # to add -ldl to EXTRALIBS so that dlopen() is available to Exim. | 254 | # to add -ldl to EXTRALIBS so that dlopen() is available to Exim. |
| 254 | 255 | ||
| @@ -257,7 +258,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 257 | 258 | ||
| 258 | 259 | ||
| 259 | #------------------------------------------------------------------------------ | 260 | #------------------------------------------------------------------------------ |
| 260 | -@@ -1024,7 +1030,7 @@ ZCAT_COMMAND=/usr/bin/zcat | 261 | +@@ -1033,7 +1039,7 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 261 | # support, which is intended for use in conjunction with the SMTP AUTH | 262 | # support, which is intended for use in conjunction with the SMTP AUTH |
| 262 | # facilities, is included only when requested by the following setting: | 263 | # facilities, is included only when requested by the following setting: |
| 263 | 264 | ||
| @@ -266,7 +267,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 266 | 267 | ||
| 267 | # You probably need to add -lpam to EXTRALIBS, and in some releases of | 268 | # You probably need to add -lpam to EXTRALIBS, and in some releases of |
| 268 | # GNU/Linux -ldl is also needed. | 269 | # GNU/Linux -ldl is also needed. |
| 269 | -@@ -1036,12 +1042,12 @@ ZCAT_COMMAND=/usr/bin/zcat | 270 | +@@ -1045,12 +1051,12 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 270 | # If you may want to use outbound (client-side) proxying, using Socks5, | 271 | # If you may want to use outbound (client-side) proxying, using Socks5, |
| 271 | # uncomment the line below. | 272 | # uncomment the line below. |
| 272 | 273 | ||
| @@ -281,7 +282,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 281 | 282 | ||
| 282 | 283 | ||
| 283 | #------------------------------------------------------------------------------ | 284 | #------------------------------------------------------------------------------ |
| 284 | -@@ -1065,9 +1071,9 @@ ZCAT_COMMAND=/usr/bin/zcat | 285 | +@@ -1074,9 +1080,9 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 285 | # installed on your system (www.libspf2.org). Depending on where it is installed | 286 | # installed on your system (www.libspf2.org). Depending on where it is installed |
| 286 | # you may have to edit the CFLAGS and LDFLAGS lines. | 287 | # you may have to edit the CFLAGS and LDFLAGS lines. |
| 287 | 288 | ||
| @@ -293,7 +294,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 293 | 294 | ||
| 294 | 295 | ||
| 295 | #------------------------------------------------------------------------------ | 296 | #------------------------------------------------------------------------------ |
| 296 | -@@ -1132,7 +1138,7 @@ ZCAT_COMMAND=/usr/bin/zcat | 297 | +@@ -1141,7 +1147,7 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 297 | # group. Once you have installed saslauthd, you should arrange for it to be | 298 | # group. Once you have installed saslauthd, you should arrange for it to be |
| 298 | # started by root at boot time. | 299 | # started by root at boot time. |
| 299 | 300 | ||
| @@ -302,7 +303,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 302 | 303 | ||
| 303 | 304 | ||
| 304 | #------------------------------------------------------------------------------ | 305 | #------------------------------------------------------------------------------ |
| 305 | -@@ -1146,8 +1152,8 @@ ZCAT_COMMAND=/usr/bin/zcat | 306 | +@@ -1155,8 +1161,8 @@ ZCAT_COMMAND=/usr/bin/zcat |
| 306 | # library for TCP wrappers, so you probably need something like this: | 307 | # library for TCP wrappers, so you probably need something like this: |
| 307 | # | 308 | # |
| 308 | # USE_TCP_WRAPPERS=yes | 309 | # USE_TCP_WRAPPERS=yes |
| @@ -313,7 +314,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 313 | # | 314 | # |
| 314 | # but of course there may need to be other things in CFLAGS and EXTRALIBS_EXIM | 315 | # but of course there may need to be other things in CFLAGS and EXTRALIBS_EXIM |
| 315 | # as well. | 316 | # as well. |
| 316 | -@@ -1199,7 +1205,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases | 317 | +@@ -1208,7 +1214,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases |
| 317 | # is "yes", as well as supporting line editing, a history of input lines in the | 318 | # is "yes", as well as supporting line editing, a history of input lines in the |
| 318 | # current run is maintained. | 319 | # current run is maintained. |
| 319 | 320 | ||
| @@ -322,7 +323,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 322 | 323 | ||
| 323 | # You may need to add -ldl to EXTRALIBS when you set USE_READLINE=yes. | 324 | # You may need to add -ldl to EXTRALIBS when you set USE_READLINE=yes. |
| 324 | # Note that this option adds to the size of the Exim binary, because the | 325 | # Note that this option adds to the size of the Exim binary, because the |
| 325 | -@@ -1216,7 +1222,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases | 326 | +@@ -1225,7 +1231,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases |
| 326 | #------------------------------------------------------------------------------ | 327 | #------------------------------------------------------------------------------ |
| 327 | # Uncomment this setting to include IPv6 support. | 328 | # Uncomment this setting to include IPv6 support. |
| 328 | 329 | ||
| @@ -331,7 +332,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 331 | 332 | ||
| 332 | ############################################################################### | 333 | ############################################################################### |
| 333 | # THINGS YOU ALMOST NEVER NEED TO MENTION # | 334 | # THINGS YOU ALMOST NEVER NEED TO MENTION # |
| 334 | -@@ -1237,13 +1243,13 @@ SYSTEM_ALIASES_FILE=/etc/aliases | 335 | +@@ -1246,13 +1252,13 @@ SYSTEM_ALIASES_FILE=/etc/aliases |
| 335 | # haven't got Perl, Exim will still build and run; you just won't be able to | 336 | # haven't got Perl, Exim will still build and run; you just won't be able to |
| 336 | # use those utilities. | 337 | # use those utilities. |
| 337 | 338 | ||
| @@ -352,7 +353,7 @@ index f68b3f1..a0b37b2 100644 | |||
| 352 | 353 | ||
| 353 | 354 | ||
| 354 | #------------------------------------------------------------------------------ | 355 | #------------------------------------------------------------------------------ |
| 355 | -@@ -1445,7 +1451,7 @@ EXIM_TMPDIR="/tmp" | 356 | +@@ -1454,7 +1460,7 @@ EXIM_TMPDIR="/tmp" |
| 356 | # (process id) to a file so that it can easily be identified. The path of the | 357 | # (process id) to a file so that it can easily be identified. The path of the |
| 357 | # file can be specified here. Some installations may want something like this: | 358 | # file can be specified here. Some installations may want something like this: |
| 358 | 359 | ||
| @@ -1,8 +1,8 @@ | |||
| 1 | diff --git a/src/EDITME b/src/EDITME | 1 | diff --git a/src/EDITME b/src/EDITME |
| 2 | -index a0b37b2..dbf009f 100644 | 2 | +index 9e4e818..473010b 100644 |
| 3 | --- a/src/EDITME | 3 | --- a/src/EDITME |
| 4 | +++ b/src/EDITME | 4 | +++ b/src/EDITME |
| 5 | -@@ -909,6 +909,21 @@ HAVE_ICONV=yes | 5 | +@@ -918,6 +918,21 @@ HAVE_ICONV=yes |
| 6 | # *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** | 6 | # *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** |
| 7 | 7 | ||
| 8 | 8 | ||
| @@ -25,7 +25,7 @@ index a0b37b2..dbf009f 100644 | |||
| 25 | # The default distribution of Exim contains only the plain text form of the | 25 | # The default distribution of Exim contains only the plain text form of the |
| 26 | # documentation. Other forms are available separately. If you want to install | 26 | # documentation. Other forms are available separately. If you want to install |
| 27 | diff --git a/src/config.h.defaults b/src/config.h.defaults | 27 | diff --git a/src/config.h.defaults b/src/config.h.defaults |
| 28 | -index 28d4f13..460169a 100644 | 28 | +index 13b203e..70be51d 100644 |
| 29 | --- a/src/config.h.defaults | 29 | --- a/src/config.h.defaults |
| 30 | +++ b/src/config.h.defaults | 30 | +++ b/src/config.h.defaults |
| 31 | @@ -33,6 +33,8 @@ Do not put spaces between # and the 'define'. | 31 | @@ -33,6 +33,8 @@ Do not put spaces between # and the 'define'. |
| @@ -38,7 +38,7 @@ index 28d4f13..460169a 100644 | |||
| 38 | 38 | ||
| 39 | #define CONFIGURE_FILE | 39 | #define CONFIGURE_FILE |
| 40 | diff --git a/src/globals.c b/src/globals.c | 40 | diff --git a/src/globals.c b/src/globals.c |
| 41 | -index e94bef7..801b88f 100644 | 41 | +index c50b7a4..50d1d13 100644 |
| 42 | --- a/src/globals.c | 42 | --- a/src/globals.c |
| 43 | +++ b/src/globals.c | 43 | +++ b/src/globals.c |
| 44 | @@ -152,6 +152,10 @@ time_t tls_watch_trigger_time = (time_t)0; | 44 | @@ -152,6 +152,10 @@ time_t tls_watch_trigger_time = (time_t)0; |
| @@ -53,7 +53,7 @@ index e94bef7..801b88f 100644 | |||
| 53 | /* Per Recipient Data Response variables */ | 53 | /* Per Recipient Data Response variables */ |
| 54 | BOOL prdr_enable = FALSE; | 54 | BOOL prdr_enable = FALSE; |
| 55 | diff --git a/src/globals.h b/src/globals.h | 55 | diff --git a/src/globals.h b/src/globals.h |
| 56 | -index 6ec4e61..620b700 100644 | 56 | +index dc9d384..d4eba50 100644 |
| 57 | --- a/src/globals.h | 57 | --- a/src/globals.h |
| 58 | +++ b/src/globals.h | 58 | +++ b/src/globals.h |
| 59 | @@ -150,6 +150,11 @@ extern uschar *tls_verify_hosts; /* Mandatory client verification */ | 59 | @@ -150,6 +150,11 @@ extern uschar *tls_verify_hosts; /* Mandatory client verification */ |
| @@ -69,7 +69,7 @@ index 6ec4e61..620b700 100644 | |||
| 69 | 69 | ||
| 70 | extern uschar *dsn_envid; /* DSN envid string */ | 70 | extern uschar *dsn_envid; /* DSN envid string */ |
| 71 | diff --git a/src/local_scan.c b/src/local_scan.c | 71 | diff --git a/src/local_scan.c b/src/local_scan.c |
| 72 | -index da44cb7..d19af58 100644 | 72 | +index da44cb7..5af46c6 100644 |
| 73 | --- a/src/local_scan.c | 73 | --- a/src/local_scan.c |
| 74 | +++ b/src/local_scan.c | 74 | +++ b/src/local_scan.c |
| 75 | @@ -7,59 +7,134 @@ | 75 | @@ -7,59 +7,134 @@ |
| @@ -255,10 +255,10 @@ index da44cb7..d19af58 100644 | |||
| 255 | + | 255 | + |
| 256 | /* End of local_scan.c */ | 256 | /* End of local_scan.c */ |
| 257 | diff --git a/src/readconf.c b/src/readconf.c | 257 | diff --git a/src/readconf.c b/src/readconf.c |
| 258 | -index e77458d..137250d 100644 | 258 | +index 940c5d4..c2ddcf2 100644 |
| 259 | --- a/src/readconf.c | 259 | --- a/src/readconf.c |
| 260 | +++ b/src/readconf.c | 260 | +++ b/src/readconf.c |
| 261 | -@@ -216,6 +216,9 @@ static optionlist optionlist_config[] = { | 261 | +@@ -219,6 +219,9 @@ static optionlist optionlist_config[] = { |
| 262 | { "local_from_prefix", opt_stringptr, {&local_from_prefix} }, | 262 | { "local_from_prefix", opt_stringptr, {&local_from_prefix} }, |
| 263 | { "local_from_suffix", opt_stringptr, {&local_from_suffix} }, | 263 | { "local_from_suffix", opt_stringptr, {&local_from_suffix} }, |
| 264 | { "local_interfaces", opt_stringptr, {&local_interfaces} }, | 264 | { "local_interfaces", opt_stringptr, {&local_interfaces} }, |
| @@ -0,0 +1,15 @@ | |||
| 1 | +diff --git a/src/EDITME b/src/EDITME | ||
| 2 | +index 473010b..1976437 100644 | ||
| 3 | +--- a/src/EDITME | ||
| 4 | ++++ b/src/EDITME | ||
| 5 | +@@ -804,8 +804,8 @@ AUTH_CRAM_MD5=yes | ||
| 6 | + AUTH_CYRUS_SASL=yes | ||
| 7 | + AUTH_DOVECOT=yes | ||
| 8 | + # AUTH_EXTERNAL=yes | ||
| 9 | +-AUTH_GSASL=yes | ||
| 10 | +-AUTH_GSASL_PC=libgsasl | ||
| 11 | ++# AUTH_GSASL=yes | ||
| 12 | ++# AUTH_GSASL_PC=libgsasl | ||
| 13 | + # AUTH_HEIMDAL_GSSAPI=yes | ||
| 14 | + # AUTH_HEIMDAL_GSSAPI_PC=heimdal-gssapi | ||
| 15 | + # AUTH_HEIMDAL_GSSAPI_PC=heimdal-gssapi heimdal-krb5 | ||
| @@ -0,0 +1,11 @@ | |||
| 1 | +-----BEGIN PGP SIGNATURE----- | ||
| 2 | + | ||
| 3 | +iQEzBAABCAAdFiEEqYbzpr1jd9hzCVjevOWMjOQfMt8FAmfigfYACgkQvOWMjOQf | ||
| 4 | +Mt+YCAf/QhseAiP/h2CtnE1dmxvdPmMWTA5F6jpE6WvgLs/uiOeFW2IyReOR2Qjm | ||
| 5 | ++fSGWkl5sDblOMSx/BCWnjXV7dkIGTBknQXln0/zU2yn8Yru6KIwoDa0mGfIbsny | ||
| 6 | +JyQCqyLZJYYcj+msF9ZUjPFS9pv6HNBHwgXM5pqv1dIZfD273K8dccO91IVB4fI3 | ||
| 7 | +ODztfHRcPEWU4RrxMVfSiR67+X9Ej0haVlW5GbvRa75wzLMOF/DyU1nXwVkMOyML | ||
| 8 | +C2WfwmIYdQcoTq/WujxZrpAC9LnAKcbK+eqaGB7iz0mtNu3wWCKfBTp0/FF6N9V1 | ||
| 9 | +dfOUDOarLh5yRVTv+c5B3J/ogdQS+Q== | ||
| 10 | +=VmfJ | ||
| 11 | +-----END PGP SIGNATURE----- | ||
| @@ -1 +1 @@ | |||
| 1 | -D /run/clamd.exim 0750 exim exim - | 1 | +D /var/run/clamd.exim 0750 exim exim - |
| @@ -115,7 +115,7 @@ greylist_mail: | |||
| 115 | # to change it. | 115 | # to change it. |
| 116 | warn condition = ${if eq {$acl_m_greyexpiry}{} {1}} | 116 | warn condition = ${if eq {$acl_m_greyexpiry}{} {1}} |
| 117 | set acl_m_dontcare = ${lookup sqlite {INSERT INTO greylist \ | 117 | set acl_m_dontcare = ${lookup sqlite {INSERT INTO greylist \ |
| 118 | - VALUES ( '$acl_m_greyident', \ | 118 | + VALUES ( '${quote_sqlite:$acl_m_greyident}', \ |
| 119 | '${eval10:$tod_epoch+300}', \ | 119 | '${eval10:$tod_epoch+300}', \ |
| 120 | '$sender_host_address', \ | 120 | '$sender_host_address', \ |
| 121 | '${quote_sqlite:$sender_helo_name}' );}} | 121 | '${quote_sqlite:$sender_helo_name}' );}} |
| @@ -0,0 +1,132 @@ | |||
| 1 | +#!/bin/bash | ||
| 2 | +# | ||
| 3 | +# exim This shell script takes care of starting and stopping exim | ||
| 4 | +# | ||
| 5 | +# chkconfig: 2345 80 30 | ||
| 6 | +# description: Exim is a Mail Transport Agent, which is the program \ | ||
| 7 | +# that moves mail from one machine to another. | ||
| 8 | +# processname: exim | ||
| 9 | +# config: /etc/exim/exim.conf | ||
| 10 | +# pidfile: /var/run/exim.pid | ||
| 11 | + | ||
| 12 | +# Source function library. | ||
| 13 | +. /etc/init.d/functions | ||
| 14 | + | ||
| 15 | +# Source networking configuration. | ||
| 16 | +[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network | ||
| 17 | + | ||
| 18 | +# Source exim configureation. | ||
| 19 | +if [ -f /etc/sysconfig/exim ] ; then | ||
| 20 | + . /etc/sysconfig/exim | ||
| 21 | +else | ||
| 22 | + DAEMON=yes | ||
| 23 | + QUEUE=1h | ||
| 24 | +fi | ||
| 25 | + | ||
| 26 | +USER=${USER:=exim} | ||
| 27 | +GROUP=${GROUP:=exim} | ||
| 28 | + | ||
| 29 | +gen_cert() { | ||
| 30 | + if [ ! -f /etc/pki/tls/certs/exim.pem ] ; then | ||
| 31 | + umask 077 | ||
| 32 | + FQDN=`hostname` | ||
| 33 | + if [ "x${FQDN}" = "x" ]; then | ||
| 34 | + FQDN=localhost.localdomain | ||
| 35 | + fi | ||
| 36 | + echo -n $"Generating exim certificate: " | ||
| 37 | + cat << EOF | openssl req -new -x509 -days 365 -nodes \ | ||
| 38 | + -out /etc/pki/tls/certs/exim.pem \ | ||
| 39 | + -keyout /etc/pki/tls/private/exim.pem &>/dev/null | ||
| 40 | +-- | ||
| 41 | +SomeState | ||
| 42 | +SomeCity | ||
| 43 | +SomeOrganization | ||
| 44 | +SomeOrganizationalUnit | ||
| 45 | +${FQDN} | ||
| 46 | +root@${FQDN} | ||
| 47 | +EOF | ||
| 48 | + if [ $? -eq 0 ]; then | ||
| 49 | + success | ||
| 50 | + chown $USER:$GROUP /etc/pki/tls/{private,certs}/exim.pem | ||
| 51 | + chmod 600 /etc/pki/tls/{private,certs}/exim.pem | ||
| 52 | + else | ||
| 53 | + failure | ||
| 54 | + fi | ||
| 55 | + echo | ||
| 56 | + fi | ||
| 57 | +} | ||
| 58 | + | ||
| 59 | +start() { | ||
| 60 | + [ "$EUID" != "0" ] && exit 4 | ||
| 61 | + [ "${NETWORKING}" = "no" ] && exit 1 | ||
| 62 | + [ -f /usr/sbin/exim ] || exit 5 | ||
| 63 | + | ||
| 64 | + # check ownerships | ||
| 65 | + # do this by seeing if /var/log/exim/main.log exists and is | ||
| 66 | + # owned by exim - if owned by someone else we fix it up | ||
| 67 | + if [ -f /var/log/exim/main.log ] | ||
| 68 | + then | ||
| 69 | + if [ "exim" != "`ls -l /var/log/exim/main.log | awk '{print $4}'`" ] | ||
| 70 | + then | ||
| 71 | + chown -R $USER:$GROUP /var/log/exim /var/spool/exim | ||
| 72 | + fi | ||
| 73 | + fi | ||
| 74 | + | ||
| 75 | + # generate certificate if doesn't exist | ||
| 76 | + gen_cert | ||
| 77 | + | ||
| 78 | + # Start daemons. | ||
| 79 | + echo -n $"Starting exim: " | ||
| 80 | + daemon /usr/sbin/exim $([ "$DAEMON" = yes ] && echo -bd) \ | ||
| 81 | + $([ -n "$QUEUE" ] && echo -q$QUEUE) | ||
| 82 | + RETVAL=$? | ||
| 83 | + echo | ||
| 84 | + [ $RETVAL = 0 ] && touch /var/lock/subsys/exim | ||
| 85 | +} | ||
| 86 | + | ||
| 87 | +stop() { | ||
| 88 | + [ "$EUID" != "0" ] && exit 4 | ||
| 89 | + # Stop daemons. | ||
| 90 | + echo -n $"Shutting down exim: " | ||
| 91 | + killproc exim | ||
| 92 | + RETVAL=$? | ||
| 93 | + echo | ||
| 94 | + [ $RETVAL = 0 ] && rm -f /var/lock/subsys/exim | ||
| 95 | +} | ||
| 96 | + | ||
| 97 | +restart() { | ||
| 98 | + stop | ||
| 99 | + start | ||
| 100 | +} | ||
| 101 | + | ||
| 102 | +# See how we were called. | ||
| 103 | +case "$1" in | ||
| 104 | + start) | ||
| 105 | + start | ||
| 106 | + ;; | ||
| 107 | + stop) | ||
| 108 | + stop | ||
| 109 | + ;; | ||
| 110 | + restart) | ||
| 111 | + restart | ||
| 112 | + ;; | ||
| 113 | + reload|force-reload) | ||
| 114 | + status exim > /dev/null || exit 7 | ||
| 115 | + echo -n $"Reloading exim:" | ||
| 116 | + killproc exim -HUP | ||
| 117 | + echo | ||
| 118 | + ;; | ||
| 119 | + condrestart|try-restart) | ||
| 120 | + status exim > /dev/null || exit 0 | ||
| 121 | + restart | ||
| 122 | + ;; | ||
| 123 | + status) | ||
| 124 | + status exim | ||
| 125 | + ;; | ||
| 126 | + *) | ||
| 127 | + echo $"Usage: $0 {start|stop|restart|reload|force-reload|status|condrestart|try-restart}" | ||
| 128 | + exit 2 | ||
| 129 | +esac | ||
| 130 | + | ||
| 131 | +exit $RETVAL | ||
| 132 | + | ||