procmail-wrapper PPC (PowerPC) version for use with Virtualmin

The following is a simple wrapper program that will allow the execution of procmail as a specific user (when used with Postfix as a delivery command). All the does is change the user id and group id of the currently running process, then executes the standard procmail in /usr/bin/procmail. This is most useful in Virtualmin, but not specifically for that.

The Virtualmin Project makes a pre-compiled version available for i386 and X86_64, but not PowerPC.

***Please note****
This is not a re-compiled copy of the Virtualmin version. The source code (from what I can tell) for the Virtualmin version is not freely available. This version has been rewritten to do what I believe the official version does.

Requirements

  • Linux
  • A 64-bit PowerPC CPU, this was complied on a PowerMac G5 running Ubuntu 10.04.1

Source Code

For those who are interested, the short program is shown below.

#include <stdio.h>
int main(int argc, char **argv) {
   setuid(geteuid());
   setgid(getegid());
   execv("/usr/bin/procmail", argv);
}

Install

You may download the pre-built PowerPC (64-bit) version below. Save the downloaded binary as "/usr/bin/procmail-wrapper". Then change your postfix configuration to:

mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
AttachmentSize
procmail-wrapper.7.38 KB
PacyWorld Button
Powered by Pacy