Fetchmail/Getmail on ISPConfig 3, Debian 7

Discussion in 'ISPConfig 3 Priority Support' started by inside83, Mar 6, 2015.

  1. inside83

    inside83 Member HowtoForge Supporter

    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:
    2015-03-06 13_18_49-ISPConfig 3.0.5.4p5.png
    It does nothing. I configured Fetchmail like this in 2 rules for 2 different users.
    • When I configure Fetchmail like this:
    2015-03-06 13_18_49-ISPConfig 3.0.5.4p5.png
    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:
    2015-03-06 13_27_40-getmail - My VPS_NSC_root@vps3.goinfobl.com - WinSCP.png
    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. inside83

    inside83 Member HowtoForge Supporter

    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:
    [email protected]:~# 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?
     
    Last edited: Mar 6, 2015
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    you can use imapcopy as well.
     
  5. inside83

    inside83 Member HowtoForge Supporter

  6. inside83

    inside83 Member HowtoForge Supporter

    DDArt and till like this.

Share This Page