[Esd-l] Setup and configuration

John D. Hardin jhardin at impsec.org
Tue Nov 5 20:55:01 PST 2002


On Tue, 5 Nov 2002, John Lang wrote:

> I have a small ISP with one mail server with about 700 mailboxes.  
> I would like to configure procmail and the sanitizer on my mail
> server.
> 
> I have a few stubborn customers who do not want me to filter any
> type of their mail.  So, I would like to enable procmail and
> sanitizer on individual mailboxes.
> 
> Is this possible?

Sure. Procmail is *very* flexible.

It's fairly easy to set up, but it can become a maintenance hassle if
many users want to be excluded. Giving the end-users the ability to
control it for themselves makes it somewhat more complex but relieves 
you of maintenance.

I'll give a basic example. Others who may have more direct experience
with doing this can chime in with their suggestions.

Assuming it's all local delivery, this would get you started:

  :0
  * ! LOGNAME ?? ^(user1|user2|user3|user4|user5)$
  {
    INCLUDERC=/etc/procmail/hmtl-trap.procmail
  }


...where user1, user2, user3, etc. all want to opt out.

You can see where this could easily become a maintenance problem.

Ideally an ISP should be able to give their clients a web page where
they check checkboxes to select options like this. I've made a token
effort in this direction with the Opt-Out Preprocessor, but I've not
had the time to play around with creating a web page / CGI that edits
a user-options file to drive the preprocessor. I'm sure others have.

> Please forgive my stupidity with these questions. I'm a recently
> converted Micro$oft network administrator, migrating my ISP slowly
> from Window$ to Linux.  It's quite a steep learning curve.

Steep Learning Curve = you learn a lot quickly. I hope that's what you
mean! :)

--
 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin at impsec.org                        pgpk -a jhardin at impsec.org
 key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  ...the Fates notice those who buy chainsaws...
                                              -- www.darwinawards.com
-----------------------------------------------------------------------
   43 days until The Two Towers



More information about the esd-l mailing list