Email delivery problem

You’ll need to build procmail-wrapper on your platform–no binary for another platform will work. It’s dead easy to build, but I’m not sure how to set suid something on Mac OS X (that’s the purpose of procmail-wrapper…it grabs the configuration for the domain of the user, and then drops privileges for delivery and running user-level recipes).

Anyway, to build it:

Grab the procmail-wrapper.c from the virtual-server module directory, or from:

http://software.virtualmin.com/lib/procmail-wrapper.c

Build it with:

gcc -o procmail-wrapper procmail-wrapper.c

Assuming you’ve got gcc installed. setuid the resulting binary and put it in place instead of the binary you have now.

Another alternative is to run Sendmail instead of Postfix. Sendmail already calls procmail using a setuid wrapper (at least, it does on most platforms). I don’t necessarily recommend it, as I don’t like Sendmail configuration and find it unnecessarily terse in error loggin, but Virtualmin supports it just fine and once setup either mail server acts roughly identically.

Other method :

The fix is:

cd /root
wget https://github.com/virtualmin/virtualmin-gpl/blob/master/procmail-wrapper.c
gcc procmail-wrapper.c -o procmail-wrapper
mv /usr/bin/procmail-wrapper /usr/bin/procmail-wrapper.backup
cp procmail-wrapper /usr/bin/procmail-wrapper
chmod 4755 /usr/bin/procmail-wrapper

If you don’t do the 4755 you’ll get weird Procmail errors and SpamAssassin won’t work.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *