[Mailman-Users] filtering with procmail

2002-02-15 Thread Dave Stern - Former Rocket Scientist

Anyone have any experience filtering with procmail with mailman2.0.8? The FAQ 
gives hints but seems to be incomplete.

Given a list called test, with entries in aliases as
test:"|/home/mailman/mail/wrapper post test"
test-admin:  "|/home/mailman/mail/wrapper mailowner test"
test-request:"|/home/mailman/mail/wrapper mailcmd test"
test-owner:  test-admin

the FAQ says to just modify test to be 
test:"|/usr/local/bin/procmail -m MAILMAN=test /etc/procmailrc-mailman"

What about the other entries?

does /etc/procmailrc-mailman need any special permissions?

TIA





 =-=-=-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-=
 David SternUniversity of Maryland 
Institute for Advanced Computer Studies   


--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users



[Mailman-Users] Filtering with procmail.

2005-05-25 Thread Niels Richter
Hello mailman-users,

I'm running a mailman-installation at a seperat server. It only gets
the mails, an spread them to the users. The SPAM-filtering is running
at another machine but also the SPAM-marked mails are send to the
mailman-server.

So my problem is to get procmail in contact with the incoming mails to
filter this mails. I read two interessting articles at

and

but after doing this steps I got the problem, that after rebuilding
the aliases-file my changes to that file were overwritten.

My question is: does someone have a solution for this problem or is
there a better method to filter already marked SPAM-Mails? Maybe I can
use some files from this page:
< http://www.jamesh.id.au/articles/mailman-spamassassin >

Or would it be the best to install spamassassin also at the
mailman-server an follow the instructions linked above?

Thanks for your help!

--
Niels.



pgpwk2QwRS6KO.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] Filtering with procmail.

2005-05-25 Thread Mark Sapiro
Niels Richter wrote:
>
>I'm running a mailman-installation at a seperat server. It only gets
>the mails, an spread them to the users. The SPAM-filtering is running
>at another machine but also the SPAM-marked mails are send to the
>mailman-server.
>
>So my problem is to get procmail in contact with the incoming mails to
>filter this mails.

The way we do it is we don't use MTA aliases for mailman at all. We
tell the MTA to send all mail for the domain to procmail. Then, rules
in .procmailrc use envelope to in order to decide to what address to
forward the mail or in what mailbox to store the mail or if it's a
mailman list, the command to pipe it to mailman. Here's an excerpt
from .procmailrc

EnvelopeTo = $1


:E
* EnvelopeTo ?? ^mailman$
|sudo -u mailman /var/mailman/mail/mailman post mailman
:E
* EnvelopeTo ?? ^mailman-admin$
|sudo -u mailman /var/mailman/mail/mailman admin mailman
:E
* EnvelopeTo ?? ^mailman-bounces$
|sudo -u mailman /var/mailman/mail/mailman bounces mailman
:E
* EnvelopeTo ?? ^mailman-confirm$
|sudo -u mailman /var/mailman/mail/mailman confirm mailman
:E
* EnvelopeTo ?? ^mailman-join$
|sudo -u mailman /var/mailman/mail/mailman join mailman
:E
* EnvelopeTo ?? ^mailman-leave$
|sudo -u mailman /var/mailman/mail/mailman leave mailman
:E
* EnvelopeTo ?? ^mailman-owner$
|sudo -u mailman /var/mailman/mail/mailman owner mailman
:E
* EnvelopeTo ?? ^mailman-request$
|sudo -u mailman /var/mailman/mail/mailman request mailman
:E
* EnvelopeTo ?? ^mailman-subscribe$
|sudo -u mailman /var/mailman/mail/mailman subscribe mailman
:E
* EnvelopeTo ?? ^mailman-unsubscribe$
|sudo -u mailman /var/mailman/mail/mailman unsubscribe mailman


>
>My question is: does someone have a solution for this problem or is
>there a better method to filter already marked SPAM-Mails?

Another way is to use header_filter_rules (in Privacy options...->Spam
filters) to recognize your spam markings and discard the spam, but the
earlier in the process that you can dump it, the better.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Filtering with procmail.

2005-05-26 Thread Niels Richter
Hello Mark Sapiro,

thanks for your answer. I think I will try to filter the mails again
at the mailman-server an use the plugin for mailman.

MS> Another way is to use header_filter_rules (in Privacy
MS> options...->Spam filters) to recognize your spam markings and
MS> discard the spam,

Yes, I know this option, but how can I set up the list, so mailman
discards the messages it self? Because at the moment the mails are
only hold and not deleted or discarded. Is their an option, I think I
read that it's not possible.

--
Niels.



pgpT4AhTewlW1.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] Filtering with procmail.

2005-05-26 Thread Mark Sapiro
Niels Richter wrote:
>
>MS> Another way is to use header_filter_rules (in Privacy
>MS> options...->Spam filters) to recognize your spam markings and
>MS> discard the spam,
>
>Yes, I know this option, but how can I set up the list, so mailman
>discards the messages it self? Because at the moment the mails are
>only hold and not deleted or discarded. Is their an option, I think I
>read that it's not possible.

I don't know what you saw, but if you go to the page, you will see that
for each rule you can select the desired action, one of which is
discard.

Note that I'm talking about header_filter_rules in the list settings,
not the KNOWN_SPAMMERS list in mm_cfg.py.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp