From c3a1fc9a1e99722e7e660880b80a60bec70f7b7f Mon Sep 17 00:00:00 2001 From: "root@deleuze.hcoop.net" <> Date: Mon, 23 Apr 2007 08:31:44 -0400 Subject: [PATCH] mwolson: Relay email from mire --- get-token | 17 ++++++++++++++++- update-exim4.conf.conf | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/get-token b/get-token index 6754ade..a837762 100755 --- a/get-token +++ b/get-token @@ -3,12 +3,27 @@ # # This is used to deliver mail with the appropriate credentials. +# fuse stdin and stderr +exec 2>&1 USER=$1 + +# all future output goes to this file +exec >&/tmp/get-token-log.$USER + +# check that setuid happened +whoami + +# set the credentials cache export KRB5CCNAME=FILE:/tmp/krb5cc_$USER.email + +# eliminate any previous tokens kdestroy unlog KEYTAB=/etc/keytabs/mailfilter/$USER -echo kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET > /tmp/exim-get-token-log + +# display command-to-be-invoked as a sanity check +echo kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET + kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET aklog diff --git a/update-exim4.conf.conf b/update-exim4.conf.conf index e8cb6f6..4763d17 100644 --- a/update-exim4.conf.conf +++ b/update-exim4.conf.conf @@ -22,7 +22,7 @@ dc_local_interfaces='' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' -dc_relay_nets='' +dc_relay_nets='mire.hcoop.net' dc_smarthost='' CFILEMODE='644' dc_use_split_config='true' -- 2.20.1