Great Circle Associates Majordomo-Users
(April 1999)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Please, help me. Restrict post by domain
From: Chris Marble <cmarble @ orion . ac . hmc . edu>
Organization: Harvey Mudd College, Claremont CA USA
Date: Fri, 30 Apr 1999 07:44:13 -0700 (PDT)
To: nunes @ inf . ufrgs . br
Cc: Majordomo-Users @ GreatCircle . COM
In-reply-to: <199904292024.RAA27373@inf.ufrgs> from "Cristina Moreira Nunes" at Apr 29, 1999 05:24:27 PM
Reply-to: Chris_Marble @ hmc . edu

Cristina Moreira Nunes wrote:
> 
> I have a restrict list in may server. However, I would like to restrict it 
> based on domain (such as "@inf.ufrgs.br". Is there a way to do this?
> I am using majordomo 1.94.4 and Solaris 5.1.1.

I do it by using procmail to filter the mail headed to the -outgoing list.
If it's from our domain then it goes to a renamed outgoing list.  If it's
from another domain it goes off to another mailing list.  Here's the procmail
script:
:0:
* ^From.*hmc\.edu
! fac-l-outgoing
:0:
! faculty-announce-l

And here's the aliases for the mailing list:
faculty-l: "|/usr/local/server/list/majordomo/wrapper resend -l faculty-l faculty-l-outgoing"
faculty-l-manager: Chris_Marble@hmc.edu
faculty-l-approval: faculty-l-manager
faculty-l-request: "|/usr/local/server/list/majordomo/wrapper request-answer faculty-l"
faculty-l-outgoing: "|/usr/local/bin/procmail -m /usr/local/server/list/Script/fac-fil"
fac-l-outgoing: :include:/usr/local/server/list/lists.majordomo/faculty-l,faculty-l-archive
faculty-l-archive: "|/usr/local/server/list/majordomo/wrapper archive2.pl -a -m -f /usr/local/server/list/archives/faculty-l"
-- 
  Chris_Marble@hmc.edu - HMC UNIX & Information Systems Manager
  My opinions are my own and probably don't represent anything anyway.


Follow-Ups:
References:
Indexed By Date Previous: Only one footer and header
From: Samiech Alloush <samiech@g-michael.com>
Next: Bounce and Huge Lists
From: Phil Bernstein <phil_bernstein@net-waves.com>
Indexed By Thread Previous: Please, help me. Restrict post by domain
From: Cristina Moreira Nunes <nunes@inf.ufrgs.br>
Next: Re: Please, help me. Restrict post by domain
From: Mark Crocker <mcrocker@micron.com>

Google
 
Search Internet Search www.greatcircle.com