Re: message moderation question
John Keith <[email protected]> 29 Nov 2007 17:30:33 -0800
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Message-ID | <[email protected]> |
"John Widera" <[email protected]> writes: > I have been trying to set up an ezmlm list so that we can moderate > messages. What we would like is to be able to moderate all posts by > subscribers and reject all other posts. The EZMLM doc. hints that > this is pointless, but it's really the most useful application of > message moderation. Has any list member done this? I see that some > third party commercial support folks have done it: > > "Customized Kavi Mailing List Manager switch. The -y switch is used to > create the -mOuy combination that rejects public posts and moderates > messages from all other senders. 'Subscribers can post, all others are > rejected," > We can't figure out how they did this. Can anyone help us with this? I can help. The way to have real fun with ezmlm is to mess around with the ezmlmrc file to create qmail delivery rules that serve your purpose. I don't like to deviate too much from what "man ezmlm-make" tells you, but sometimes it's worth it. You can add a new delivery rule that first does an ezmlm-issubn to see if the user should even be considered for posting to the list. If the user is not a subscriber or is not on the allow list, reject him. Otherwise message delivery will fall through and then you can have your normal ezmlm-store do its thing. The first rule will look something like the following: |<#B#>/ezmlm-issubn '<#D#>' '<#D#>/allow' || { echo "Goodbye. (#5.7.2)"; exit 100 ; } You can create all sorts of interesting access rules, which we routinely do because our list subscribers and posters are all driven from a membership database that grants permissions based on a person's role in the organization. We do other interesting things, such as cleanly separating who can receive from a list vs. who can post to a list. Being a subscriber is not enough; sometimes you also have to be explicitly granted posting rights. Well anyway, you didn't ask about other stuff, so I'll stop here. Drop me a line if you want or need more info. Regards, John Keith