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?
--- Em 03/09/2016 13:00, Mark Sapiro escreveu: > On 09/02/2016 01:45 PM, Andre de Azevedo Cunha wrote: > >> i`m trying to reject messages bigger then MAX_MESSAGE_SIZE. >> >> I configured my Hold.py was described bellow: >> >> replaced >> >> hold_for_approval(mlist, msg, msgdata, >> _ >> MessageTooBig(bodylen,_mlist.max_message_size)) >> >> with >> >> rej = MessageTooBig(bodylen, mlist.max_message_size) >> _ raise Errors.RejectMessage, rej.reason_notice_ >> >> 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? ------------------------------------------------------ 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