Andrzej A. Filip: > > You can try: > > > > /etc/postfix/main.cf: > > import_environment = LD_PRELOAD=/path/to/object remainder of default > > $import_environment settings > > > > I make no promises that this will be sufficient. For example, > > features such as mynetworks look at local network interfaces, and > > that will not work. > > Is it possible to set/pass environment variables per master.cf entry?
There currently is no code to set environments for individual daemons, because until now such code was not needed. It is easy enough to wrap the smtpd(8) or smtp(8) executable with a small program that sets the environment. There are no promises that automatic socksification will work. Postfix daemons make socket calls not only for email delivery but also to talk to other Postfix daemons. Wietse