furrbear: (FreeBSD Daemon)
[personal profile] furrbear
*head* *desk* *head* *desk* *head* *desk* *head* *desk* *head* *desk*

Another project I've been working on is an email robot. I fixed all the flaws from it being
very old code, using very old versions. But testing is driving me nuts.

If it is invoked via the mail aliases, the GPGme library returns an "Invalid engine"
error.

Here's the entry from etc/mail/aliases:
rosie: /home/rosie/rosie-log, "|/home/rosie/rosie-wrapper"
That chokes.

*BUT*

rosie@yogi:~$ cat /home/rosie/rosie-log | /home/rosie/rosie-wrapper
works fine and mails me the results I expect.

Date: 2008-03-15 02:20 am (UTC)
From: [identity profile] cipherpunk.livejournal.com
Forgive the stupid question, but how hard would this be to rewrite? It doesn't seem as if The Application In Question Which Must Not Be Named Until The Press Release should be too difficult to rewrite from scratch, especially using a scripting language as opposed to Pascal...

Date: 2008-03-15 02:40 am (UTC)
From: [identity profile] sultmhoor.livejournal.com
Blah, is that a sendmail alias? I thought I sensed a ripple in the force...

Date: 2008-03-15 02:24 pm (UTC)
From: [identity profile] merlinwon.livejournal.com
Good lord! your read looks like the type of guy i need to talk with about my pci simple communtications controller. I'm sooo DUH over computer stuff! Very intelligent stuff you have there! :) ::Hugs:: Have a great weekend!

Date: 2008-03-15 06:40 pm (UTC)
From: [identity profile] tmaher.livejournal.com
This is sendmail, not postfix, right?

The error you're getting makes me think there's some environment variable or something that's present for the rosie user, but not for sendmail.

su -l (or whatever the less-privliged sendmail user is) and see if piping stuff through rosie-wrapper still works.

Alternatively, strip down the alias listing to just the pipe to rosie-wrapper and see if that makes a difference.

Date: 2008-03-16 02:21 am (UTC)
From: [identity profile] backrubbear.livejournal.com
To add my two pence and 30 seconds of googling, it rather sounds like your program isn't able to find the gpp libraries. This probably means that either something is present in your path/LD_LIBRARY_PATH as rosie that isn't present from the sendmail (equivalent) shell user. Perhaps a little poking with ldd to see if you're missing a dynamic library.

Profile

furrbear: (Default)
furrbear

May 2013

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 4th, 2025 08:32 pm
Powered by Dreamwidth Studios