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:
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"); }
This adds the lists that have been suspended to the cpmove-domain.tar.gz file. Once copied and extracted, it works fine.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"); }



LinkBack URL
About LinkBacks
Reply With Quote





