Re: Setting majordomo.cf in $whereami on a cPanel box
Bigby Findrake <[email protected]> Mon, 13 Jun 2011 14:19:29 -0700 (PDT)
| Newsgroups | gmane.mail.majordomo.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 13 Jun 2011, plattapuss wrote: > 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. I use sendmail with my virtual domain majordomo configuration. I have each majordomo mail alias for separate domains point to a separate majordomo.cf file. Here is an example alias: majordomo-example.com: "|/usr/local/majordomo/wrapper majordomo -C /usr/local/majordomo/majordomo.example.com.cf"