Setting majordomo.cf in $whereami on a cPanel box

plattapuss <[email protected]> Mon, 13 Jun 2011 17:03:52 -0400
Newsgroups gmane.mail.majordomo.general
Message-ID <[email protected]>
--00163646dad8b0b86704a59e4172
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I have majordomo working with Exim on a cPanel box. However, we have a few
domains on the cPanel box and I was wondering how I could go about assigning
the correct domain to the $whereami variable in majordomo.cf?

On other control panels I see they have a copy of the entire majordomo
folder in a virtual site, and then call /bin/dnsdomainname to set $whereami.
This doesn't have the desired affect on my setup as I have only one
majordomo lib install.

My structure is like this:

/usr/local/majordomo
/usr/local/majordomo/lib <-- the majordomo install
/usr/local/majordomo/domain1.com/
/usr/local/majordomo/domain1.com/etc <-- aliases and aliases_private in here
/usr/local/majordomo/domain1.com/lists <-- lists, configs and list archives
for domain1.com are here.
/usr/local/majordomo/domain2.com/
/usr/local/majordomo/domain2.com/etc
.
.
.
and so on.

./wrapper config-test runs perfectly as a non root user. If I hard-code
$whereami to a set domain (i.e.: $whereami = 'domain1.com' ) the list works
as expected.

Hopefully my structure is acceptable and that there is a way to find out
what domain is calling majordomo wrapper, so the correct majordomo.cf file
is called.

I am open to any suggestions and more than happy to share my final setup for
others that might want to know how it all works with Exim on a cPanel box.

James

--00163646dad8b0b86704a59e4172
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,
<div><br></div><div>I have majordomo working with Exim on a cPanel box. How=
ever, we have a few domains on the cPanel box and I was wondering how I cou=
ld go about assigning the correct domain to the $whereami variable in <a hr=
ef=3D"http://majordomo.cf">majordomo.cf</a>?=A0</div>
<div><br></div><div>On other control panels I see they have a copy of the e=
ntire majordomo folder in a virtual site, and then call /bin/dnsdomainname =
to set $whereami. This doesn&#39;t have the desired affect on my setup as I=
 have only one majordomo lib install.=A0</div>
<div><br></div><div>My structure is like this:</div><div><br></div><div>/us=
r/local/majordomo</div><div>/usr/local/majordomo/lib &lt;-- the majordomo i=
nstall</div><div>/usr/local/majordomo/<a href=3D"http://domain1.com/">domai=
n1.com/</a></div>
<div><div>/usr/local/majordomo/<a href=3D"http://domain1.com/etc">domain1.c=
om/etc</a> &lt;-- aliases and aliases_private in here</div><div>/usr/local/=
majordomo/<a href=3D"http://domain1.com/lists">domain1.com/lists</a> &lt;--=
 lists, configs and list archives for <a href=3D"http://domain1.com">domain=
1.com</a> are here.</div>
</div><div><div>/usr/local/majordomo/<a href=3D"http://domain2.com/">domain=
2.com/</a></div></div><div><div>/usr/local/majordomo/<a href=3D"http://doma=
in2.com/etc">domain2.com/etc</a></div></div><div>.</div><div>.</div><div>.<=
/div>
<div>and so on.=A0</div><div><br></div><div>./wrapper config-test runs perf=
ectly as a non root user. If I hard-code $whereami to a set domain (i.e.: $=
whereami =3D &#39;<a href=3D"http://domain1.com">domain1.com</a>&#39; ) the=
 list works as expected.=A0</div>
<div><br></div><div>Hopefully my structure is acceptable and that there is =
a way to find out what domain is calling majordomo wrapper, so the correct =
<a href=3D"http://majordomo.cf">majordomo.cf</a> file is called.</div><div>
<br></div><div>I am open to any suggestions and more than happy to share my=
 final setup for others that might want to know how it all works with Exim =
on a cPanel box.</div><div><br></div><div>James</div>

--00163646dad8b0b86704a59e4172--