ISPConfig and Fetchmail instrument

Discussion in 'General' started by aristidemargioglio, Nov 9, 2009.

  1. aristidemargioglio

    aristidemargioglio New Member

    I have a serious problem !

    I wanted to create a backup of my primary e-mail, so I used the Fetchmail tool to route all mail in a new mailbox.

    I went in the fetchmail>fetchmail tab and I found the "get mail" tool.

    I entered the parameters, I included the new e-mail that I had created and:
    1) My box has been emptied (maintained at least 4 years of messages)
    2) In the new mailbox is not got nothing !!!

    Where has all my mail?
    There is the possibility to recover it?

    I have ssh access to the server, but I could not find any solution.


    I hope in your help. :eek:


    Using ISPConfig 3.0.1.3

    Thanks
     
  2. till

    till Super Moderator

    Getmail is not a tool to migrate emails, as every email will get a new date. Getmail is used if you have mailboxes at several providers and want to fetch the emails to one mailbox every x minutes. Normally you migrate emails with a tool like imapsync or you copy the maildir files if the old server sues maildir too. Getmail connects to the mailbox with pop3 and empties the mailbox afterwards. If you did not test before that the target mailbox and the mailserver that is the target of the emails work, it might happen that the emails get lost. But most likely the emails are still in the mailqueue.

    You can check in the mailqueue with the command:

    postqueue -p

    and you can also see in the mail log what happened with the emails and why they did not arrive in the target mailbox.
     
  3. aristidemargioglio

    aristidemargioglio New Member

    I looked mailqueue and this is the result:
    Code:
    .........
    .........
    .........
    9C7982445CA     6771 Sun Nov  8 14:07:33  getmail@r21899.ovh.net
    (delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while sending DATA command)
                                             ciccio@orizzonti.net
    
    -- 214384 Kbytes in 1143 Requests.
    
    
    So, ciccio@orizzonti.net is a new e-mail address generated by ISPConfig.
    I checked, the e-mail not working...

    Posted by ciccio@orizzonti.net e-mail does not arrive
    Writing to the e-mail ciccio@orizzonti.net delivery (no error message and no e-mail back to sender) but does not get anything...

    I lost everything ... true?
    :(


    Thanks for reply
     
  4. till

    till Super Moderator

    Please post the exact messages that appear in the email log when you send a email to ciccio@orizzonti.net.
     
  5. aristidemargioglio

    aristidemargioglio New Member

    So, this is the report of my mail.log :


    Code:
    Nov  9 06:10:01 stock pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:10:01 stock pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov  9 06:10:01 stock imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:10:01 stock imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov  9 06:10:01 stock postfix/smtpd[16994]: connect from localhost.localdomain[127.0.0.1]
    Nov  9 06:10:01 stock postfix/smtpd[16994]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Nov  9 06:10:01 stock postfix/smtpd[16994]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  9 06:15:01 stock pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:15:01 stock imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:15:01 stock pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov  9 06:15:01 stock imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov  9 06:15:02 stock postfix/smtpd[29443]: connect from localhost.localdomain[127.0.0.1]
    Nov  9 06:15:02 stock postfix/smtpd[29443]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Nov  9 06:15:02 stock postfix/smtpd[29443]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  9 06:20:01 stock pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:20:01 stock pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov  9 06:20:01 stock imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:20:01 stock imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov  9 06:20:01 stock postfix/smtpd[29656]: connect from localhost.localdomain[127.0.0.1]
    Nov  9 06:20:01 stock postfix/smtpd[29656]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Nov  9 06:20:01 stock postfix/smtpd[29656]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  9 06:25:01 stock pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:25:01 stock pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov  9 06:25:01 stock imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:25:01 stock imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov  9 06:25:01 stock postfix/smtpd[29921]: connect from localhost.localdomain[127.0.0.1]
    Nov  9 06:25:01 stock postfix/smtpd[29921]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Nov  9 06:25:01 stock postfix/smtpd[29921]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  9 06:30:01 stock pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:30:01 stock imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:30:01 stock imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov  9 06:30:01 stock pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov  9 06:30:01 stock postfix/smtpd[30152]: connect from localhost.localdomain[127.0.0.1]
    Nov  9 06:30:01 stock postfix/smtpd[30152]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Nov  9 06:30:01 stock postfix/smtpd[30152]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  9 06:35:01 stock pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:35:01 stock pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov  9 06:35:01 stock imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  9 06:35:01 stock imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov  9 06:35:01 stock postfix/smtpd[30371]: connect from localhost.localdomain[127.0.0.1]
    Nov  9 06:35:01 stock postfix/smtpd[30371]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Nov  9 06:35:01 stock postfix/smtpd[30371]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  9 06:40:01 stock postfix/qmgr[30085]: 27E892441C1: from=<getmail@r21899.ovh.net>, size=4777, nrcpt=1 (queue active)
    Nov  9 06:40:01 stock postfix/qmgr[30085]: 2020B244790: from=<getmail@r21899.ovh.net>, size=29171, nrcpt=1 (queue active)
    Nov  9 06:40:01 stock postfix/qmgr[30085]: 28CEA24415A: from=<getmail@r21899.ovh.net>, size=30805, nrcpt=1 (queue active)
    Nov  9 06:40:01 stock postfix/qmgr[30085]: 23D322441FD: from=<getmail@r21899.ovh.net>, size=2201, nrcpt=1 (queue active)
    Nov  9 06:40:01 stock postfix/qmgr[30085]: 2B26B24478A: from=<getmail@r21899.ovh.net>, size=1412281, nrcpt=1 (queue active)
    Nov  9 06:40:01 stock postfix/qmgr[30085]: 2E27F24444B: from=<getmail@r21899.ovh.net>, size=1607, nrcpt=1 (queue active)
    Thanks
     
  6. till

    till Super Moderator

    None of these lines belongs to a sent email. So maybe the emails dont arrive as the dns (MX record) of your domain is pointing to a different mailserver and not this one.
     
  7. aristidemargioglio

    aristidemargioglio New Member

    I checked and I realized the error !

    MX records have not been configured on this server but point to the GoogleApps server because was exploited with the GMail @mydomain.net.

    So I lost everything?

    Or changing MX records do I fix something?

    Thanks
     
  8. till

    till Super Moderator

    If the mailbox did not exist on google apps, then most likely yes. But you might have to ask google how they deal with incoming emails in that case.

    No. As the emails left your server already and google seems to have accepted them.
     
  9. aristidemargioglio

    aristidemargioglio New Member

    Ask to Google? This is a big problem :D !
    I think it's time to put my soul in peace and forget...
    My e-mail are lost ... patience!


    So on server there's nothing, e-mails were routed directly to Google. Right?


    Thanks so much for all the explanations and the attention to my case
     

Share This Page