freebsd-ports/mail/exim/files/patch-src::configure.default
Sheldon Hearn a0d0a1e903 1) Fix build for the WITHOUT_ALT_CONFIG_PREFIX case.
2) Allow the operator to override exim user and group with EXIM_USER and
   EXIM_GROUP.  This was made possible by the introduction of runtime
   resolution of the exim_user UID and the exim_group GID, new in
   exim-4.30.

Reported by:	Phil Pennock <pdp@nl.demon.net>
2004-01-12 10:56:41 +00:00

51 lines
1.4 KiB
Text

--- src/configure.default.orig Mon May 12 15:39:18 2003
+++ src/configure.default Thu Jun 12 16:40:25 2003
@@ -56,7 +56,7 @@
domainlist local_domains = @
domainlist relay_to_domains =
-hostlist relay_from_hosts = 127.0.0.1
+hostlist relay_from_hosts = localhost
# Most straightforward access control requirements can be obtained by
# appropriate settings of the above options. In more complicated situations, you
@@ -147,6 +147,8 @@
# were a normal user. This isn't usually a problem, as most sites have an alias
# for root that redirects such mail to a human administrator.
+exim_user = XX_EXIM_USER_XX
+exim_group = XX_EXIM_GROUP_XX
never_users = root
@@ -378,7 +380,8 @@
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{SYSTEM_ALIASES_FILE}}
-# user = exim
+ user = XX_EXIM_USER_XX
+ group = XX_EXIM_GROUP_XX
file_transport = address_file
pipe_transport = address_pipe
@@ -412,6 +415,7 @@
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
+ condition = ${if exists{$home/.forward} {yes} {no} }
# This router matches local user mailboxes.
@@ -455,8 +459,10 @@
delivery_date_add
envelope_to_add
return_path_add
-# group = mail
-# mode = 0660
+ group = XX_EXIM_GROUP_XX
+ user = $local_part
+ mode = 0660
+ no_mode_fail_narrower
# This transport is used for handling pipe deliveries generated by alias or