Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm using cPanel and Mailman (mailing lists) on a shared server with a webhost. After changing the 'A' record for one of my add-on domains (let's say, so that its website traffic goes to another sort-of webhost ( but email stays where it is (a few other changes were done to keep mail were it was), I now find that my Perl scripts which try to access the Mailman mailing lists for that domain, don't work.

Note: I prefer to sometimes use Perl scripts to work with the mailing lists, instead of doing it from cPanel because:

  • It allows people to make mailing list updates via my Perl web application.
  • It allows me to make bulk queries and updates.

The 1st reason the scripts are failing is because the URL they usually use to access all my mailing lists for several domains from Perl is: domain-name/mailman/listinfo
So, because the's 'A' record now points to, the above URL tries to find at, but fails with a "404 - Not Found" error, of course, because the mailing lists are not there.

My webhost has suggested I create a subdomain (e.g., and then recreate all the mailing lists for in that, but I want to avoid that if possible because of the hassle and side-effects.

Q1. Any suggestions on what URL I can now use to access the mailman/listinfo page of my mailing lists?

Q2. Or, can you suggest a way to prevent my requests for from being redirected to with the rest of the traffic for

Months later...
Now that I happen to have another domain name for the same site (let's call it ""), I'm planning to work around this issue as follows. In cPanel, redirect web traffic to, and I can even use the "Wildcard Redirect" option. I'll then move the mailing lists and accounts to the domain, and add a domain forwarder to forward all emails to If I then visit pages like it will fail because of the wildcard redirect (and that's fine coz I don't need to go there). However, my tests show that the wildcard redirect works only to a depth of 1 directory, so when I visit pages like, it should work. (I've tested that last part and it does work.)

share|improve this question
Not possible. DNS records are looked up completely independent of any path appended to the domain. DNS servers will never see the path the user is requesting, only the domain name. – nathangiesbrecht May 8 '14 at 17:23
OK - thanks Nathan. – Terry May 8 '14 at 21:32

1 Answer 1

up vote 3 down vote accepted

Unfortunately with your current hosting setup, there is nothing you can do except to make a separate subdomain for your mailing lists.

You need a reverse proxy in front of your site, that forwards traffic based on the URL either to the webydo hosting service or your server that has the mailman software.

This cannot be accomplished via DNS.

Your terminology is not correct. There is no redirection performed when DNS A records are used. DNS A records simply tell on which IP address a particular domain name is. So, is not redirected anywhere.

share|improve this answer
Thanks for all that, Tero. – Terry May 8 '14 at 21:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.