Viktor Dukhovni:
> On Tue, Jul 03, 2012 at 03:20:44PM -0400, Wietse Venema wrote:
>
> > > I thought this was working for me, but only due to a manual keytab I
> > > had setup as user postfix (default /tmp/krb5cc_89) for testing. For
> > > some reason postfix is not importing the two kerberos variables.
> > > postconf only reports environment as the first line of variables
> > > ending with LANG=C which can also be obtained by leaving the
> > > import_environment out altogether:
> >
> > You run postconf by hand. Therefore it shows main.cf settings.
>
> The fault is mine I think.
master.cf settings with "-o import_environment=$krb_import..."
should honor explicit "name=value" overrides in "krb_import... =
... name=value".
But indeed this won't inherit name=value settings that don't
exist in the master(8) daemon process.
Wietse
> The import_environment setting is only processed by:
>
> postmulti(1)
> postfix(1)
> postdrop(1)
> postqueue(1)
> master(8)
>
> The invidual services in master.cf don't support overrides of
> import_environment. So the OP should modify my recipe to just set
> the global import_environment, rather than the non-working more
> surgical "krb5_import_environment". I tried to be more clever
> without testing the "improved" recipe. What I used in the past was
> the global variant.
>
> --
> Viktor.
>