[ Pobierz całość w formacie PDF ]
.Oncethere, start your editor up with the no word wrapping command.> cd> pico -w.forwardWe now go to an excerpt from Nancy M.'s Mail Filtering FAQ:Enter a modified version of the following in your ~/.forward:"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #nancym"== IMPORTANT NOTES ==* Make sure you include all the quotes, both double (") and single (').* The vertical bar (|) is a pipe.* Replace /usr/local/bin with the correct path for procmail (see step 1).* Replace `nancym' with your userid.You need to put our userid in your.forward so that it will bedifferent than anyother.forward ile on your system.* Do NOT use ~ or environment variables, like $HOME, in your.forward file.If procmail resides belowyour home directory write out the *full* path.On many systems you need to make your.forward worldreadable and your home directory world searchable in order for the mail transport agent to "see" it.To dothis type:cdchmod 644.forwardchmod a+x.If the.forward template above doesn't work the following alternatives might be helpful:In a perfect world:"|exec /usr/local/bin/procmail #nancym"In an almost perfect world: "|exec /usr/local/bin/procmail USER=nancym"In another world:"|IFS=' ';exec /usr/local/bin/procmail #nancym"In a different world:"|IFS=' ';exec /usr/local/bin/procmail USER=nancym"In a smrsh world:"|/usr/local/bin/procmail #nancym"Now that you have all the necessary files made, it's time to test this filter.Go into your mailreader and createa new folder called Ebombtest.This procedure differs from program to program, so you may have toexperiment a little.Then open up the rc.noebomb file and change /dev/null to Ebombtest.(You should havealready changed Conditions 2 and 3 to what you want; if not, go do it now!) Finally, open up.procmailrcand remove the # from the last line.You will need to leave this on for a bit to test it.Ask some of the people in Condition 2 to send you sometest messages.If the messages make it through to your Inbox, then that condition is working fine.Sendyourself some fake email under a different name and check to see if itends up in the Ebombtest folder.Also, send yourself some fakemail from root@wherever.com to make surethat Condition 1 works.If you're on any mailing lists, those messages should be ending up in your Inbox aswell.If all of these test out fine, then congratulations! You now have a working defense against email bombs.For the moment, change the Ebombtest line in the rc.noebomb file back to /dev/null, and put the # in front ofthe INCLUDERC line in the.procmailrc file.If someone ever decides to emailbomb you, you only need toremove the #, and you will have greatly cut down on the amount of messages coming into your Inbox,giving you a little bit of breathing room to start unsubscribing to all those lists, or start tracking down thoseidiots who did it and get theirasses kicked off their ISP's.If you have any comments or questions about this, email me at zachb@netcom.com.Emailbombs WILL goto /dev/null, so don't bother!Disclaimer: When you activate this program, it is inevitable that a small amount of wanted mail MAY get putinto /dev/null, due to the fact that it is nearly impossible to know the names of all the people that may writeto you.Therefore, I assume no responsibility for any email whichmay get lost, and any damages which may come from those lost messages.********************Don t have procmail? If you have a Unix box, you can download procmail from ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/*******************A note of thanks goes to Damien Sorder (jericho@dimensional.com) for his assistance in reviewing thisguide.And now, just to make certain you can get this invaluable Perl script to automatically unsubscribe emaillists, here is the listing:#!/usr/local/bin/perl# unsubscribe## A perl script by Kim Holburn, University of Canberra 1996.# kim@canberra.edu.au # Feel free to use this and adjust it.If you make any useful adjustments or# additions send them back to me.## This script will unsubscribe users in bulk from whatever mail lists they are# subscribed to.It also mails them that it has done this.# It is useful for sys admins of large systems with many accounts and# floating populations, like student servers.# This script must be run by root although I don't check for this.# You have to be root to read someone else's mailbox and to# su to their account, both of which this script need to do.## This script when applied to a mailbox will look through it to find# any emails sent by mailing lists, attempt to determine the address of the# mailing list and then send an unsubscribe message from that user [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • czarkowski.pev.pl
  •