Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread Mark Sapiro
On 05/29/2015 09:28 AM, Stephen J. Turnbull wrote:
> James Nightly writes:
> 
>  > How can I configure mailman on Debian to reject messages with
>  > X-Spam-Score over 8? We are getting bombarded with spam, messages are
>  > tagged by Spamassasin, but for some reason Exim4 still sends these to
>  > Mailman.
> 
> "Evaluating" numbers by regexp is finicky, but there's a SpamAssassin
> setting that makes it provide a header with as many stars as the
> message got spam points.  Then you just filter on r"^X-Spam-Stars:
> \*\*\*\*\*\*\*\*" (where you need to substitute the real header name
> for "X-Spam-Stars", of course).


Right, and while it is still best to do this ahead of Mailman, Mailman's
Privacy options... -> Spam filters -> header_filter_rules is the place
to do it in Mailman. (and that's where chic...@python.org does it bases
on x-spam-status:).

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread Adam McGreggor
On Fri, May 29, 2015 at 05:28:05PM +0100, Adam McGreggor wrote:
> I have a couple of ACLS (for check_message): the 'magic' I use is 
> 
> condition = ${if >{$spam_score_int}{60}{1}{0}}


http://www.exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html
is still the place I go to, if needed…

-- 
"If we let people see that kind of thing,
 there would never again be any war."
(US spokesman, on news film of Iraqi soldiers killed by helicopter gunfire)
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread Stephen J. Turnbull
James Nightly writes:

 > How can I configure mailman on Debian to reject messages with
 > X-Spam-Score over 8? We are getting bombarded with spam, messages are
 > tagged by Spamassasin, but for some reason Exim4 still sends these to
 > Mailman.

"Evaluating" numbers by regexp is finicky, but there's a SpamAssassin
setting that makes it provide a header with as many stars as the
message got spam points.  Then you just filter on r"^X-Spam-Stars:
\*\*\*\*\*\*\*\*" (where you need to substitute the real header name
for "X-Spam-Stars", of course).
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread Adam McGreggor
On Fri, May 29, 2015 at 10:43:20AM -0500, Skip Montanaro wrote:
> On Fri, May 29, 2015 at 10:12 AM, Adam McGreggor
>  wrote:
> >
> > Drop/Discard/Reject mails at SMTP time, before they hit Mailman?
> 
> Right, but it seems like James is saying Exim4 isn't doing that.

If the mails are being scored (which was mentioned), then I would be
inclined to deal with those before they're accepted -- let alone
before they get to Exim's handling (routing) for Mailman.

> I poked around the MM config for the chic...@python.org mailing list,
> but for the life of me couldn't find the setting where it holds
> messages with X-Spam-Score with spam or unsure values. (We use
> SpamBayes on mail.python.org.) I know it's there somewhere, but I can
> never find such nuggets.

I have a couple of ACLS (for check_message): the 'magic' I use is 

condition = ${if >{$spam_score_int}{60}{1}{0}}

(A SpamAssassin score >6)

For drop/discard/reject, maybe see

https://lists.exim.org/lurker/message/20090116.101052.18c04deb.en.html


In my view (but "your mailsystem, your rules"), "high" scored Spam
shouldn't be accepted; so score it, and deal with it at SMTP time;
deal with the others once accepted.

-- 
War is Peace   Freedom is Slavery   Ignorance is Strength
1984
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Mailman 3: Uncaught runner exception: 'ascii' codec can't encode character

2015-05-29 Thread Stephen J. Turnbull
Barry Warsaw writes:
 > On May 29, 2015, at 01:49 AM, casi.pw wrote:

 > >According to my mailman.log, mails with special characters (in this case
 > >"€", but also Germanic umlauts as "ö") in their bodies are shunted and
 > >not delivered.
 > 
 > This looks like a legitimate bug.

It doesn't just look like one, it *is* one.  Mailman should *never*
need to shunt because of a Unicode error.

If it's a design bug, it's that Mailman isn't aware of 8-bit
Content-Transfer-Encoding.  It might be that a dain-bramaged MUA or
MTA isn't setting that header, though, and in that case you might want
to Discard, Reject, or Hold rather than deliver (depends on how
"Father Knows Best" you want to be about it).  You shouldn't need to
shunt because of body problems though.

Steve



--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread Skip Montanaro
On Fri, May 29, 2015 at 10:12 AM, Adam McGreggor
 wrote:
>
> Drop/Discard/Reject mails at SMTP time, before they hit Mailman?

Right, but it seems like James is saying Exim4 isn't doing that.

I poked around the MM config for the chic...@python.org mailing list,
but for the life of me couldn't find the setting where it holds
messages with X-Spam-Score with spam or unsure values. (We use
SpamBayes on mail.python.org.) I know it's there somewhere, but I can
never find such nuggets.

Mail.python.org has a very mature Postfix setup. It's all magic to me
(well, except for the SpamBayes part), but I think publishing a small
document about the configuration might be worthwhile.

Skip Montanaro
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread Adam McGreggor
On Fri, May 29, 2015 at 07:02:38AM -0700, James Nightly wrote:
> How can I configure mailman on Debian to reject messages with
> X-Spam-Score over 8? We are getting bombarded with spam, messages are
> tagged by Spamassasin, but for some reason Exim4 still sends these to
> Mailman.

Drop/Discard/Reject mails at SMTP time, before they hit Mailman?

-- 
"The power of accurate observation is often called cynicism
 by those who do not have it." 
-- George Bernard Shaw
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...

2015-05-29 Thread James Nightly
How can I configure mailman on Debian to reject messages with
X-Spam-Score over 8? We are getting bombarded with spam, messages are
tagged by Spamassasin, but for some reason Exim4 still sends these to
Mailman.

Debian 8 (Jessie)
Exim version 4.84
Mailman 1:2.1.18-2
SpamAssassin version 3.4.0, running on Perl version 5.20.2
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Mailman 3: Uncaught runner exception: 'ascii' codec can't encode character

2015-05-29 Thread Barry Warsaw
On May 29, 2015, at 01:49 AM, casi.pw wrote:

>I'm trying to run mailman 3 in production on a shared server. Mailman
>gets its mail from exim via LMTP. First it appeared to work fine, but I
>got a problem:
>
>According to my mailman.log, mails with special characters (in this case
>"€", but also Germanic umlauts as "ö") in their bodies are shunted and
>not delivered. (Mails with special characters only in their subjects but
>not in their bodies are not affected by this error.)

This looks like a legitimate bug.  Would you mind reporting it at:

https://gitlab.com/mailman/mailman

Cheers,
-Barry
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Question about confirming each email for one subscriber

2015-05-29 Thread Tom Coradeschi

> On 28 May 2015, at 5:17 PM, Nancy C  wrote:
> 
> Hi
> 
> 
> 
> We have a member who is very computer / email illiterate & continually sends
> emails that should not get through
> 
> to the group as a whole.
> 
> 
> 
> Is there a setting that could be made so her emails always come to the
> listkeepers first?

Sure: Put that user’s account in moderation.

—
tom coradeschi
tc...@skylands.ibmwr.org

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] Mailman 3: Uncaught runner exception: 'ascii' codec can't encode character

2015-05-29 Thread casi.pw
Hello,

I'm trying to run mailman 3 in production on a shared server. Mailman
gets its mail from exim via LMTP. First it appeared to work fine, but I
got a problem:

According to my mailman.log, mails with special characters (in this case
"€", but also Germanic umlauts as "ö") in their bodies are shunted and
not delivered. (Mails with special characters only in their subjects but
not in their bodies are not affected by this error.)



May 29 01:17:26 2015 (2332) ACCEPT: <5567.5040...@.net>
May 29 01:17:27 2015 (2317) Uncaught runner exception: 'ascii' codec
can't encode character '\u20ac' in position 1: ordinal not in range(128)
May 29 01:17:27 2015 (2317) Traceback (most recent call last):
  File
"/home/casi/mailman3/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/core/runner.py",
line 165, in _one_iteration
self._process_one_file(msg, msgdata)
  File
"/home/casi/mailman3/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/core/runner.py",
line 258, in _process_one_file
keepqueued = self._dispose(mlist, msg, msgdata)
  File
"/home/casi/mailman3/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/runners/pipeline.py",
line 41, in _dispose
process(mlist, msg, msgdata, pipeline)
  File
"/home/casi/mailman3/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/core/pipelines.py",
line 62, in process
handler.process(mlist, msg, msgdata)
  File
"/home/casi/mailman3/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/handlers/to_digest.py",
line 54, in process
mbox.add(msg)
  File "/package/host/localhost/python-3.4/lib/python3.4/mailbox.py",
line 601, in add
self._toc[self._next_key] = self._append_message(message)
  File "/package/host/localhost/python-3.4/lib/python3.4/mailbox.py",
line 752, in _append_message
offsets = self._install_message(message)
  File "/package/host/localhost/python-3.4/lib/python3.4/mailbox.py",
line 824, in _install_message
self._dump_message(message, self._file, self._mangle_from_)
  File "/package/host/localhost/python-3.4/lib/python3.4/mailbox.py",
line 214, in _dump_message
gen.flatten(message)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 112, in flatten
self._write(msg)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 178, in _write
self._dispatch(msg)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 211, in _dispatch
meth(msg)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 433, in _handle_text
super(BytesGenerator,self)._handle_text(msg)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 246, in _handle_text
self._write_lines(payload)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 158, in _write_lines
self.write(laststripped)
  File
"/package/host/localhost/python-3.4/lib/python3.4/email/generator.py",
line 407, in write
self._fp.write(s.encode('ascii', 'surrogateescape'))
UnicodeEncodeError: 'ascii' codec can't encode character '\u20ac' in
position 1: ordinal not in range(128)
May 29 01:17:27 2015 (2317) SHUNTING:
1432855047.4798193+1fe1f94488b77c19d5521cb8cbcda48f52828752



Deleting the list's digest.mmdf file had no effect. "mailman unshunt"
created a new, empty digest.mmdf file, but the mails where shunted again.

Is there any solution for this issue?

Best regards,
casi

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Conceal the member's address

2015-05-29 Thread Stephen J. Turnbull
Mark Sapiro writes:

 > Thats because they should be %(user_address)s, etc., not $(user_address)s.

Oops, sorry about that.  Too much shell programming (and I don't use %
formatting anymore, I almost always use .format).

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] debian jessie - apache2.4.

2015-05-29 Thread Mustafa Akgul

I have debian jessie running apache2 2.4.10-10 , mailman
 1:2.1.18-2 and
postfix 2.11.3-1
I have  difficulty i  mailman-apache interface.
I was running on debian7 and apache2.2 nicely.
I took mailman, apache.conf, modified  allow,deny  setting

http://filiz.inet-tr.org.tr/cgi-bin/mailman/listinfo
ask what to do with listinfo

http://filiz.inet-tr.org.tr/cgi-bin/mailman/admindb/edu-net
I got
The requested URL /cgi-bin/mailman/admindb/edu-net was not found on this server

mailman.conf in apache sites-enabled is:

ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
Alias /pipermail/ /var/lib/mailman/archives/public/
Alias /images/mailman/ /usr/share/images/mailman/


AllowOverride None
Options ExecCGI
#AddHandler cgi-script .cgi
Require all granted


Options FollowSymlinks
AllowOverride None
Require all granted


AllowOverride None
Require all granted



ServerName liste.inet-tr.org.tr
ServerAlias filiz.inet-tr.org.tr
DocumentRoot /var/www/web
ErrorLog /var/log/apache2/liste-error.log
CustomLog /var/log/apache2/liste-access.log combined


Options FollowSymLinks
AllowOverride None



Any suggestion ?
Best regards

-- 
Mustafa Akgul 
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org