core/exim/exim-config.patch

198 lines
6.4 KiB
Diff
Raw Normal View History

2022-01-17 18:19:07 +01:00
diff -Nru exim-4.95.orig/src/EDITME exim-4.95/src/EDITME
--- exim-4.95.orig/src/EDITME 2022-01-17 18:08:22.578366880 +0100
+++ exim-4.95/src/EDITME 2022-01-17 18:12:07.286282151 +0100
@@ -73,7 +73,7 @@
# this would be wanted.
###############################################################################
-
+CFLAGS=#CFLAGS#
###############################################################################
# THESE ARE THINGS YOU MUST SPECIFY #
@@ -99,7 +99,7 @@
# /usr/local/sbin. The installation script will try to create this directory,
# and any superior directories, if they do not exist.
-BIN_DIRECTORY=/usr/exim/bin
+BIN_DIRECTORY=/usr/sbin
#------------------------------------------------------------------------------
@@ -115,7 +115,7 @@
# don't exist. It will also install a default runtime configuration if this
# file does not exist.
-CONFIGURE_FILE=/usr/exim/configure
+CONFIGURE_FILE=/etc/exim/exim.conf
# It is possible to specify a colon-separated list of files for CONFIGURE_FILE.
# In this case, Exim will use the first of them that exists when it is run.
@@ -132,7 +132,7 @@
# deliveries. (Local deliveries run as various non-root users, typically as the
# owner of a local mailbox.) Specifying these values as root is not supported.
-EXIM_USER=
+EXIM_USER=ref:mail
# If you specify EXIM_USER as a name, this is looked up at build time, and the
# uid number is built into the binary. However, you can specify that this
@@ -210,10 +210,10 @@
2022-01-17 18:19:07 +01:00
# If you are building with TLS, the library configuration must be done:
2019-12-09 16:03:36 +01:00
# Uncomment this if you are using OpenSSL
-# USE_OPENSSL=yes
+USE_OPENSSL=yes
# Uncomment one of these settings if you are using OpenSSL; pkg-config vs not
# and an optional location.
-# USE_OPENSSL_PC=openssl
+USE_OPENSSL_PC=openssl
# TLS_LIBS=-lssl -lcrypto
# TLS_LIBS=-L/usr/local/openssl/lib -lssl -lcrypto
2022-01-17 18:19:07 +01:00
@@ -349,7 +349,7 @@
# MBX, is included only when requested. If you do not know what this is about,
# leave these settings commented out.
-# SUPPORT_MAILDIR=yes
+SUPPORT_MAILDIR=yes
# SUPPORT_MAILSTORE=yes
# SUPPORT_MBX=yes
2022-01-17 18:19:07 +01:00
@@ -409,8 +409,8 @@
LOOKUP_LSEARCH=yes
2009-11-24 18:04:27 +01:00
LOOKUP_DNSDB=yes
-# LOOKUP_CDB=yes
-# LOOKUP_DSEARCH=yes
2009-11-24 18:04:27 +01:00
+LOOKUP_CDB=yes
+LOOKUP_DSEARCH=yes
# LOOKUP_IBASE=yes
2019-12-09 16:03:36 +01:00
# LOOKUP_JSON=yes
# LOOKUP_LDAP=yes
2022-01-17 18:19:07 +01:00
@@ -764,7 +764,7 @@
# included in the Exim binary. You will then need to set up the run time
# configuration to make use of the mechanism(s) selected.
-# AUTH_CRAM_MD5=yes
+AUTH_CRAM_MD5=yes
# AUTH_CYRUS_SASL=yes
2006-12-20 17:56:05 +01:00
# AUTH_DOVECOT=yes
2019-12-09 16:03:36 +01:00
# AUTH_EXTERNAL=yes
2022-01-17 18:19:07 +01:00
@@ -773,7 +773,7 @@
2012-05-31 16:27:26 +02:00
# AUTH_HEIMDAL_GSSAPI=yes
# AUTH_HEIMDAL_GSSAPI_PC=heimdal-gssapi
2017-03-09 14:11:51 +01:00
# AUTH_HEIMDAL_GSSAPI_PC=heimdal-gssapi heimdal-krb5
-# AUTH_PLAINTEXT=yes
+AUTH_PLAINTEXT=yes
# AUTH_SPA=yes
2015-07-27 09:35:06 +02:00
# AUTH_TLS=yes
2022-01-17 18:19:07 +01:00
@@ -911,7 +911,7 @@
# %s. This will be replaced by one of the strings "main", "panic", or "reject"
# to form the final file names. Some installations may want something like this:
-# LOG_FILE_PATH=/var/log/exim_%slog
+LOG_FILE_PATH=/var/log/exim/exim_%slog
# which results in files with names /var/log/exim_mainlog, etc. The directory
# in which the log files are placed must exist; Exim does not try to create
2022-01-17 18:19:07 +01:00
@@ -960,7 +960,7 @@
# files. Both the name of the command and the suffix that it adds to files
# need to be defined here. See also the EXICYCLOG_MAX configuration.
-COMPRESS_COMMAND=/usr/bin/gzip
+COMPRESS_COMMAND=/bin/gzip
COMPRESS_SUFFIX=gz
2022-01-17 18:19:07 +01:00
@@ -975,7 +975,7 @@
2015-07-27 09:35:06 +02:00
# ZCAT_COMMAND=zcat
#
# Or specify the full pathname:
-ZCAT_COMMAND=/usr/bin/zcat
+ZCAT_COMMAND=/bin/zcat
#------------------------------------------------------------------------------
2015-07-27 09:35:06 +02:00
# Compiling in support for embedded Perl: If you want to be able to
2022-01-17 18:19:07 +01:00
@@ -1126,7 +1126,7 @@
#
2015-06-22 14:15:11 +02:00
# USE_TCP_WRAPPERS=yes
# CFLAGS=-O -I/usr/local/include
-# EXTRALIBS_EXIM=-L/usr/local/lib -lwrap
2015-06-22 14:15:11 +02:00
+# EXTRALIBS_EXIM=-lwrap
#
# but of course there may need to be other things in CFLAGS and EXTRALIBS_EXIM
# as well.
2022-01-17 18:19:07 +01:00
@@ -1159,7 +1159,7 @@
# aliases). The following setting can be changed to specify a different
# location for the system alias file.
-SYSTEM_ALIASES_FILE=/etc/aliases
+SYSTEM_ALIASES_FILE=/etc/exim/aliases
#------------------------------------------------------------------------------
2022-01-17 18:19:07 +01:00
@@ -1195,7 +1195,7 @@
2016-03-13 12:45:20 +01:00
#------------------------------------------------------------------------------
# Uncomment this setting to include IPv6 support.
-# HAVE_IPV6=yes
+HAVE_IPV6=yes
###############################################################################
# THINGS YOU ALMOST NEVER NEED TO MENTION #
2022-01-17 18:19:07 +01:00
@@ -1216,13 +1216,13 @@
# haven't got Perl, Exim will still build and run; you just won't be able to
# use those utilities.
-# CHOWN_COMMAND=/usr/bin/chown
-# CHGRP_COMMAND=/usr/bin/chgrp
2009-11-16 11:58:40 +01:00
-# CHMOD_COMMAND=/usr/bin/chmod
-# MV_COMMAND=/bin/mv
-# RM_COMMAND=/bin/rm
2009-11-16 11:58:40 +01:00
-# TOUCH_COMMAND=/usr/bin/touch
-# PERL_COMMAND=/usr/bin/perl
+CHOWN_COMMAND=/bin/chown
+CHGRP_COMMAND=/bin/chgrp
2009-11-16 11:58:40 +01:00
+CHMOD_COMMAND=/bin/chmod
+MV_COMMAND=/bin/mv
+RM_COMMAND=/bin/rm
2009-11-16 11:58:40 +01:00
+TOUCH_COMMAND=/bin/touch
+PERL_COMMAND=/usr/bin/perl
2009-11-16 11:58:40 +01:00
#------------------------------------------------------------------------------
2022-01-17 18:19:07 +01:00
@@ -1424,7 +1424,7 @@
# (process id) to a file so that it can easily be identified. The path of the
# file can be specified here. Some installations may want something like this:
-# PID_FILE_PATH=/var/lock/exim.pid
2022-01-17 18:19:07 +01:00
+PID_FILE_PATH=/run/exim.pid
# If PID_FILE_PATH is not defined, Exim writes a file in its spool directory
# using the name "exim-daemon.pid".
2022-01-17 18:19:07 +01:00
diff -Nru exim-4.95.orig/src/configure.default exim-4.95/src/configure.default
--- exim-4.95.orig/src/configure.default 2022-01-17 18:08:22.578366880 +0100
+++ exim-4.95/src/configure.default 2022-01-17 18:10:47.748198676 +0100
2019-02-11 17:06:36 +01:00
@@ -67,7 +67,7 @@
# +local_domains, +relay_to_domains, and +relay_from_hosts, respectively. They
# are all colon-separated lists:
-domainlist local_domains = @
+domainlist local_domains = @ : localhost
domainlist relay_to_domains =
2013-10-29 16:42:26 +01:00
hostlist relay_from_hosts = localhost
# (We rely upon hostname resolution working for localhost, because the default
2019-02-11 17:06:36 +01:00
@@ -165,8 +165,8 @@
# need the first setting, or in separate files, in which case you need both
# options.
-# tls_certificate = /etc/ssl/exim.crt
-# tls_privatekey = /etc/ssl/exim.pem
+tls_certificate = /etc/ssl/certs/exim.crt
+tls_privatekey = /etc/ssl/keys/exim.key
2017-12-20 16:57:49 +01:00
# For OpenSSL, prefer EC- over RSA-authenticated ciphers
2022-01-17 18:19:07 +01:00
.ifdef _HAVE_OPENSSL