Books and toys for geeks and other kids (Amazon "top sellers")
O'Reilly
Linux
Unix shell
C / C++
Perl
PHP
Python
Java
JavaScript
TCP/IP
HTML
XML
.NET
PhotoShop
Dreamweaver
DirectX
Excel
Windows 2000
Windows XP
VBScript
MCSE
Security
Tops
BigRead
Dilbert
Far Side
Low Carb Diet
PDAs/Handhelds
Digital Cameras
Flash Sticks

Lowth.com Home | Protector Home | LinWiz Home | My Bookshelf | Topic Index | Changes | Search

How to install protector 1.00.11 for RedHat Linux or Sun Solaris

To compile and install protector-1.00.11 you will need to have the GNU make (gmake) and GNU C compiler (gcc) Compiler software installed on your machine. For RedHat linux, these are included on the standard installation CDs. For Solaris, you can download them free of charge from http://www.sunfreeware.com. You must then ensure that /usr/local/bin is included in your PATH setting before this procedure can be used.

To install the programs, scripts etc..

        gmake build
        gmake install


To install protector for use with the default mail server "sendmail", you must edit the /etc/sendmail.cf file to replace the references to program "procmail" with "protector", there are two ways of doing this, depending on how you sendmail.cf file was generated.

Sendmail configuration - alternative 1 - sendmail.mc

If you generate your sendmail.cf file using the sendmail.mc and "m4" method (you will know if you do), then change (or add) the following two lines to the file (check out alternative 2 if you use RedHat's linuxconf or other methods instead). ..

define(`LOCAL_MAILER_PATH', `/usr/bin/protector')
define(`PROCMAIL_MAILER_PATH', `/usr/bin/protector')

Note that the PROCMAIL_MAILER_PATH definition should appear before the "MAILER(procmail)" line in the file (if it exists). The LOCAL_MAILER_PATH definition should appear at the end of the file.

Then regenerate the sendmail.cf file as usual, using the command..

m4 sendmail.mc > sendmail.cf


Sendmail configuration - alternative 2 - sendmail.cf

If you do not use the "sendmail.mc" method of generating you sendmail configuration, then you should edit the /etc/sendmail.cf file directly. The following two changes need to be made..

First edit

Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u

Should be changed to read...

Mlocal,         P=/usr/bin/protector, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u

Second edit

Note : If your sendmail.cf does not have an Mprocmail entry, then you can skip this edit..

Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

Should be changed to read...

Mprocmail,      P=/usr/bin/protector, F=DFMSPhnu9, S=11/31, R=21/31, T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

Note that in both the above edits - not all ocurrances of the string "procmail" are changed - only where the name is supplied as part of a P= string.

NB : If your sendmail.cf is created using the "m4 sendmail.mc" logic, you will (naturally) loose these edits if you run "m4 sendmail.mc" again


Stop and Restart sendmail

Now, Stop and re-start sendmail. On linux you do it like this..

        cd /etc/rc.d/init.d
        sh sendmail stop
        sh sendmail start 

And that should be that.

If you want to know what combination of mime types protector lets through, or to add or remove some - check out the "part_filter" script.

Installing for other mail servers..


  All material on this page, and the "protector" software to which it relates is Copyright (C) 2002 by Lowth.com. "Protector" is free, open source software, licensed according to the terms of the GNU Public License