4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Re: errors when runni...
FromSent OnAttachments
Patrick LiechtyMay 14, 2004 9:48 am 
Sam VarshavchikMay 14, 2004 7:06 pm 
Jeremy KitchenMay 14, 2004 7:13 pm 
Patrick LiechtyMay 18, 2004 9:07 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Re: errors when running maildropActions...
From:Jeremy Kitchen (kitc@scriptkitchen.com)
Date:May 14, 2004 7:13:40 pm
List:net.sourceforge.lists.courier-maildrop

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