> CE> Is there a way to reject postings with attachments? > CE> This is starting to get to be a problem. I know > CE> I can limit message size, this isn't really the > CE> problem as much as people including non-text > CE> items like pictures and word files. > > Sanjay posted his approach, which is probably the best you can do for > now without hacking the code. An idea we threw around last year was > to have configurable filters the message could pass through. One such > filter could either strip or reject attachments, similar to what you > describe. Another option for the time being involves wrapping your aliases with a filter like procmail. This is what I do for my majordomo lists or any place that I need extra filtering (note the majordomo slant of these recipes, but I've converted stuff enough here so that it should apply to Mailman...) And yes, it's a hack. :) listname :"|/usr/bin/procmail -m LIST='listname' EXTRA='' /etc/mail/procmailrc.lists" listname-admin :"|/home/staff/mailman/mail/wrapper mailowner listname" listname-request :"|/home/staff/mailman/mail/wrapper mailcmd listname" owner-listname :listname-admin listname-owner :listname-admin /etc/mail/procmailrc.lists looks like this: PATH=/usr/bin:/usr/local/bin:/bin HOME=/etc/mail # if EXTRA isn't set to an archiver or something, set to devnull # so that we have another address to hide the -outgoing address # in the Received: headers -- another ugly majordomo-required # hack :0 * EXTRA ?? ^^^^ { EXTRA="devnull" } # check against message-id database to make sure that this isn't # a duplicate post :0 Wh: $HOME/list-cache/${LIST}.lock | formail -D 8192 $HOME/list-cache/${LIST}.cache # mail people to let them know that I don't like attachments # on the list :0 * ^(Content-Type: multipart/mixed;|X-MS-Attachment: WINMAIL.DAT) * ! ^FROM_DAEMON * ! $ ^X-Listname: ${LIST}@mallorn.com { :0 hc | (formail -r -A"Precedence: bulk" \ -A"X-Listname: ${LIST}@mallorn.com" \ -A"From: owner-${LIST}@mallorn.com" ;\ cat "/usr/lib/mail/reply.mime" | sed s/LISTNAME/${LIST}/) | $SENDMAIL -t -f owner-${LIST}@mallorn.com } :0 | /home/staff/mailman/mail/wrapper post $LIST,$EXTRA Chris