Hello, I have a problem with fetchmail/getmail on ISPConfig 3. I want to migrate all mail accounts from one of my clients from ISP's mail server to in-house ISPConfig 3. I added the same mail domain od ISPConfig 3, opened the same mail accounts and now I am trying to use ISPConfig's Fetchmail function to suck up all their e-mails to the new server. @till I followed your guidance here: https://www.howtoforge.com/community/threads/fetchmail-use-ip-instead-of-fqdn.46710/#post-231863 and my hosts file looks like this: Code: 127.0.0.1 localhost #local IP my.server.com my static IP my.server.com my old mail server IP old-mydomain.com old-mydomain # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters The problem is this: I configured 4 "rules" in Fetchmail and only one of them works. When I configure Fetchmail like this: It does nothing. I configured Fetchmail like this in 2 rules for 2 different users. When I configure Fetchmail like this: I configured Fetchmail like this in 2 rules for 2 different users and it works for one of the users. This is how my /etc/getmail folder looks like: And each of those files has several lines looking like this: Code: 1326959489/15 1326959489/14 1326959489/10 So that tells me that the rules are working and e-mail are getting sucked from old-mydomain.com but only one of the rules actually delivers e-mails to destination folder. What am I doing wrong? Please help.
Then the fetchmail function is the wrong way. This function is used to fetch emails regularily from a pop account at another provider, it is not for migrating mails. To migrate mails, use a toollike imapsync.
Ok, following this guide: https://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync and at 3 imapsync Installation I get: Code: root@vps3:~# aptitude install imapsync Couldn't find any package matching "imapsync". However, the following packages contain "imapsync" in their description: imapcopy Couldn't find any package matching "imapsync". However, the following packages contain "imapsync" in their description: imapcopy No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. I found here: http://askubuntu.com/questions/575776/aptitude-install-imapsync-does-not-work-anymore that it is not in the repositories anymore. Is there a way to install it or should I build it or use imapcopy as suggested in the post?
I managed to build imapsync with instructions here: http://askubuntu.com/questions/575776/aptitude-install-imapsync-does-not-work-anymore Used it on a VirtualBox'ed Debian 7 and then followed instructions from here: https://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync I tested one user and works great.
Now i tested multiple users and works great as well. Using this: http://imapsync.lamiral.info/examples/file.txt http://imapsync.lamiral.info/examples/sync_loop_unix.sh Just needed to add: Code: --noauthmd5 at the end, so it looks like this: Code: --host2 imap.side2.org --user2 "$u2" --password2 "$p2" --noauthmd5 Hope it helps someone.