> On 7 May 2022, at 12:57 pm, postfix-user <[email protected]> wrote:
> 
> Can you please tell me how to pass an environment variable (like 
> SSLKEYLOGFILE) to the smtpd daemon ? Maybe as an alternative, if the master 
> process can't allow this, there are examples of running smtpd directly from 
> systemd ?

https://www.postfix.org/postconf.5.html#import_environment

Be sure to augment rather than replace the default set of variables:

   # postconf -e "import_environment = $(postconf -dh import_environment) 
SSLKEYLOGFILE=/some/where"

you can also update just the smtpd(8) service in master.cf:

   # postconf -e "smtpd_impenv = $(postconf -dh import_environment) 
SSLKEYLOGFILE=/some/where"
   # postconf -Pe 'smtp/inet/import_environment=$smtpd_impenv'
   # postfix reload

Use double and single quotes as indicated.
See the postconf(1) manpage, and if you prefer edit the config files by hand.

-- 
        Viktor.

Reply via email to