The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server Account Transfers and Mailman

Discussion in 'E-mail Discussions' started by SiteLink, May 18, 2005.

  1. SiteLink

    SiteLink Member

    Joined:
    Nov 8, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I've just switched servers and used the multiple account transfer feature of WHM (both servers were running identical versions of WHM/cPanel [10.2.0-RELEASE 82] and apache [1.3.33]). Everything transferred over perfectly except for some minor glitches.

    One problem I'm having is one of my users who is using Mailman is seeing all of his "EDIT" links in cPanel->Mail->Mailing Lists as "http://mail.server1.myhostname.net/..." rather than "http://mail.hishostname.com/...". ("server1.myhostname.net" is the name of my server.)

    How do I restore his Mailman configuration so the links are correct? I can manually enter the URL to get to his editting pages, but again the links on that page are pointing to 'myhostname'.

    The list data and message boxes do appear in "/usr/local/cpanel/3rdparty/mailman/archives/", and the config files are in "/usr/local/cpanel/3rdparty/mailman/lists/".

    So it seems all the data has been moved, but the hostname was not restored for his lists.

    How do I reset his Mailman hostname?
     
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    try at shell as root :

    /scripts/resetmailmanurls

    might help.
     
  3. SiteLink

    SiteLink Member

    Joined:
    Nov 8, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thanks! That worked after fixing a bug in that script. The following is incorrect in the script...

    Code:
       if (!$haspatch) {
    [line 36]

    It should be changed to...

    Code:
       if ($haspatch) {
    The variable haspatch indicates whether suexec is enabled for cpanel. The original code executed the patches for the mailman_suexec scripts if it was NOT enabled, which is WRONG!

    Anyway, after the fix, the mailman administration pages have the correct links now, but the "EDIT" links on the main cPanel list managemanet page at "cPanel->Mail->Mailing Lists" still show the actual server name instead of the domain name.

    Also, how do I configure Mailman to come up with the URL "http://domain.com/mailman"?

    Thanks again for your help, linux-image!
     
Loading...

Share This Page