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
"email@example.com". Here's what I did to our install
of Majordomo (pre 1.94):
change: require 'majordomo.cf';
to: require "$cf";
change: $hostname = &chop_nl(`hostname`);
to: $hostname = "$whereami";
change: $mail_from = "Majordomo";
$mail_sender = "Majordomo-Owner";
to: $mail_from = "Majordomo@$whereami";
$mail_sender = "Majordomo-Owner@$whereami";
# Virtual Majordomo Hack
$_ =~ s/^to:(.*)\b$opt_l\b(.*)$/To:$1 $opt_l@$whereami $2/i ;
&check_hdr_line($_); # check for length & balance
$kept_last = 1;
print OUT $_;
Similar to the alias change for majordomo, the list alias should be
listname: |/your/wrapper resend -C /your/domain2.cf
These changes appear to be working for me.