LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
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
Thanked: 0
Smile need help with .procmailrc


[Log in to get rid of this advertisement]
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..
linuxmaveric is offline  
Tag This Post
Reply With Quote
Old 06-11-2008, 03:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,722
Blog Entries: 30
Thanked: 285
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"?
unSpawn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 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 09:06 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration