LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 06-10-2008, 09: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 05:39 PM.
 
Old 06-11-2008, 03:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 20,982
Blog Entries: 44

Rep: Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration