Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default MailMan copy/move account fix

    Just moved a bunch of accounts using WHM. Of course, as others have mentioned, the mailing lists didn't move correctly.

    Why, you may ask?

    To make the transfer easy, I suspended the account, copied it using the WHM copyaccount function on the new server, modified the DNS on the old server (to point to the new one) and then un-suspended the account on the new server.

    All's fine and dandy except the mailing lists. The list archives transferred fine.

    This is because the act of suspending the account moves the list from one directory to another. The pkgacct script doesn't take this into account (no pun intended).

    To fix:

    open /scripts/pkgacct and look for the following code:

    Code:
    foreach $domain (@DNS) {
       nooutputsystemsh("cp ${cpargs} /usr/local/cpanel/3rdparty/mailman/lists/*_${domain} ${tarroot}/${prefix}${user}/mm");
    }
    Add a line to make the following:

    Code:
    foreach $domain (@DNS) {
       nooutputsystemsh("cp ${cpargs} /usr/local/cpanel/3rdparty/mailman/lists/*_${domain} ${tarroot}/${prefix}${user}/mm");
    
    nooutputsystemsh("cp ${cpargs} /usr/local/cpanel/3rdparty/mailman/suspended.lists/*_${domain} ${tarroot}/${prefix}${user}/mm");
    }
    This adds the lists that have been suspended to the cpmove-domain.tar.gz file. Once copied and extracted, it works fine.

  2. #2
    Member
    Join Date
    Apr 2003
    Location
    Lisbon - Portugal
    Posts
    120
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Maybe cpanel team should add this code?

Similar Threads & Tags
Similar threads

  1. How do you copy / Move a website?
    By Tristan.nl in forum New User Questions
    Replies: 0
    Last Post: 08-11-2010, 06:22 AM
  2. Replies: 3
    Last Post: 05-24-2010, 03:32 AM
  3. Account copy, move everything but home folder?
    By Karabaja in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-08-2009, 08:47 PM
  4. copy script didnt copy mailman lists
    By jnagro in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-11-2004, 03:41 AM
  5. cpanel move questions: howto move account when username exis
    By haze in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-24-2003, 02:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube