Linux HOWTOs

About | Home | Search

ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: procmail
Description: Autonomous mail processor
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything

# procmail 3.22
# =============
test -f installed/procmail-3.22.tar.gz &&
 mv installed/procmail-3.22.tar.gz .
test ! -f procmail-3.22.tar.gz &&

# Verify tarball w/ md5sum:
echo "1678ea99b973eb77eda4ecf6acae53f1  procmail-3.22.tar.gz" | md5sum -c

# Verify tarball w/ sha1sum:
echo "cd4e44c15559816453fd60349e5a32289f6f2965  procmail-3.22.tar.gz" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4A25D351 > /dev/null 2>&1 || gpg --recv-keys 4A25D351 ) &&
 wget -nc &&
  gpg --verify procmail-3.22.tar.gz.sig && rm procmail-3.22.tar.gz.sig

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "procmail-*" -exec rm -r {} \;
tar xzvf ~/procmail-3.22.tar.gz
cd procmail-3.22
test $UID = 0 && chown -R root:root .
echo | make

# Become root to install it

removepkg procmail
make install
make install-suid
find -user root -exec rm {} \;
strip /usr/bin/formail /usr/bin/lockfile /usr/bin/procmail

# Become yourself again

mkdir -p -m 0700 installed
rm -f installed/procmail-*.tar.*
mv procmail-3.22.tar.gz installed/

Back to the list

Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>