Great Circle Associates Majordomo-Workers
(October 1996)
 

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

Subject: Re: Virtual Majordomo
From: Ajay Kochhar <kochhar @ ari . ari . net>
Date: Mon, 21 Oct 1996 14:41:14 -0400 (EDT)
To: Alan Millar <amillar @ bolis . com>
Cc: majordomo-workers @ GreatCircle . COM
In-reply-to: <m0vBF79-000G0MC@hock.bolis.com>
Reply-to: Ajay Kochhar <kochhar @ ari . ari . net>


  I was hoping to revise this message for application to 
  1.94 but didn't get the chance!  

On Wed, 9 Oct 1996, Alan Millar wrote:

> That pretty much sums it up.  Majordomo doesn't need any patching.
> 
> Set up a majordomo.cf file for each virtual domain, defining
> $whereami as appropriate.  Use your mailer's virtual domain stuff to
> get to it, making an alias for it if necessary.
> 
> Alias entry:
> 
>   majordomo-domain2: |/your/wrapper majordomo -C /your/domain2.cf
> 
> Virtual domain stuff:
> 
>   majordomo@domain2 = majordomo-domain2
>   majordomo-owner@domain2 = whoever
> 
> I use the sendmail virtual domain examples right off the FAQ.
> Works for me.


  This pretty much works for "majordomo", but I had to make a 
  few more changes to get resend to deliver messages as to
  "listname@virtual.domain".  Here's what I did to our install
  of Majordomo (pre 1.94):

  in "config_parse.pl":

	change: require 'majordomo.cf';
	to:	require "$cf";

  in "majordomo":

	change: $hostname = &chop_nl(`hostname`);
	to:	$hostname = "$whereami";

  in majordomo.pl:

	change:	$mail_from = "Majordomo";
		$mail_sender = "Majordomo-Owner";
	to:	$mail_from = "Majordomo@$whereami";
		$mail_sender = "Majordomo-Owner@$whereami";
  in "resend":

	ADD:

# Virtual Majordomo Hack
$_ =~ s/^to:(.*)\b$opt_l\b(.*)$/To:$1 $opt_l@$whereami $2/i ;

	before:

                &check_hdr_line($_);  # check for length & balance
                $kept_last = 1; 
                print OUT $_; 
 

   Similar to the alias change for majordomo, the list alias should be
   changed to:

	listname: |/your/wrapper resend -C /your/domain2.cf


  These changes appear to be working for me.

-Ajay.









References:
Indexed By Date Previous: Announcing Majordomo 1.94!
From: Chan Wilson <cwilson@slurp.neu.sgi.com>
Next: Re: Announcing Majordomo 1.94!
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: Virtual Majordomo
From: "Alan Millar" <amillar@bolis.com>
Next: 1.94a3, FreeBSD 2.1.5, Perl 5.003
From: Robert Sexton <robert@kudra.com>

Google
 
Search Internet Search www.greatcircle.com