View previous topic :: View next topic |
Author |
Message |
GenTimJS Guru


Joined: 03 May 2003 Posts: 406 Location: NH, USA
|
Posted: Mon Feb 14, 2005 3:39 pm Post subject: forwarding email with procmail after spamassassin?[SOLVED] |
|
|
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 |
|
 |
exklusve Apprentice


Joined: 23 Aug 2002 Posts: 270 Location: currently ~/
|
Posted: Mon Feb 14, 2005 6:20 pm Post subject: |
|
|
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 |
|
 |
GenTimJS Guru


Joined: 03 May 2003 Posts: 406 Location: NH, USA
|
Posted: Mon Feb 14, 2005 6:45 pm Post subject: |
|
|
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 |
|
 |
|