我的客户以前有一个网站,该网站与另一位使用plesk的绅士托管。
从那以后,我接管了网站并将域迁移到我的服务器,因此它是我的服务器的服务器,而不是Plesk个人的服务器。
我知道那个家伙使用123reg托管。而且我也有IP地址,记录和什么,但没有名称服务器。
我的问题是:我的客户没有告诉我他们需要这些电子邮件以及网站一起迁移,因此现在他们无法访问将网站移交给我之前的电子邮件。在您说之前,我已经在线阅读了很多文章和线程以尝试找到答案,但是它们有不同的问题或使用过时的解决方案。
我需要知道如何访问旧电子邮件收件箱以ftp上的电子邮件或手动传输。
所以这是sit:
- 目前使用我的名称服务器与我托管。
- 我需要来自同一域的收件箱和整体地址的电子邮件。
- 这些电子邮件是在不同名称服务器的旧服务器上发送和接收的。
- 我的服务器是CPANEL,旧的是Plesk。
- 旧主机是123reg。
- 新主机是Krystal。
- 我有旧服务器的IP和记录,但没有名称服务器。
- 我都有每个邮箱的所有密码。
- 我无法访问旧服务器的仪表板(不是我的(。
- 我有3天。
请帮助我纠正这个新秀错误!我再也不会假设他们不需要电子邮件!
任何问题,请询问。我知道我有修复它但不知道该方法的方法。
谢谢一堆!Kieron
问题是旧服务器使用的是使用Postfix Email Server的Plesk,而新服务器则使用使用EXIM的CPANEL。因此,没有传输电子邮件的直接方法。您应该使用IMAP手动迁移电子邮件。如果只有几个电子邮件帐户,请尝试使用以下步骤:
- 在新服务器上与旧服务器上的新服务器创建相同的电子邮件帐户。使用相同的拼写和大写。
-
将新电子邮件帐户提供您在旧服务器上使用的相同密码。如果需要,您可以在完成迁移过程后更改密码。
-
在您的本地电子邮件客户端中,创建两个新的电子邮件帐户。
- 这些都将用于相同的电子邮件地址。
- 他们都将使用相同的密码。
- 必须将它们都配置为使用IMAP连接。
- 每个帐户的传入服务器(或IMAP服务器(将有所不同。您应该在可能的情况下使用新服务器的IP地址,以及旧服务器而不是域名的访问域或IP地址。这将避免任何可能的DNS冲突。
- 在两个帐户在线的情况下,打开连接到旧服务器的帐户的收件箱。将消息从此收件箱拖放到新服务器上的收件箱。
- 就是这样!如果您有很多电子邮件,请给帐户几分钟以完成同步。完成后,您的旧电子邮件将在新服务器上的邮箱中。
如果您可以访问新服务器中的控制台,则可以尝试安装IMAPSYNC,例如 Centos :
如果您不访问控制台或无法安装IMAPSYNC,则可以随时在此处使用在线版本:https://i005.lamiral.info/x/
首先通过yum安装访问EPEL存储库的访问:
yum install epel-release
然后安装imapsync及其依赖项:
yum install imapsync
然后,您可以创建一个读取TXT文件并同步您想要的所有IMAP邮箱的脚本(只用作源服务器旧邮件服务器的IP地址(:
#!/bin/sh
#
# $Id: sync_loop_unix.sh,v 1.8 2018/02/12 21:53:40 gilles Exp gilles $
# Example for imapsync massive migration on Unix systems.
# See also http://imapsync.lamiral.info/FAQ.d/FAQ.Massive.txt
#
# Data is supposed to be in file.txt in the following format:
# host001_1;user001_1;password001_1;host001_2;user001_2;password001_2;
# ...
# Separator is character semi-colon ";" it can be changed by any character changing IFS=';'
# in the while loop below.
# # Each line contains 6 columns, columns are parameter values for
# --host1 --user1 --password1 --host2 --user2 --password2
# and a trailing empty fake column to avoid CR LF part going
# in the 6th parameter password2. Don't forget the last semicolon.
#
# You can add extra options after the variable "$@"
# Use character backslash at the end of each supplementary line, except for the last one.
# You can also pass extra options via the parameters of this script since
# they will be in "$@"
# The credentials filename "file.txt" used for the loop can be renamed
# by changing "file.txt" below.
echo Looping on account credentials found in file.txt
echo
{ while IFS=';' read h1 u1 p1 h2 u2 p2 fake
do
{ echo "$h1" | tr -d 'r' | egrep '^#|^ *$' ; } > /dev/null && continue # this skip commented lines in file.txt
echo "==== Starting imapsync from host1 $h1 user1 $u1 to host2 $h2 user2 $u2 ===="
imapsync --host1 "$h1" --user1 "$u1" --password1 "$p1"
--host2 "$h2" --user2 "$u2" --password2 "$p2"
"$@"
echo "==== Ended imapsync from host1 $h1 user1 $u1 to host2 $h2 user2 $u2 ===="
echo
done
} < file.txt
这是.txt文件的一个示例(您必须使用邮箱的数据进行编译以同步(。
格式是:
源服务器;源用户;源密码;目标服务器;目标用户;目标密码
# Example file.txt for imapsync massive migration.
#
# $Id: file.txt,v 1.14 2018/02/11 13:42:58 gilles Exp gilles $
#
# Each line contains 6 columns, columns are parameters for
# --host1 --user1 --password1 --host2 --user2 --password2
# and a trailing empty fake column to avoid CR LF part going
# in the 6th parameter password2. Don't forget the last semicolon.
#
# Windows: see the script examples/sync_loop_windows.bat
# Unix: see the script examples/sync_loop_unix.sh
#
# Lines starting with a # are comments and ignored
# Blank lines are ignored as well
# Now the data example
host001_1;user001_1;password001_1;host001_2;user001_2;password001_2;
host002_1;user002_1;password002_1;host002_2;user002_2;password002_2;
host003_1;user003_1;password003_1;host003_2;user003_2;password003_2;
# Another comment blabla
host004_1;user004_1;password004_1;host004_2;user004_2;password004_2;
# This last example is a real one, ie, truly working in the real world.
test1.lamiral.info;test1;secret1;test2.lamiral.info;test2;secret2;