![](https://secure.gravatar.com/avatar/8acc2b52ade6d299a6fbf20c4a431335.jpg?s=120&d=mm&r=g)
I have started to receive spam to my list. While my members are not recieving them (all posts must be approved), is there a way to discard all requests at once? At the moment, I must go thru the list one by one. THere as many as 40 per week. How can i stop people from spam my list? Help?
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Louis Headley wrote:
I have started to receive spam to my list. While my members are not recieving them (all posts must be approved), is there a way to discard all requests at once?
Mailman 2.1.5 and up have a "Discard all messages marked defer" checkbox on the admindb page.
There is a bin/discard command line script that allows something like
bin/discard data/heldmsg-list-*
At the moment, I must go thru the list one by one. THere as many as 40 per week. How can i stop people from spam my list?
When you figure that out, you can sell it and make a fortune :-)
What you can do is integrate spam filtering in your incoming mail process and filter it out before it gets to Mailman.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/abf759795866395cdaa6a314cc702ee7.jpg?s=120&d=mm&r=g)
I'm having the same problem.
Maybe a solution can be to use the KNOW_SPAMERS[] variable as Mark suggested, something like:
KNOWN_SPAMMERS = [('subject', '^.*spam'), ('x-spam-flag', 'yes')]
The problem with this is that SpamAssassin does not provide a header like: x-spam-flag: yes instead, it provides a header like: x-spam-score: 5.2
When the score is greater than 5.0, it is a spam.
My personal wishlist:
I have installed SpamAssassin in my MTA, so, what I'm searching is way to mailman to detect the "{Spam}" string in the subject and:
- differ or discard the message (this help automation)
- if the message is differed, don't email the subject/body of the email to the owner (this help the report email being marked as spam in another MTA)
- have a special flag "spam differed" so that you can do a "discard all messages marked as spam" in the DB maintenance.
Having an option to configure mailman as an email client, make it easier to integrate it to MTAs. If you need special settings for mailman in your MTA regarding Spam, it makes a litle harder to install it.
Oliver
Louis Headley wrote:
I have started to receive spam to my list. While my members are not recieving them (all posts must be approved), is there a way to discard all requests at once? At the moment, I must go thru the list one by one. THere as many as 40 per week. How can i stop people from spam my list? Help?
-- Oliver Schulze L. <oliver@samera.com.py>
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Oliver Schulze L. wrote:
I don't know about your Spamassassin, but in mine, I have these defaults:
#X-Spam-Flag: YES add_header spam Flag _YESNOCAPS_
#X-Spam-Level: ************* add_header all Level _STARS(*)_
from in my case /usr/share/spamassassin/10_misc.cf.
The first causes "X-Spam-Flag: YES" to be added to all 'spam' and the second causes "X-Spam-Level: *************" to be added to all messages where the actual number of stars is the integral part of the score. E.g., a message with a score of 1.9 gets "X-Spam-Level: *" and a message with a score of 6.3 gets "X-Spam-Level: ******".
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/8acc2b52ade6d299a6fbf20c4a431335.jpg?s=120&d=mm&r=g)
The problem that i have is that my mailman in free from my webhost (hostway.com) and it is an old version. I think that it is 2.0 or 2.1. I could not do what Mark suggested in his first email because my version was too old and didnt have that functionality. i have since deleted the list and will put up a new list in a month or two. The spam was unbelievable. even with this suggestion about the spamassasin, I am not sure that i would be able to do, as i have no idea where to find the "x-spam-flag".
thanks for your help guys...
Louis
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: "Oliver Schulze L." <oliver@samera.com.py>; "Louis Headley" <louis@artjamming.com> Cc: <mailman-users@python.org> Sent: Tuesday, June 20, 2006 2:20 AM Subject: Re: [Mailman-Users] spamming of my list
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Louis Headley wrote:
Unfortunately, with a host list such as you have (had), there is not much you can do.
Your original post said posts weren't reaching the list but were being held, and it was the discarding of held spam that was the problem because of the volume.
About the only thing you can do is set the list to discard or reject rather than hold posts from non-members, but I think this is a 2.1 option and may not be available if you have 2.0.x. Also, discard vs. reject is somewhat controversial. Discard is best, but doesn't meet the needs of all lists.
even with this suggestion about the spamassasin, I am not sure that i would be able to do, as i have no idea where to find the "x-spam-flag".
This is something that would have to be done by the web/Mailman host before the mail reaches Mailman. It is not something you can do in your situation.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/8acc2b52ade6d299a6fbf20c4a431335.jpg?s=120&d=mm&r=g)
Thanks again for your help Mark Louis
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: "Louis Headley" <louis@artjamming.com>; "Oliver Schulze L." <oliver@samera.com.py> Cc: <mailman-users@python.org> Sent: Tuesday, June 20, 2006 10:57 AM Subject: Re: [Mailman-Users] spamming of my list
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Louis Headley wrote:
I have started to receive spam to my list. While my members are not recieving them (all posts must be approved), is there a way to discard all requests at once?
Mailman 2.1.5 and up have a "Discard all messages marked defer" checkbox on the admindb page.
There is a bin/discard command line script that allows something like
bin/discard data/heldmsg-list-*
At the moment, I must go thru the list one by one. THere as many as 40 per week. How can i stop people from spam my list?
When you figure that out, you can sell it and make a fortune :-)
What you can do is integrate spam filtering in your incoming mail process and filter it out before it gets to Mailman.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/abf759795866395cdaa6a314cc702ee7.jpg?s=120&d=mm&r=g)
I'm having the same problem.
Maybe a solution can be to use the KNOW_SPAMERS[] variable as Mark suggested, something like:
KNOWN_SPAMMERS = [('subject', '^.*spam'), ('x-spam-flag', 'yes')]
The problem with this is that SpamAssassin does not provide a header like: x-spam-flag: yes instead, it provides a header like: x-spam-score: 5.2
When the score is greater than 5.0, it is a spam.
My personal wishlist:
I have installed SpamAssassin in my MTA, so, what I'm searching is way to mailman to detect the "{Spam}" string in the subject and:
- differ or discard the message (this help automation)
- if the message is differed, don't email the subject/body of the email to the owner (this help the report email being marked as spam in another MTA)
- have a special flag "spam differed" so that you can do a "discard all messages marked as spam" in the DB maintenance.
Having an option to configure mailman as an email client, make it easier to integrate it to MTAs. If you need special settings for mailman in your MTA regarding Spam, it makes a litle harder to install it.
Oliver
Louis Headley wrote:
I have started to receive spam to my list. While my members are not recieving them (all posts must be approved), is there a way to discard all requests at once? At the moment, I must go thru the list one by one. THere as many as 40 per week. How can i stop people from spam my list? Help?
-- Oliver Schulze L. <oliver@samera.com.py>
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Oliver Schulze L. wrote:
I don't know about your Spamassassin, but in mine, I have these defaults:
#X-Spam-Flag: YES add_header spam Flag _YESNOCAPS_
#X-Spam-Level: ************* add_header all Level _STARS(*)_
from in my case /usr/share/spamassassin/10_misc.cf.
The first causes "X-Spam-Flag: YES" to be added to all 'spam' and the second causes "X-Spam-Level: *************" to be added to all messages where the actual number of stars is the integral part of the score. E.g., a message with a score of 1.9 gets "X-Spam-Level: *" and a message with a score of 6.3 gets "X-Spam-Level: ******".
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/8acc2b52ade6d299a6fbf20c4a431335.jpg?s=120&d=mm&r=g)
The problem that i have is that my mailman in free from my webhost (hostway.com) and it is an old version. I think that it is 2.0 or 2.1. I could not do what Mark suggested in his first email because my version was too old and didnt have that functionality. i have since deleted the list and will put up a new list in a month or two. The spam was unbelievable. even with this suggestion about the spamassasin, I am not sure that i would be able to do, as i have no idea where to find the "x-spam-flag".
thanks for your help guys...
Louis
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: "Oliver Schulze L." <oliver@samera.com.py>; "Louis Headley" <louis@artjamming.com> Cc: <mailman-users@python.org> Sent: Tuesday, June 20, 2006 2:20 AM Subject: Re: [Mailman-Users] spamming of my list
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Louis Headley wrote:
Unfortunately, with a host list such as you have (had), there is not much you can do.
Your original post said posts weren't reaching the list but were being held, and it was the discarding of held spam that was the problem because of the volume.
About the only thing you can do is set the list to discard or reject rather than hold posts from non-members, but I think this is a 2.1 option and may not be available if you have 2.0.x. Also, discard vs. reject is somewhat controversial. Discard is best, but doesn't meet the needs of all lists.
even with this suggestion about the spamassasin, I am not sure that i would be able to do, as i have no idea where to find the "x-spam-flag".
This is something that would have to be done by the web/Mailman host before the mail reaches Mailman. It is not something you can do in your situation.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/8acc2b52ade6d299a6fbf20c4a431335.jpg?s=120&d=mm&r=g)
Thanks again for your help Mark Louis
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: "Louis Headley" <louis@artjamming.com>; "Oliver Schulze L." <oliver@samera.com.py> Cc: <mailman-users@python.org> Sent: Tuesday, June 20, 2006 10:57 AM Subject: Re: [Mailman-Users] spamming of my list
participants (3)
-
Louis Headley
-
Mark Sapiro
-
Oliver Schulze L.