LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2005, 09:20 AM   #1
suhewabe
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Rep: Reputation: 0
spamassassin & procmail forward for 1 user


I currently have procmail / sendmail / spamassassin working for my linuxbox. It's a family webserver so I set up the procmailrc and spamassassin global files for everyone.

It's set up to prefix the subject line with [SPAM] if spamassassin considers it spam. Most everyone has something in their email clients to automatically move those emails to a separate directory so they don't even see it.

Everything's working fine.

I have a 10 year old niece that I'd like to keep from having to see some nasty spams. Although we could set her up with the same idea of moving it to a separate directory, I'd rather set up the server to forward all [SPAM] to her mother and let her mother handle it.

Does anyone know how to set this up?
 
Old 04-19-2005, 09:47 AM   #2
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
Place the snip below in /etc/procmailrc

Code:
:0
* ^X-Spam-Status: Yes
{
        :0 c
        ! -f root@locahost username@my-domain.com
}

Last edited by sgrayban; 04-19-2005 at 09:50 AM.
 
Old 04-19-2005, 12:01 PM   #3
suhewabe
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
What does that do?

Does it forward anything marked as spam (^X-Spam-Status: Yes) that is intended for username@my-domain.com will be forwarded to root?


Also, I assume I put it AFTER my spamassassin call:

Code:
SHELL=/bin/csh
:0 fw
* < 256000
| spamc
 
Old 04-19-2005, 12:15 PM   #4
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
It does what you want it to do.

-f is from this email to this email

and you put it after that setting you pasted
 
Old 04-19-2005, 12:33 PM   #5
suhewabe
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
I'm not sure that's quite correct. I gave a test and if I get spam, it forwards it over and over and over again back to me.

I JUST want spam that goes to, say - user niece@myaddress.com to go to hermom@myaddress.com INSTEAD of going to niece@myaddres.com.

Last edited by suhewabe; 04-19-2005 at 12:38 PM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamassassin and procmail zamri Linux - Networking 2 07-16-2005 06:40 AM
fetchmail procmail spamassassin VincentB Linux - Software 4 08-24-2004 01:35 PM
Procmail and spamassassin question Liberator Linux - Software 5 08-13-2004 03:24 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
need simple procmail & .forward help BaerRS Linux - Software 1 05-01-2003 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:14 PM.

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