# hcoop-change: List of domains that accept mail from local users.
# Mail sent to other domains we manage will be transformed into a
# local address by /etc/aliases.
-domainlist unix_domains = deleuze.hcoop.net:mire.hcoop.net:localhost
+domainlist unix_domains = hcoop.net:deleuze.hcoop.net:mire.hcoop.net:outpost.hcoop.net:localhost
# List of sender networks (IP addresses) to _unconditionally_ relay
# _for_. If you intend to be SMTP AUTH server, you do not need to enter
# SMTP Banner. The example includes the Debian version in the SMTP dialog
# MAIN_SMTP_BANNER = "${primary_hostname} ESMTP Exim ${version_number} (Debian package DEBCONFpackageversionDEBCONF) ${tod_full}"
# smtp_banner = $smtp_active_hostname ESMTP Exim $version_number $tod_full
+
+
+# hcoop-change: raise limit for incoming SMTP connections
+smtp_accept_max = 45
+
+# hcoop-change: expire retry data after a single day
+retry_data_expire = 1d
+
+# hcoop-change: don't penalize hosts past 4 hours
+retry_interval_max = 4h
# effective retry-time depends on the frequenzy of queue-running, too.
# See QUEUEINTERVAL in /etc/default/exim4.
+# hcoop-change: Customize all of this to not penalize local users so
+# much for timeouts.
+
# Address or Domain Error Retries
# ----------------- ----- -------
-* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
-
+# Local users who might have temporary AFS-related issues
+localhost * F,4d,1m
+hcoop.net * F,4d,1m
+# Deal with greylisting
+megacz.com * F,4d,3m
+yahoo.com * F,4d,3m
+# Defaults
+* * F,4h,10m; G,16h,1h,1.5; F,4d,6h
--- /dev/null
+
+# hcoop-change: Deal with users who are causing trouble to the mail
+# system.
+
+# trouble_users_router:
+# debug_print = "R: trouble_users for $local_part@$domain"
+# driver = accept
+# domains = +unix_domains
+# condition = "${if eq {$local_part}{omry} {1}{0}}"
+# local_part_prefix = real-
+# check_local_user
+# transport = trouble_users
# forwarding generates a direct delivery to a directory, or a file, or to a
# pipe, or sets up an auto-reply, respectively.
-# hcoop-change: Use unix_domains rather than local_domains. Also, use
-# .public/.forward rather than .forward.
+# hcoop-change: Use unix_domains rather than local_domains. Use
+# .public/.forward rather than .forward. Do not verify the owner and
+# group of the .forward file.
userforward:
debug_print = "R: userforward for $local_part@$domain"
driver = redirect
domains = +unix_domains
check_local_user
+ check_owner = false
+ check_group = false
file = $home/.public/.forward
require_files = $local_part:$home/.public/.forward
no_verify
driver = pipe
command = /usr/sbin/exim4 -oMr spam-scanned -bS
use_bsmtp
- transport_filter = /usr/bin/spamc
+ transport_filter = /usr/bin/spamc -x
home_directory = "/tmp/exim4"
current_directory = "/tmp/exim4"
user = Debian-exim
group = Debian-exim
- return_fail_output
+ return_fail_output = true
+ return_path_add = false
+ log_fail_output = true
+ temp_errors = *
+ timeout = 5m
+ timeout_defer = true
message_prefix =
message_suffix =
headers_remove = X-Spam-Flag:X-Spam-Status:X-Spam-Level
#
# hcoop-change: uncommented this
current_directory = /
+ # hcoop-change: Try 20 times rather than 10 before deferring.
+ maildir_retries = 20
--- /dev/null
+
+# This transport is used for handling deliveries directly to files that are
+# generated by aliasing or forwarding.
+#
+# hcoop-change: Add bogus group line to make sure get-token gets executed
+trouble_users:
+ debug_print = "T: trouble_users for $local_part@$domain"
+ driver = appendfile
+ group = mail
+ file = /var/tmp/frozen/${local_part}
+ delivery_date_add
+ envelope_to_add
+ return_path_add
+