* exim4/conf.d/main/01_exim4-config_listmacrosdefs
(MAILDIR_HOME_MAILDIR_LOCATION): Don't include $local_part here, in
case it gets expanded too early.
* exim4/conf.d/router/550_exim4-get_token (get_token): Simplify to not
use pagsh.openafs.
* exim4/conf.d/transport/30_exim4-config_maildir_home (maildir_home): Add
$local_part here. Set current_directory to "/" to avoid chdir errors.
* exim4/get-token: Various changes by megacz.
* init.d/apache2 (NO_START): Changes by others.
SYSTEM_ALIASES_FILE_TRANSPORT = address_file
# hcoop-change: deliver mail to AFS
SYSTEM_ALIASES_FILE_TRANSPORT = address_file
# hcoop-change: deliver mail to AFS
-MAILDIR_HOME_MAILDIR_LOCATION = /afs/hcoop.net/common/email/$local_part
+MAILDIR_HOME_MAILDIR_LOCATION = /afs/hcoop.net/common/email
get_token:
driver = accept
domains = +local_domains
get_token:
driver = accept
domains = +local_domains
- condition = ${run{/usr/bin/pagsh.openafs -c /etc/exim4/get-token ${local_part}}{0}{0}}
+ condition = ${run{/etc/exim4/get-token ${local_part}}{0}{0}}
transport = dev_null
no_verify
no_expn
transport = dev_null
no_verify
no_expn
# Use this instead of mail_spool if you want to to deliver to Maildir in
# home-directory - change the definition of LOCAL_DELIVERY
#
# Use this instead of mail_spool if you want to to deliver to Maildir in
# home-directory - change the definition of LOCAL_DELIVERY
#
+# hcoop-change: Deliver to MAILDIR_HOME_MAILDIR_LOCATION/$local_part
maildir_home:
debug_print = "T: maildir_home for $local_part@$domain"
driver = appendfile
.ifdef MAILDIR_HOME_MAILDIR_LOCATION
maildir_home:
debug_print = "T: maildir_home for $local_part@$domain"
driver = appendfile
.ifdef MAILDIR_HOME_MAILDIR_LOCATION
- directory = MAILDIR_HOME_MAILDIR_LOCATION
+ directory = MAILDIR_HOME_MAILDIR_LOCATION/$local_part
.else
directory = $home/Maildir
.endif
.else
directory = $home/Maildir
.endif
# $home is not accessible, this chdir fails and prevents delivery.
# If you are in a setup where home directories might not be
# accessible, uncomment the current_directory line below.
# $home is not accessible, this chdir fails and prevents delivery.
# If you are in a setup where home directories might not be
# accessible, uncomment the current_directory line below.
- # current_directory = /
+ #
+ # hcoop-change: uncommented this
+ current_directory = /
# Get an AFS token for the given user.
#
# This is used to deliver mail with the appropriate credentials.
# Get an AFS token for the given user.
#
# This is used to deliver mail with the appropriate credentials.
-KRB5CCNAME=FILE:/tmp/krb5cc_$1.email
+USER=$1
+export KRB5CCNAME=FILE:/tmp/krb5cc_$USER.email
+kdestroy
+unlog
-kinit -kt /etc/keytabs/$1.email.keytab
-aklog
+#echo kinit -kt /etc/keytabs/$USER.email.keytab $USER/mailfilter@HCOOP.NET > /tmp/script-log
+kinit -kt /etc/keytabs/$USER.email.keytab $USER/mailfilter@HCOOP.NET
+#aklog
+#tokens