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"

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

This works as well but clunky:

vmaildrop  unix  -       n       n       -       20       pipe
        flags=XODRhu user=mail argv=/usr/bin/env X=Y /usr/bin/maildrop

Is there a better approach?

- Matt

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

Reply via email to