On 01/25/2014 02:22 PM, Wietse Venema wrote:
> Andrzej A. Filip:
>> On 01/25/2014 02:27 AM, Wietse Venema wrote:
>>> Francina Oates:
>>>> The lack of socks support is an increasingly serious shortcoming
>>>> of Postfix.
>>>
>>> You are welcome to donate code.
>>
>> As I understand it requires passing preset LD_PRELOAD environment variable.
>>
>> http://tsocks.sourceforge.net/faq.php
>> tsocks can be used a number of ways, the most common being the
>> LD_PRELOAD environment variable. When set (often through a script) this
>> requests that the system dynamic loader load tsocks into each process
>> before execution of the process begins. This allows tsocks to redirect
>> calls to standard networking functions to force them to be socksified.
> 
> 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?

Reply via email to