Hello All: I have been scouring the archives and etc looking for the appropriate way to restrict posting to any poster from my domain.
I saw some postings that implied that the "posters" field could accept regular expressions. I quickly gave up on this though, as subsequent postings seemed to imply that procmail was the true answer. Jo Brooks posted probably the most helpful answer I could find. (see below, many thanks Joe!) I have some questions about the implimentation of it though, and thought I would ask some questions to make sure I understand it correctly: 1) Using the procmail script below, the mailing list should not be set to member posting only? It seems like a message which passes by the first rule in the procmail script gets posted as normal. Therefore if I had member_posting_only enabled it would be held for moderator approval? 2) Messages that do not match the domain listed in the procmail script are then sent to mail list owner directly? That is to say, the message no longer flows through the normal approve/reject/discard and etc web interface? If the message was indeed a valid message for the mailing list then the mailowner would have to forward the email to the mailing list? It seems like this is the way it is working for me. I just want to make sure I am not missing something. Cheers! Jim McCormack > List: mailman-users > Subject: Re: [Mailman-Users] (Q) Rejecting mail from outside local system > From: Jo Brooks <[EMAIL PROTECTED]> > Date: 2001-11-05 15:51:24 > [Download message RAW] > > Timothy Murphy wrote: > > > > Is there a simple way of only allowing posters > > from a given domain or domains? > > Eg can I use wildcards (eg *@*.tcd.ie) when specifying allowed posters? > > I had to cook up a procmail filter and add it to the filters > directory. Seems to have worked for the several lists that wanted > to implement it, so I must've gotten it right :) > > I'm rather new to procmail, so it took a whole lot of scouring thru > the mailman-users and majordomo-users archives at marc.theaimsgroup.com > but those examples helped immensely. This is what I ended up with, > in a filter I called "restricts": > > :0 > * !^From:.*@.*\.dhl\.com > |/home/mailman/mail/wrapper mailowner ${MAILMAN} > > :0 > |/home/mailman/mail/wrapper post ${MAILMAN} > > and the alias entry looks like: > > testing: "|/usr/bin/procmail -m MAILMAN='testing' /home/mailman/filters/r > estricts" > > Hope this helps. > > > Jo Brooks > DHL Worldwide Express > Systems Support Group > ------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py