in reply to mail server scripts (repost)

AM there are a plethora of methods of writing scripts to filter out UCBE, A.K.A. SPAM.

For an off the shelf solution if you can stick sendmail or other "pluggable" delivery agent between the bad guys and your users is to use SpamAssassin to to the dirty work.

If you insist on doing your own scripting then you need to look at the MIME::* modules as well as Mail::* modules.

I've done quite a bit of scripting to do various checks of incoming email. You have your work cut out for you.


Peter L. Berghold -- Unix Professional
Peter at Berghold dot Net
   Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.

Replies are listed 'Best First'.
Re: Re: mail server scripts (repost)
by Anonymous Monk on Jan 24, 2004 at 20:40 UTC
    I guess my question really is, how do I get scripts to run when incoming messages are received? Where do I put the scripts? What on the mail server must I edit?

          Where do I put the scripts? What on the mail server must I edit?

      The answers to that question depend on the architecture of your mailer environment. You mentioned Lotus Notes. How does Lotus Notes handle its mail queues? If you have the opportunity to have LN store incoming mail into a queue directory where a script initiated by cron can "pick it up" and then hand it off to a delivery agent then that's one way.

      SpamAssassin is actually invoked by the MTA through a socket. Can LN deal with that? Can procmail be invoked by LN?

      Short answer is: it all depends. You need to work with your MTA administrator to work out the naughty bits of getting this to work.


      Peter L. Berghold -- Unix Professional
      Peter at Berghold dot Net
         Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.