From: root Date: Thu, 21 Jun 2007 02:54:11 +0000 (-0400) Subject: * apache2/conf.d/home.conf: Remove, since this duplicates X-Git-Url: https://git.hcoop.net/hcoop/zz_old/config/exim4-hopper.git/commitdiff_plain/11dd947c3819119a9738eab87be2ee05b60b6e61 * apache2/conf.d/home.conf: Remove, since this duplicates sites-available/default. * apache2/sites-available/default: Migrate, but comment out, some settings. * default/hdparm, default/hotplug: Remove, since no longer installed. * exim4/conf.d/main/01_exim4-config_listmacrosdefs: Add new domainlist unix_domains, which are the only domains that we permit delivery of local mail to, after resolving aliases. * exim4/conf.d/router/300_exim4-config_real_local (real_local): Use unix_domains. * exim4/conf.d/router/400_exim4-config_system_aliases (system_aliases): Look up both local_part and domain, not just local_part. * exim4/conf.d/router/550_exim4-get_token: Remove, since it isn't used. * exim4/conf.d/router/600_exim4-config_userforward (userforward): Use unix_domains. * exim4/conf.d/router/700_exim4-config_procmail (procmail): Ditto. * exim4/conf.d/router/800_exim4-config_maildrop (maildrop): Ditto. * exim4/conf.d/router/900_exim4-config_local_user (local_user): Ditto. * init.d/courier-authdaemon: Make sure this never runs. * init.d/courier-imap, init.d/courier-imap-ssl, init.d/courier-pop: init.d/courier-pop-ssl: Ditto. * mailman: Record file permissions. Yay, git! * pam.d/common-account: Add emergency line. * pam.d/common-auth: Ditto. * spamassassin/local.cf: Set report_safe to 0 to get rid of pointless report. * sudoers: Temporarily set us to ADMIN_NOPASS. --- diff --git a/conf.d/main/01_exim4-config_listmacrosdefs b/conf.d/main/01_exim4-config_listmacrosdefs index 0a792ae..5693c98 100644 --- a/conf.d/main/01_exim4-config_listmacrosdefs +++ b/conf.d/main/01_exim4-config_listmacrosdefs @@ -63,6 +63,11 @@ DC_visiblename=DEBCONFvisiblenameDEBCONF #.endif #domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS +# 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: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 # anything here. diff --git a/conf.d/router/300_exim4-config_real_local b/conf.d/router/300_exim4-config_real_local index 5c5404b..249920c 100644 --- a/conf.d/router/300_exim4-config_real_local +++ b/conf.d/router/300_exim4-config_real_local @@ -6,10 +6,12 @@ # processing. This can be used to inform a user of a broken .forward # file, for example. The userforward router does this. +# hcoop-change: Use unix_domains rather than local_domains. + real_local: debug_print = "R: real_local for $local_part@$domain" driver = accept - domains = +local_domains + domains = +unix_domains local_part_prefix = real- check_local_user transport = LOCAL_DELIVERY diff --git a/conf.d/router/400_exim4-config_system_aliases b/conf.d/router/400_exim4-config_system_aliases index f5f5f1c..2b9afc5 100644 --- a/conf.d/router/400_exim4-config_system_aliases +++ b/conf.d/router/400_exim4-config_system_aliases @@ -20,13 +20,16 @@ # /usr/share/doc/exim4-base/README.Debian.gz # for explanation and some workarounds. +# hcoop-change: Look up the local_part and domain, not just the +# local_part. + system_aliases: debug_print = "R: system_aliases for $local_part@$domain" driver = redirect domains = +local_domains allow_fail allow_defer - data = ${lookup{$local_part}lsearch{/etc/aliases}} + data = ${lookup{$local_part@$domain}lsearch{/etc/aliases}} .ifdef SYSTEM_ALIASES_USER user = SYSTEM_ALIASES_USER .endif diff --git a/conf.d/router/550_exim4-get_token b/conf.d/router/550_exim4-get_token deleted file mode 100644 index b297982..0000000 --- a/conf.d/router/550_exim4-get_token +++ /dev/null @@ -1,14 +0,0 @@ -# hcoop-change: acquire AFS token for the user -- the condition -# statement is executed for side-effects only, and nothing should ever -# be accepted by this router -# -# Currently disabled in favor of getting the token during transport -- -# that is, after changing uid. - -# get_token: -# driver = accept -# domains = +local_domains -# condition = ${run{/etc/exim4/get-token ${local_part}}{0}{0}} -# transport = dev_null -# no_verify -# no_expn diff --git a/conf.d/router/600_exim4-config_userforward b/conf.d/router/600_exim4-config_userforward index eab0ff0..95784b6 100644 --- a/conf.d/router/600_exim4-config_userforward +++ b/conf.d/router/600_exim4-config_userforward @@ -18,10 +18,13 @@ # The four transports specified at the end are those that are used when # 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. + userforward: debug_print = "R: userforward for $local_part@$domain" driver = redirect - domains = +local_domains + domains = +unix_domains check_local_user file = $home/.forward require_files = $local_part:$home/.forward diff --git a/conf.d/router/700_exim4-config_procmail b/conf.d/router/700_exim4-config_procmail index 4909305..6e2edcb 100644 --- a/conf.d/router/700_exim4-config_procmail +++ b/conf.d/router/700_exim4-config_procmail @@ -1,8 +1,10 @@ +# hcoop-change: Use unix_domains rather than local_domains. + procmail: debug_print = "R: procmail for $local_part@$domain" driver = accept - domains = +local_domains + domains = +unix_domains check_local_user transport = procmail_pipe # emulate OR with "if exists"-expansion diff --git a/conf.d/router/800_exim4-config_maildrop b/conf.d/router/800_exim4-config_maildrop index 0c57fc6..ab63263 100644 --- a/conf.d/router/800_exim4-config_maildrop +++ b/conf.d/router/800_exim4-config_maildrop @@ -2,10 +2,12 @@ ### router/800_exim4-config_maildrop ################################# +# hcoop-change: Use unix_domains rather than local_domains. + maildrop: debug_print = "R: maildrop for $local_part@$domain" driver = accept - domains = +local_domains + domains = +unix_domains check_local_user transport = maildrop_pipe require_files = ${local_part}:${home}/.mailfilter:+/usr/bin/maildrop diff --git a/conf.d/router/900_exim4-config_local_user b/conf.d/router/900_exim4-config_local_user index 423c729..7d13100 100644 --- a/conf.d/router/900_exim4-config_local_user +++ b/conf.d/router/900_exim4-config_local_user @@ -5,10 +5,12 @@ # This router matches local user mailboxes. If the router fails, the error # message is "Unknown user". +# hcoop-change: Use unix_domains rather than local_domains. + local_user: debug_print = "R: local_user for $local_part@$domain" driver = accept - domains = +local_domains + domains = +unix_domains check_local_user local_parts = ! root transport = LOCAL_DELIVERY