392e7d9
diff --git a/scripts/Configure-Makefile b/scripts/Configure-Makefile
35982dc
index 7e0bf38..c97ccec 100755
1f50e55
--- a/scripts/Configure-Makefile
1f50e55
+++ b/scripts/Configure-Makefile
35982dc
@@ -297,7 +297,7 @@ if [ "${EXIM_PERL}" != "" ] ; then
David Woodhouse 40aaa85
 
David Woodhouse 40aaa85
   mv $mft $mftt
David Woodhouse 40aaa85
   echo "PERL_CC=`$PERL_COMMAND -MConfig -e 'print $Config{cc}'`" >>$mft
David Woodhouse 40aaa85
-  echo "PERL_CCOPTS=`$PERL_COMMAND -MExtUtils::Embed -e ccopts`" >>$mft
David Woodhouse 40aaa85
+  echo "PERL_CCOPTS=`$PERL_COMMAND -MExtUtils::Embed -e ccopts` \$(CFLAGS)" >>$mft
David Woodhouse 40aaa85
   echo "PERL_LIBS=`$PERL_COMMAND -MExtUtils::Embed -e ldopts`" >>$mft
David Woodhouse 40aaa85
   echo "" >>$mft
David Woodhouse 40aaa85
   cat $mftt >> $mft
392e7d9
diff --git a/src/EDITME b/src/EDITME
64667ef
index cbb0805..a42cd6f 100644
1f50e55
--- a/src/EDITME
1f50e55
+++ b/src/EDITME
1f50e55
@@ -98,7 +98,7 @@
cda8379
 # /usr/local/sbin. The installation script will try to create this directory,
cda8379
 # and any superior directories, if they do not exist.
cda8379
 
cda8379
-BIN_DIRECTORY=/usr/exim/bin
cda8379
+BIN_DIRECTORY=/usr/sbin
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
1f50e55
@@ -114,7 +114,7 @@ BIN_DIRECTORY=/usr/exim/bin
cda8379
 # don't exist. It will also install a default runtime configuration if this
cda8379
 # file does not exist.
cda8379
 
cda8379
-CONFIGURE_FILE=/usr/exim/configure
cda8379
+CONFIGURE_FILE=/etc/exim/exim.conf
cda8379
 
cda8379
 # It is possible to specify a colon-separated list of files for CONFIGURE_FILE.
cda8379
 # In this case, Exim will use the first of them that exists when it is run.
1f50e55
@@ -131,7 +131,7 @@ CONFIGURE_FILE=/usr/exim/configure
David Woodhouse 40aaa85
 # deliveries. (Local deliveries run as various non-root users, typically as the
David Woodhouse 40aaa85
 # owner of a local mailbox.) Specifying these values as root is not supported.
cda8379
 
cda8379
-EXIM_USER=
cda8379
+EXIM_USER=93
cda8379
 
cda8379
 # If you specify EXIM_USER as a name, this is looked up at build time, and the
cda8379
 # uid number is built into the binary. However, you can specify that this
1f50e55
@@ -152,7 +152,7 @@ EXIM_USER=
cda8379
 # for EXIM_USER (e.g. EXIM_USER=exim), you don't need to set EXIM_GROUP unless
cda8379
 # you want to use a group other than the default group for the given user.
cda8379
 
cda8379
-# EXIM_GROUP=
cda8379
+EXIM_GROUP=93
cda8379
 
cda8379
 # Many sites define a user called "exim", with an appropriate default group,
cda8379
 # and use
35e86f7
@@ -237,7 +237,7 @@ TRANSPORT_SMTP=yes
cda8379
 # This one is special-purpose, and commonly not required, so it is not
cda8379
 # included by default.
cda8379
 
cda8379
-# TRANSPORT_LMTP=yes
cda8379
+TRANSPORT_LMTP=yes
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
35e86f7
@@ -246,9 +246,9 @@ TRANSPORT_SMTP=yes
cda8379
 # MBX, is included only when requested. If you do not know what this is about,
cda8379
 # leave these settings commented out.
cda8379
 
cda8379
-# SUPPORT_MAILDIR=yes
cda8379
-# SUPPORT_MAILSTORE=yes
cda8379
-# SUPPORT_MBX=yes
cda8379
+SUPPORT_MAILDIR=yes
cda8379
+SUPPORT_MAILSTORE=yes
cda8379
+SUPPORT_MBX=yes
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
35e86f7
@@ -306,20 +306,22 @@ LOOKUP_DBM=yes
cda8379
 LOOKUP_LSEARCH=yes
b1c3dc2
 LOOKUP_DNSDB=yes
cda8379
 
cda8379
-# LOOKUP_CDB=yes
cda8379
-# LOOKUP_DSEARCH=yes
cda8379
+LOOKUP_CDB=yes
cda8379
+LOOKUP_DSEARCH=yes
cda8379
 # LOOKUP_IBASE=yes
cda8379
-# LOOKUP_LDAP=yes
be4f17c
-# LOOKUP_MYSQL=yes
35e86f7
-# LOOKUP_MYSQL_PC=mariadb
be4f17c
-# LOOKUP_NIS=yes
be4f17c
-# LOOKUP_NISPLUS=yes
cda8379
+LOOKUP_LDAP=yes
cda8379
+LDAP_LIB_TYPE=OPENLDAP2
37b90b2
+LOOKUP_LIBS=-lldap -llber -lsqlite3
37b90b2
+LOOKUP_MYSQL=2
35e86f7
+LOOKUP_MYSQL_PC=mariadb
cda8379
+LOOKUP_NIS=yes
cda8379
+LOOKUP_NISPLUS=yes
cda8379
 # LOOKUP_ORACLE=yes
cda8379
-# LOOKUP_PASSWD=yes
ebb629c
-# LOOKUP_PGSQL=yes
be4f17c
+LOOKUP_PASSWD=yes
37b90b2
+LOOKUP_PGSQL=2
37b90b2
+LOOKUP_PGSQL_LIBS=-lpq
a4234ab
 # LOOKUP_REDIS=yes
a4234ab
-# LOOKUP_SQLITE=yes
a4234ab
-# LOOKUP_SQLITE_PC=sqlite3
aac745b
+LOOKUP_SQLITE=yes
cda8379
 # LOOKUP_WHOSON=yes
cda8379
 
be4f17c
 # These two settings are obsolete; all three lookups are compiled when
35982dc
@@ -402,7 +404,7 @@ EXIM_MONITOR=eximon.bin
cda8379
 # and the MIME ACL. Please read the documentation to learn more about these
cda8379
 # features.
cda8379
 
cda8379
-# WITH_CONTENT_SCAN=yes
cda8379
+WITH_CONTENT_SCAN=yes
cda8379
 
35982dc
 # If you have content scanning you may wish to only include some of the scanner
35982dc
 # interfaces.  Uncomment any of these lines to remove that code.
64667ef
@@ -595,7 +597,7 @@ FIXED_NEVER_USERS=root
David Woodhouse 40aaa85
 # CONFIGURE_OWNER setting, to specify a configuration file which is listed in
David Woodhouse 40aaa85
 # the TRUSTED_CONFIG_LIST file, then root privileges are not dropped by Exim.
David Woodhouse 40aaa85
 
David Woodhouse 40aaa85
-# TRUSTED_CONFIG_LIST=/usr/exim/trusted_configs
David Woodhouse 40aaa85
+TRUSTED_CONFIG_LIST=/etc/exim/trusted-configs
David Woodhouse 40aaa85
 
David Woodhouse 40aaa85
 
cda8379
 #------------------------------------------------------------------------------
64667ef
@@ -640,17 +642,14 @@ FIXED_NEVER_USERS=root
cda8379
 # included in the Exim binary. You will then need to set up the run time
cda8379
 # configuration to make use of the mechanism(s) selected.
cda8379
 
cda8379
-# AUTH_CRAM_MD5=yes
cda8379
-# AUTH_CYRUS_SASL=yes
d62f19c
-# AUTH_DOVECOT=yes
dcac391
-# AUTH_GSASL=yes
dcac391
-# AUTH_GSASL_PC=libgsasl
dcac391
-# AUTH_HEIMDAL_GSSAPI=yes
dcac391
-# AUTH_HEIMDAL_GSSAPI_PC=heimdal-gssapi
392e7d9
-# AUTH_HEIMDAL_GSSAPI_PC=heimdal-gssapi heimdal-krb5
cda8379
-# AUTH_PLAINTEXT=yes
cda8379
-# AUTH_SPA=yes
1329eea
-# AUTH_TLS=yes
cda8379
+AUTH_CRAM_MD5=yes
cda8379
+AUTH_CYRUS_SASL=yes
d62f19c
+AUTH_DOVECOT=yes
dcac391
+AUTH_GSASL=yes
dcac391
+AUTH_GSASL_PC=libgsasl
cda8379
+AUTH_PLAINTEXT=yes
cda8379
+AUTH_SPA=yes
1329eea
+AUTH_TLS=yes
cda8379
 
392e7d9
 # Heimdal through 1.5 required pkg-config 'heimdal-gssapi'; Heimdal 7.1
392e7d9
 # requires multiple pkg-config files to work with Exim, so the second example
64667ef
@@ -674,7 +673,7 @@ FIXED_NEVER_USERS=root
cda8379
 # one that is set in the headers_charset option. The default setting is
cda8379
 # defined by this setting:
cda8379
 
cda8379
-HEADERS_CHARSET="ISO-8859-1"
cda8379
+HEADERS_CHARSET="UTF-8"
cda8379
 
cda8379
 # If you are going to make use of $header_xxx expansions in your configuration
cda8379
 # file, or if your users are going to use them in filter files, and the normal
64667ef
@@ -694,7 +693,7 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # the Sieve filter support. For those OS where iconv() is known to be installed
cda8379
 # as standard, the file in OS/Makefile-xxxx contains
cda8379
 #
cda8379
-# HAVE_ICONV=yes
cda8379
+HAVE_ICONV=yes
cda8379
 #
cda8379
 # If you are not using one of those systems, but have installed iconv(), you
cda8379
 # need to uncomment that line above. In some cases, you may find that iconv()
64667ef
@@ -763,11 +762,11 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # leave these settings commented out.
cda8379
 
cda8379
 # This setting is required for any TLS support (either OpenSSL or GnuTLS)
cda8379
-# SUPPORT_TLS=yes
cda8379
+SUPPORT_TLS=yes
cda8379
 
dcac391
 # Uncomment one of these settings if you are using OpenSSL; pkg-config vs not
dcac391
-# USE_OPENSSL_PC=openssl
cda8379
-# TLS_LIBS=-lssl -lcrypto
cda8379
+TLS_INCLUDE=-I/usr/kerberos/include
cda8379
+TLS_LIBS=-lssl -lcrypto
cda8379
 
dcac391
 # Uncomment the first and either the second or the third of these if you
dcac391
 # are using GnuTLS.  If you have pkg-config, then the second, else the third.
64667ef
@@ -839,7 +838,7 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # Once you have done this, "make install" will build the info files and
cda8379
 # install them in the directory you have defined.
cda8379
 
cda8379
-# INFO_DIRECTORY=/usr/share/info
cda8379
+INFO_DIRECTORY=/usr/share/info
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
64667ef
@@ -852,7 +851,7 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # %s. This will be replaced by one of the strings "main", "panic", or "reject"
cda8379
 # to form the final file names. Some installations may want something like this:
cda8379
 
cda8379
-# LOG_FILE_PATH=/var/log/exim_%slog
cda8379
+LOG_FILE_PATH=/var/log/exim/%s.log
cda8379
 
cda8379
 # which results in files with names /var/log/exim_mainlog, etc. The directory
cda8379
 # in which the log files are placed must exist; Exim does not try to create
64667ef
@@ -924,7 +923,7 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # (version 5.004 or later) installed, set EXIM_PERL to perl.o. Using embedded
cda8379
 # Perl costs quite a lot of resources. Only do this if you really need it.
cda8379
 
cda8379
-# EXIM_PERL=perl.o
cda8379
+EXIM_PERL=perl.o
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
64667ef
@@ -934,7 +933,7 @@ ZCAT_COMMAND=/usr/bin/zcat
d62f19c
 # that the local_scan API is made available by the linker. You may also need
d62f19c
 # to add -ldl to EXTRALIBS so that dlopen() is available to Exim.
d62f19c
 
d62f19c
-# EXPAND_DLFUNC=yes
d62f19c
+EXPAND_DLFUNC=yes
d62f19c
 
d62f19c
 
d62f19c
 #------------------------------------------------------------------------------
64667ef
@@ -944,7 +943,7 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # support, which is intended for use in conjunction with the SMTP AUTH
cda8379
 # facilities, is included only when requested by the following setting:
cda8379
 
cda8379
-# SUPPORT_PAM=yes
cda8379
+SUPPORT_PAM=yes
cda8379
 
cda8379
 # You probably need to add -lpam to EXTRALIBS, and in some releases of
cda8379
 # GNU/Linux -ldl is also needed.
64667ef
@@ -1052,7 +1051,7 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # group. Once you have installed saslauthd, you should arrange for it to be
cda8379
 # started by root at boot time.
cda8379
 
cda8379
-# CYRUS_SASLAUTHD_SOCKET=/var/state/saslauthd/mux
cda8379
+CYRUS_SASLAUTHD_SOCKET=/var/run/saslauthd/mux
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
64667ef
@@ -1066,8 +1065,8 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # library for TCP wrappers, so you probably need something like this:
cda8379
 #
0b307bc
 # USE_TCP_WRAPPERS=yes
cda8379
-# CFLAGS=-O -I/usr/local/include
cda8379
-# EXTRALIBS_EXIM=-L/usr/local/lib -lwrap
be4f17c
+CFLAGS+=$(RPM_OPT_FLAGS) $(PIE)
0b307bc
+EXTRALIBS_EXIM=-lpam -ldl -export-dynamic -rdynamic
cda8379
 #
cda8379
 # but of course there may need to be other things in CFLAGS and EXTRALIBS_EXIM
cda8379
 # as well.
64667ef
@@ -1119,7 +1118,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases
cda8379
 # is "yes", as well as supporting line editing, a history of input lines in the
cda8379
 # current run is maintained.
cda8379
 
cda8379
-# USE_READLINE=yes
cda8379
+USE_READLINE=yes
cda8379
 
d62f19c
 # You may need to add -ldl to EXTRALIBS when you set USE_READLINE=yes.
cda8379
 # Note that this option adds to the size of the Exim binary, because the
64667ef
@@ -1136,7 +1135,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases
dcac391
 #------------------------------------------------------------------------------
dcac391
 # Uncomment this setting to include IPv6 support.
dcac391
 
dcac391
-# HAVE_IPV6=yes
cda8379
+HAVE_IPV6=yes
cda8379
 
cda8379
 ###############################################################################
cda8379
 #              THINGS YOU ALMOST NEVER NEED TO MENTION                        #
64667ef
@@ -1157,13 +1156,13 @@ SYSTEM_ALIASES_FILE=/etc/aliases
cda8379
 # haven't got Perl, Exim will still build and run; you just won't be able to
cda8379
 # use those utilities.
cda8379
 
cda8379
-# CHOWN_COMMAND=/usr/bin/chown
cda8379
-# CHGRP_COMMAND=/usr/bin/chgrp
b1c3dc2
-# CHMOD_COMMAND=/usr/bin/chmod
cda8379
-# MV_COMMAND=/bin/mv
cda8379
-# RM_COMMAND=/bin/rm
b1c3dc2
-# TOUCH_COMMAND=/usr/bin/touch
cda8379
-# PERL_COMMAND=/usr/bin/perl
1f50e55
+CHOWN_COMMAND=/usr/bin/chown
1f50e55
+CHGRP_COMMAND=/usr/bin/chgrp
1f50e55
+CHMOD_COMMAND=/usr/bin/chmod
1f50e55
+MV_COMMAND=/usr/bin/mv
1f50e55
+RM_COMMAND=/usr/bin/rm
1f50e55
+TOUCH_COMMAND=/usr/bin/touch
cda8379
+PERL_COMMAND=/usr/bin/perl
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
64667ef
@@ -1365,7 +1364,7 @@ EXIM_TMPDIR="/tmp"
cda8379
 # (process id) to a file so that it can easily be identified. The path of the
cda8379
 # file can be specified here. Some installations may want something like this:
cda8379
 
cda8379
-# PID_FILE_PATH=/var/lock/exim.pid
cda8379
+PID_FILE_PATH=/var/run/exim.pid
cda8379
 
cda8379
 # If PID_FILE_PATH is not defined, Exim writes a file in its spool directory
cda8379
 # using the name "exim-daemon.pid".