Thanks, I misunderstood the format as -o export_environment = {TZ MAIL_CONFIG X=Y} from postconf(5) => export_environment. For the sake of completeness, -o { export_environment = LANG TZ X=${y} } in master.cf and defining y=z in main.cf does exactly what I want.

- Matt

On 9/26/2023 7:51 AM, Wietse Venema via Postfix-users wrote:
Matt Saladna via Postfix-users:
I'd like to export a single var to a set of pipe processes without
wrapping with env or setting export_environment in main.cf.

This works in main.cf,

export_environment=TZ MAIL_CONFIG LANG X=Y

On the other hand, adding -o export_environment="TZ MAIL_CONFIG LANG
X=Y" in master.cf results in a parser error, "fatal: unknown attribute
name: TZ"
Did you reaad "man 5 master"? You should.

vmaildrop  unix  -       n       n       -       20       pipe
          -o export_environment="LANG TZ MAIL_CONFIG X=Y"
          flags=XODRhu user=mail argv=/usr/bin/maildrop
Use:  -o { export_environment = LANG TZ MAIL_CONFIG ... }

And RTFM.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to