1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Error in transfer of mail accounts on a specific scenario.

Discussion in 'Plesk Expand 2.3 Troubleshooting Issues' started by ideasmultiples, Oct 17, 2008.

  1. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    "From" A -> Plesk 8.4 server (spamassassin installed)
    "To" B -> Plesk 8.6 server (NOT have installed spamassassin) WITH C-> Centraliced Plesk 8.6 server with spamassassin installed.

    Expand error

    "The solution"

    Install spamassassin in B

    "The new problem"

    An unnecessarily process, consuming memory and resources.
     
  2. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    In the Expand 2.3.2 such migrations must be completed with errors and can be comfirmed or rolled back. You do not require to install spamassassin in B.
     
  3. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    Ok, but this not is the question, if spamassassin is not installed in web server "B", all spam config of accounts are lost.

    If you need a "clear" transfer need pay 1 more plesk spam license (Whi?) an spamassassin working in "B"....
     
  4. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    Why do you need to have spam config values in "B"? The spamassassin service really working in "C".
     
  5. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    Not need in "B", but error is for for accounts in "B" or in centraliced mail server "C"?

    mail accounts were also created in web server "B" using space in /var/qmail/mailnames, can be safe deleted to free the space occupied (some times a lot of GB)?
     
  6. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    This is error for accounts in centraliced mail server "C".
    Mail accounts in "B" can be deleted.
     
  7. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    Wrong, error only disapaer if spamassassin is active in WEB SERVER "B", spamassassin is active in centraliced mail server "C" from beginnig.

    If spamassassin is installed & working (and with license) in web server "B" & mail server "C" migrations work without errors, tested whit same data, same domains in two modes.
     
  8. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    When you start migrations from "A" to "B" (assigned to "C") the Expand run two separate migration processes - migration from "A" to "B" and migration from "A" to "C". The migration from "A" to "B" is called 'migration'. The migration from "A" to "C" is called 'mail migration'. You can look in Expand status and errors for both migration types - 'Status' and 'Mail status', 'Migration errors' and 'Mail migration errors'. The spamassassin errors is significant for 'mail migration' and is not significant for 'migration'.
     
  9. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    Thanks for the explanation, if it is clear now.

    Does the "migration" should automatically delete mail accounts transferred from "A" to "B"?

    Or is it necessary to do so manually due a expand trouble?
     
  10. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    The Expand can delete such mail accounts automatically, but this is wrong way. We want the ability from the Plesk migration manager and the Plesk XML API RPC to migrate mail- or hosting-data only.
     
  11. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    How that is done to Expand automatically delete the accounts of the web server "B" after the transfer of the domain?

    Mail accounts are duplicated in "Web server B" (which are not used) and "mail server C" which is the right place.
     
  12. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    We will fix this issue in next the Parallels Plesk Expand release.
     
  13. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    Thanks gold.

    Then, it's safe to manually delete mail accounts duplicate the "webserver B" (in /var/qmail/mailnames) to free up space?
     
  14. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    We can delete duplicate mail accounts using the Parallels Plesk XML API RPC only. I think that this operation must free up disk space in 'var/qmail/mailnames'.
     
  15. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
    Deleting mail content in transfered/converted servers from Plesk to expand with Cmail server free up some GB in HD, and speed up backups....

    WARNING: This script delete ALL content of user mailbox NOT USE in standar Plesk servers, only in Plesk web server in Expand with linked cmail servers

    Use this script to delete all content of var/qmail/mailnames without deleting mail system dirs or syste files, use under your responsability, NOT guaranted, make backup first ;)

    Code:
    #!/bin/sh
    #
    # Borra el contenido de las cuentas de correo de todos los dominios PLESK 8.x
    # Se obtienen los dominios del servidor directamente desde el dir /var/qmail/mailnames
    #
    echo " -------------------------------------" 
    echo " mail content delete for Parallels expand webservers"
    echo " (C)2009 ideasmultiples.com"
    echo " expandClearMail 1.0 "
    echo " -------------------------------------"
    # Prepara directorios
    DIR_DATA="/var/qmail/mailnames/"
    cd $DIR_DATA;
    DOMAINS=`ls */* -d`;
    for DOMAIN in $DOMAINS;
    do
        SCAN_DIRS=`find /var/qmail/mailnames/$DOMAIN/ -name cur -or -name new -or -name \. | tr " " ","` 
       # Tr used to working with spaces in names
        for DIR_INUSE in $SCAN_DIRS;
            do
            DIR_SCAN=`echo $DIR_INUSE | tr "," "\ "`;
            if [ -d "$DIR_SCAN" ]; then
                # echo $DIR_SCAN;
                MAILCOUNT=`ls "$DIR_SCAN" | wc -l`;
                if [ $MAILCOUNT -gt 1 ]; then
                    #carga los emails a borrar
                    LIST_TO_DELETE=`ls "$DIR_SCAN"`;
                    echo "$DIR_SCAN deleting $MAILCOUNT emails";
                    # borra file por file para poder usarlo en directorios con miles de emails
                    for FILE_NAME in $LIST_TO_DELETE
                       do
                          if [ -f "$DIR_SCAN/$FILE_NAME" ]; then
                            rm -f "$DIR_SCAN/$FILE_NAME";
                          fi         
                       done
                    fi
                fi
            done
    done
    
    
     
Loading...