Hello everybody:

I'm trying to modify some functions on postfix source and then preload
them by using LD_PRELOAD. To get it work, I've modified
/etc/postfix/postfix-script as follows:

[...]

overlay)
    export LD_LIBRARY_PATH=./:/usr/local/lib/:$LD_LIBRARY_PATH
    export LD_PRELOAD=/home/antonio/libpostfixMOD.so:$LD_PRELOAD

//The rest of text is a start command copy.
[...]

I think export is being executed because there's an 'echo' command working
good. Some tries before, ld.so returned some errors because there was some
problems with the compiled library or his path. Now, there's no error
messages but the modified library code isn't executing. On the other hand,
original postfix source code is being executed normally.

I would be really grateful if you could help me. Any ideas or suggestion
would be welcome. Many thanks in advance,

Antonio G. Artime

Reply via email to