LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-10-2008, 08:49 PM   #1
linuxmaveric
Member
 
Registered: Aug 2007
Location: Southern California
Distribution: Ubuntu 8.04 for my desktop & FreeBSD 7.0 for my server blade.
Posts: 31

Rep: Reputation: 15
Smile need help with .procmailrc


How do I setup .procmailrc
to delete spam mail that come from any addresses that end in .cn (.cn = email from china) and with the Subject "stocks or Stocks with a capital). Can someone help me out here with a critique and suggestions. Thanks.

I know I must start my procmail recipe sort of like this: Will this do?

:0
* ^From:.*.cn
* ^Subject:.*[Ss]tocks
/dev/null

Last edited by linuxmaveric; 06-11-2008 at 04:39 PM.
 
Old 06-11-2008, 02:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Critique no, questions yes.
- ".ch" is Switzerland while ".cn" is the Peoples Republic of China.
- while you're testing, do enable verbosity and logging, and send to file, not the bitbucket
- what if the "From" line is forged? Are there any other headers available?
- What is the meaning of the procmail recipe flag "D"?
 
  


Reply

Tags
procmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Procmailrc filtering Intimidator Linux - Server 1 06-11-2007 07:30 AM
.procmailrc and BCC jayakrishnan Linux - Networking 1 03-10-2006 01:10 AM
.procmailrc jayakrishnan Linux - Networking 0 11-19-2005 02:13 AM
Procmailrc file how many do I Need ?? wylie1001 Linux - Software 2 09-07-2005 07:20 PM
procmailrc davidsrsb Slackware 3 06-15-2005 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration