Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
forwarding email with procmail after spamassassin?[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Mon Feb 14, 2005 3:39 pm    Post subject: forwarding email with procmail after spamassassin?[SOLVED] Reply with quote

Ok,
we've got gentoo mailserver
postfix(maildir) with clamav&spamassassin through procmail.

One of our higher ups whom has a forward/alias on the server which goes to his blackberry account.
He wants the forward spam filtered (which it nromally isnt because the foward takes place in procmail)

so I guess my question is how to get a forward as a procmail rule which will filter the mail, and then deliver it to his inbox and forward the non-spamassassin tagged mail ..?

I've read all the docs I could find, and nothing gives a streight answer on this... I cant be the only one trying to make this go lol
_________________
-Tim Smith


Last edited by GenTimJS on Mon Feb 14, 2005 6:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 270
Location: currently ~/

PostPosted: Mon Feb 14, 2005 6:20 pm    Post subject: Reply with quote

I dont think this will answer your question directly, but it might help you out a bit..

http://wiki.apache.org/spamassassin/UsedViaProcmail

Hope that helps
_________________
eXklusve

You do know that no one gives a shit about your system spec's right?
Back to top
View user's profile Send private message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Mon Feb 14, 2005 6:45 pm    Post subject: Reply with quote

Found what I wanted!!

posted here for others, from .procmailrc:


Code:


:0:
* ^X-Spam-Status: Yes
$HOME/.maildir/.spam/new

:0:
* ^X-Spam-Flag: YES
$HOME/.maildir/.spam/new

:0c
* ^X-Spam-Status: No
! target@email.addy




This will filter spam into a spam folder under the users inbox, and will (in addition to normal delivery .. i think ..) forward any mail which is flagged as NOT spam to users target@email.addy


Hope it saves others the headache it caused me...
_________________
-Tim Smith
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum