On 09/05/2016 07:10 AM, Andre de Azevedo Cunha wrote:
> Mark,
> 
> 
> the important to me is reject emails to the lists bigger then the value set 
> in 
> MAX_MESSAGE_SIZE in the list`s config. The default behavior is moderate this 
> message, what don`t solve me problem. Exist one way to do this?


I understand what you are trying to do and what you have done should
work. As I said in my prior reply


> Em 03/09/2016 13:00, Mark Sapiro escreveu:
> 
>> On 09/02/2016 01:45 PM, Andre de Azevedo Cunha wrote:
>>>
>>> The message was rejected, but the sender dont receive any notify about
>>> that. The mailman vette log too. How can i solve this?
>>
>>
>> Logging for rejected messages was added in 2.1.16. See
>> <https://bugs.launchpad.net/mailman/+bug/1068837>. Prior to that, there
>> won't be a vette log entry.
>>
>> I don't know why there isn't a notice to the user. Is there anything in
>> Mailman's error log?
>>
>> As a test, add some nonmember address to the list's
>> reject_these_nonmembers and send a post from that address. Does that
>> receive a rejection notice?


In order to help further, I need more information. Did you look in
Mailman's error log? Did you do the test suggested above?

Send me off list a copy of your modified Mailman/Handlers/Hold.py module
and I'll look at it to see if there is a problem there.

Also, if you want rejections to be logged in vette, you can apply the
attached patch to Mailman/Queue/IncommingRunner.py.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
=== modified file 'Mailman/Queue/IncomingRunner.py'
--- Mailman/Queue/IncomingRunner.py	2005-08-27 01:40:17 +0000
+++ Mailman/Queue/IncomingRunner.py	2012-10-21 20:32:18 +0000
@@ -165,6 +165,13 @@
                 # longer needs to be queued.
                 return 0
             except Errors.RejectMessage, e:
+                # Log this.
+                syslog('vette', """Message rejected, msgid: %s
+        list: %s,
+        handler: %s,
+        reason: %s""",
+                       msg.get('message-id', 'n/a'),
+                       mlist.real_name, handler, e.notice())
                 mlist.BounceMessage(msg, msgdata, e)
                 return 0
             except:

------------------------------------------------------
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

Reply via email to