
I want to allow pics but nothing else. No html emails, exes, zips etc
I got the list to block everthing but I am not seeing how to allow just
pics to go thru.
-- No Smoking Forum - Http://www.nicodemon.info/community Lansing Forum - Http://www.greater-lansing.com/community
He's Not My President!!! Blue States Rock~
The truth is not that comfortable....no - Moby~

David wrote:
I want to allow pics but nothing else. No html emails, exes, zips etc
I got the list to block everthing but I am not seeing how to allow just pics to go thru.
In content filtering, one way to to this is
filter_content -> yes
filter_mime_types -> empty
pass_mime_types -> multipart/mixed multipart/alternative message/rfc822 text/plain image
This allows only text/plain parts and image parts from multipart/mixed messages and parts, multipart/alternative messages and parts and attached message parts.
If you also want to allow PGP signed messages, add
multipart/signed
application/pgp-signature
to the above pass_mime_types list.
If you want to restrict image types to say GIF, JPEG and PNG only, remove image from the list and add
image/gif
image/jpeg
image/png
Of course, some evil doer can always send a zip or exe to your list with MIME type image/jpeg. In Mailman 2.1.6, you can protect against this to some extent with header_filter_rules (in Privacy options...->Spam filters as described in the FAQ at http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.051.htp. This doesn't work in 2.1.5 and earlier because they don't search sub-part headers for header_filter_rules.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Ok I was trying to both one has to be empty..........duh some times you just look at something so long you dont get it. Yes that worked. I never ran Mailman before so I am trying to get everything set as I am almost ready to go live finally.
One more thing. If people are on moderation is there some place to set it that they dont get notification of being moderated and their message is just held without them knowing it. One more thing and I think I will be all set is there a feature for members to just turn off emails like if they are going on vacation etc?
Mark Sapiro wrote:
David wrote:
I want to allow pics but nothing else. No html emails, exes, zips etc
I got the list to block everthing but I am not seeing how to allow just pics to go thru.In content filtering, one way to to this is
filter_content -> yes
filter_mime_types -> empty
pass_mime_types -> multipart/mixed multipart/alternative message/rfc822 text/plain image
This allows only text/plain parts and image parts from multipart/mixed messages and parts, multipart/alternative messages and parts and attached message parts.
If you also want to allow PGP signed messages, add
multipart/signed application/pgp-signature
to the above pass_mime_types list.
If you want to restrict image types to say GIF, JPEG and PNG only, remove image from the list and add
image/gif image/jpeg image/png
Of course, some evil doer can always send a zip or exe to your list with MIME type image/jpeg. In Mailman 2.1.6, you can protect against this to some extent with header_filter_rules (in Privacy options...->Spam filters as described in the FAQ at http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.051.htp. This doesn't work in 2.1.5 and earlier because they don't search sub-part headers for header_filter_rules.
-- No Smoking Forum - Http://www.nicodemon.info/community Lansing Forum - Http://www.greater-lansing.com/community
He's Not My President!!! Blue States Rock~
The truth is not that comfortable....no - Moby~

David wrote:
One more thing. If people are on moderation is there some place to set it that they dont get notification of being moderated and their message is just held without them knowing it.
No. If member_moderation_action is hold or reject, the member is notified. Only if member_moderation_action is discard is there no notice.
One more thing and I think I will be all set is there a feature for members to just turn off emails like if they are going on vacation etc?
Yes. A member can disable delivery from the user options page or by emailing a 'set delivery off' command (requires a 'set authenticate' command - send mail with subject 'set help' to the list-request address for more info).
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro wrote:
David wrote:
One more thing. If people are on moderation is there some place to set it that they dont get notification of being moderated and their message is just held without them knowing it.
No. If member_moderation_action is hold or reject, the member is notified. Only if member_moderation_action is discard is there no notice.
It turns out, I was wrong here. Also, the documentation appears wrong in a different way.
The setting is on the list's General Options page and is respond_to_post_requests. The help for this option says "Approval notices are sent when mail triggers certain of the limits _except_ routine list moderation and spam filters, for which notices are not sent. This option overrides ever sending the notice."
The phrase "_except_ routine list moderation and spam filters, for which notices are not sent" is not correct in that the only notices that aren't sent are when a message is 'discarded' including for a match on mm_cfg.KNOWN_SPAMMERS or when a message is held because emergency is Yes.
Submitters of all held posts regardless of reason except emergency moderation are notified or not depending on the setting of respond_to_post_requests. This includes posts held for routine moderation and posts that match header_filter_rules with a hold action and posts that match bounce_matching_headers.
Thus, you can turn off notices to moderated users by setting respond_to_post_requests to No, but you also turn off all other held post notices as well.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
David
-
Mark Sapiro