On Friday 14 May 2004 09:06 pm, Sam Varshavchik wrote:
Patrick Liechty writes:
Hello,
I put this command in my qmail virtual domain user's directory .qmail
file:
| /usr/local/bin/maildrop mailfilter
I have a file called mailfilter in that same directory. I get this error
in /var/log/mail:
May 14 01:38:26 cssimsp0 qmail: [ID 748625 mail.info] 1084513106.354759
delivery 11: deferral:
ld.so.1:_/usr/local/bin/maildrop:_fatal:_libstdc++.so.5:_open_failed:_No_
suc h_file_or_directory/Killed/
I have the lib directory that contains these libraries in LD_LIBRARY_PATH
in /etc/profile. I can run maildrop under other users and it works. It
doesn't get these errors.
Any ideas?
qmail, when it invokes maildrop, does not have the LD_LIBRARY_PATH variable
in its environment. You have it in your command line shell, but it's not
in qmail's environment.
It can, if you start it with it.
For instance, a LWQ style qmail-send startup script looks like this:
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"
you could easily do something like so:
exec env - PATH="/var/qmail/bin:$PATH" LD_LIBRARY_PATH="whatever" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"
although I think it would probably be a better idea to add the path
to /etc/ld.so.conf (linux, anyways) and run 'ldconfig' to make this a
system-wide setting.
-Jeremy