furrbear: (FreeBSD Daemon)
furrbear ([personal profile] furrbear) wrote2008-03-14 06:33 pm

Argggggghhhhh

*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.

[identity profile] tmaher.livejournal.com 2008-03-15 06:40 pm (UTC)(link)
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.