[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Qube 2 - Email Filter
On Thu, 4 May 2000, Doug Boheman wrote:
> Can you expand on this? I'm not sure how to set up this filter. I'm not
> too familiar
> with the Linux commands to edit, if necessary. Could you provide?
RedHat uses procmail as the local mailer so you can add filter rules to a
global /etc/procmailrc to filter stuff. Need to be very careful though,
the filters are run as root. If you get it really wrong then it's possible
to trash everybody's email and compromise your systems security.
If you're not familiar with 'vi' then use 'pico' to edit the
/etc/procmailrc file. You'll need to be root.
pico /etc/procmailrc
Add a rule to do something with the ILOVEYOU mail. Send it to /dev/null
or better out to a log file somewhere. This one should deliver all mail
with ILOVEYOU in the subject line into a /var/iloveyou.log file rather
than the users mailbox:
--------cut--------------
:0 : /tmp/iloveyou.lockfile # No love here.
* ^Subject:.*ILOVEYOU.*
/var/iloveyou.log
--------cut-------------
Check the man pages on procmail, procmailrc and procmailex for all the
wonderful things that can be done with procmail.
>
> Thanks
> Doug Boheman
>
> >/etc/sendmail.cf -- although I just added a recipe to global
> >procmail entry, though this doesn't filter from virtusertable
> >entries that don't reside on your system -- say email that
> >is only forwarded somewhere else.
>
> >>On Thu, May 04, 2000 at 03:03:27PM -0400, Scott Blomquist wrote:
> >> I want to add the anti-I Love you filter and I haven't been able to
> >> locate the file.
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
--
|Colin Smith: Colin.Smith@xxxxxxxxxxxxxxxxxxxx | Windows 2000 |
| 86% of Americans support the banning | AKA |
|of Dihydrogen monoxide... Where do you stand??? | The W2K Bug |