

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Re: errors when runni...| From | Sent On | Attachments |
|---|---|---|
| Patrick Liechty | May 14, 2004 9:48 am | |
| Sam Varshavchik | May 14, 2004 7:06 pm | |
| Jeremy Kitchen | May 14, 2004 7:13 pm | |
| Patrick Liechty | May 18, 2004 9:07 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread 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 maildrop | Actions... |
|---|---|---|
| From: | Patrick Liechty (patr...@corbanware.com) | |
| Date: | May 18, 2004 9:07:41 am | |
| 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
--
Thanks for the help. That worked. I modified qmail-start and the errors went away.
I have been trying to get maildrop working in a few different ways. This way now works, which is nice, but it isn't ideal. I have to maintain a mailfilter file for each user. I want to have just one global filter that puts spam in the IMAP .Spam directory. I don't mind doing this for each domain, but I don't want to do it for each user. Is there a way to create a .qmail file to call maildrop for one whole domain? Is there a way to do it sitewide?
I have tried other methods of setting up maildrop site wide and they don't seem to work. I tried putting maildrop in qmail-start as so:
#!/bin/sh exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start '| preline /usr/local/bin/maildrop'
According to the documentation, maildrop will try to read /etc/maildroprc and then a .mailfilter in the mail user's directory. It doesn't seem to be reading /etc/maildroprc. I have no proof of it. The script is suppose to create a log file and doesn't. I made sure it had permissions to create the log file. Email still gets delivered though. I figure I can just have my site wide script in /etc/maildroprc, but that isn't working.
Thanks,
Patrick Liechty







