getmail does not get any mail anymore :(

Discussion in 'General' started by lnxgs, Jul 19, 2015.

  1. lnxgs

    lnxgs Member

    Hi,
    I have a vps with lastest ispconfig installed.
    Starting from July 13rd at 2 a.m., getmail (fetchmail in dashboard) does not work anymore. I've tried to fix by myself for some days but without success. It seems to work but I did not get any e-mail on the destination account ([email protected])

    Here some logging:
    On /var/log/mail.log:
    Code:
    Jul 19 10:00:01 srv01 postfix/pickup[3769]: 2D27978C104: uid=5001 from=<getmail>
    Jul 19 10:00:01 srv01 postfix/cleanup[4745]: 2D27978C104: message-id=<[email protected]>
    Jul 19 10:00:01 srv01 postfix/qmgr[3770]: 2D27978C104: from=<[email protected]>, size=636, nrcpt=1 (queue active)
    Jul 19 10:00:01 srv01 dovecot: imap-login: Disconnected (disconnected before greeting, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<pBzezjUbCwB/AAAB>
    Jul 19 10:00:01 srv01 postfix/smtpd[4769]: connect from localhost.localdomain[127.0.0.1]
    Jul 19 10:00:01 srv01 postfix/smtpd[4769]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 19 10:00:01 srv01 postfix/smtpd[4769]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 19 10:00:01 srv01 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<El/ezjUbTAB/AAAB>
    Jul 19 10:00:02 srv01 postfix/smtpd[4790]: connect from localhost.localdomain[127.0.0.1]
    Jul 19 10:00:02 srv01 postfix/smtpd[4790]: E95A978C0AE: client=localhost.localdomain[127.0.0.1]
    Jul 19 10:00:02 srv01 postfix/cleanup[4745]: E95A978C0AE: message-id=<[email protected]>
    Jul 19 10:00:02 srv01 postfix/qmgr[3770]: E95A978C0AE: from=<[email protected]>, size=1113, nrcpt=1 (queue active)
    Jul 19 10:00:03 srv01 amavis[2609]: (02609-01) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: F9B-LEEM-cvO, Hits: 0, size: 636, queued_as: E95A978C0AE, 1416 ms
    Jul 19 10:00:03 srv01 postfix/smtp[4765]: 2D27978C104: to=<[email protected]>, orig_to=<getmail>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.23/0.07/0.26/1.4, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E95A978C0AE)
    Jul 19 10:00:03 srv01 postfix/qmgr[3770]: 2D27978C104: removed
    Jul 19 10:00:03 srv01 dovecot: auth-worker(4794): mysql(localhost): Connected to database dbispconfig
    Jul 19 10:00:03 srv01 postfix/pipe[4792]: E95A978C0AE: to=<[email protected]>, relay=dovecot, delay=0.22, delays=0.03/0.05/0/0.14, dsn=5.1.1, status=bounced (user unknown)
    Jul 19 10:00:03 srv01 postfix/cleanup[4745]: 29E0978C106: message-id=<[email protected]>
    Jul 19 10:00:03 srv01 postfix/bounce[4797]: E95A978C0AE: sender non-delivery notification: 29E0978C106
    Jul 19 10:00:03 srv01 postfix/qmgr[3770]: 29E0978C106: from=<>, size=2967, nrcpt=1 (queue active)
    Jul 19 10:00:03 srv01 postfix/qmgr[3770]: E95A978C0AE: removed
    Jul 19 10:00:03 srv01 postfix/pipe[4792]: 29E0978C106: to=<[email protected]>, relay=dovecot, delay=0.04, delays=0.01/0/0/0.03, dsn=5.1.1, status=bounced (user unknown)
    Jul 19 10:00:03 srv01 postfix/qmgr[3770]: 29E0978C106: removed

    On /var/log/syslog | grep getmail
    Code:
    Jul 19 10:15:01 srv01 /USR/SBIN/CRON[5202]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/getmail.log)
    Jul 19 10:15:01 srv01 postfix/pickup[3769]: 747EA78C104: uid=5001 from=<getmail>
    Jul 19 10:15:01 srv01 postfix/qmgr[3770]: 747EA78C104: from=<[email protected]>, size=636, nrcpt=1 (queue active)
    Jul 19 10:15:02 srv01 postfix/qmgr[3770]: 115E478C0AE: from=<[email protected]>, size=1113, nrcpt=1 (queue active)
    Jul 19 10:15:02 srv01 amavis[2609]: (02609-03) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: G-EqVrVE9Dcb, Hits: 0, size: 636, queued_as: 115E478C0AE, 528 ms
    Jul 19 10:15:02 srv01 postfix/smtp[5217]: 747EA78C104: to=<[email protected]>, orig_to=<getmail>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.67, delays=0.1/0.02/0.01/0.53, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 115E478C0AE)
    Jul 19 10:15:02 srv01 postfix/pipe[5261]: 115E478C0AE: to=<[email protected]>, relay=dovecot, delay=0.12, delays=0.01/0.03/0/0.08, dsn=5.1.1, status=bounced (user unknown)
    Jul 19 10:15:02 srv01 postfix/pipe[5261]: 321F8B1C001: to=<[email protected]>, relay=dovecot, delay=0.08, delays=0.04/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
    [email protected] is not an email account obviously.

    I replaced my 3rd level domain name with ext.example.com.

    Code:
    C:\Users\XXXX>nslookup
    Server predefinito:  vps-192-71-245-208.prometeus.net
    Address:  192.71.245.208
    
    > set q=mx
    > ext.example.com
    Server:  vps-192-71-245-208.prometeus.net
    Address:  192.71.245.208
    
    Risposta da un server non autorevole:
    ext.example.com       MX preference = 10, mail exchanger = ext.example.com
    
    example.com     nameserver = ns2.customer.seflow.it
    example.com    nameserver = ns1.customer.seflow.it
    ext.example.com      internet address = 193.234.X.X
    > exit
    
    Here /etc/postfix/main.cf

    Code:
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    append_dot_mydomain = no
    readme_directory = /usr/share/doc/postfix
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    myhostname = ext.example.com
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    myorigin = /etc/mailname
    mydestination = localhost, localhost.localdomain
    relayhost =
    mynetworks = 127.0.0.0/8 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    virtual_alias_domains =
    virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /var/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    inet_protocols = all
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
    smtpd_tls_security_level = may
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    smtpd_client_message_rate_limit = 100
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = dovecot
    header_checks = regexp:/etc/postfix/header_checks
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    body_checks = regexp:/etc/postfix/body_checks
    owner_request_special = no
    dovecot_destination_recipient_limit = 1
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    smtp_tls_security_level = may
    smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
    smtpd_tls_protocols = !SSLv2,!SSLv3
    smtp_tls_protocols = !SSLv2,!SSLv3
    message_size_limit = 20480000
    smtpd_tls_CAfile = /usr/local/ispconfig/interface/ssl/comodo.bundle
    message_size_limit = 20480000

    In /etc/getmail the relative conf file is present:

    Code:
    [options]
    # message_log = /var/log/getmail.log
    message_log_syslog = true
    delete = false
    read_all = false
    
    [retriever]
    type = SimpleIMAPSSLRetriever
    server = outlook.office365.com
    username = [email protected]
    password = XXXXXXXXX
    
    [destination]
    type = MDA_external
    path = /usr/sbin/sendmail
    arguments = ("-i", "-bm", "[email protected]")
    unixfrom = true
    If I send from gmail or hotmain a message to [email protected], I get it.

    Do you have some idea to fix this?

    I suspect that the problem is origined by the domain transfer to another provider. I recreate consistent DNS entries for MX as you can see on nslookup: 193.234.X.X is the IP address of the vps on which I installed ispconfig.

    Regards,
    L.
     
  2. lnxgs

    lnxgs Member

    Hi,
    Last time it worked, it logged:
    Code:
    Jul 13 02:10:20 srv01 getmail: msg 41231/41236 (34512 bytes) msgid 14/113881 from <[email protected]> delivered to MDA_external command sendmail ()
    Jul 13 02:10:20 srv01 postfix/pickup[21499]: 5416E78C103: uid=5001 from=<getmail>
    Jul 13 02:10:20 srv01 postfix/qmgr[4128]: 5416E78C103: from=<[email protected]>, size=13166, nrcpt=1 (queue active)
    Jul 13 02:10:20 srv01 getmail: msg 41232/41236 (34333 bytes) msgid 14/113882 from <[email protected]> delivered to MDA_external command sendmail ()
    Jul 13 02:10:20 srv01 postfix/pickup[21499]: 72B6778C104: uid=5001 from=<getmail>
    Jul 13 02:10:20 srv01 postfix/qmgr[4128]: 72B6778C104: from=<[email protected]>, size=13104, nrcpt=1 (queue active)
    Jul 13 02:10:20 srv01 postfix/pickup[21499]: 9C840B1C001: uid=5001 from=<getmail>
    Jul 13 02:10:20 srv01 getmail: msg 41233/41236 (34505 bytes) msgid 14/113883 from <[email protected]> delivered to MDA_external command sendmail ()
    Jul 13 02:10:20 srv01 postfix/qmgr[4128]: 9C840B1C001: from=<[email protected]>, size=13158, nrcpt=1 (queue active)
    Jul 13 02:10:20 srv01 postfix/pickup[21499]: C3686B1C002: uid=5001 from=<getmail>
    Jul 13 02:10:20 srv01 getmail: msg 41234/41236 (34665 bytes) msgid 14/113884 from <[email protected]> delivered to MDA_external command sendmail ()
    Jul 13 02:10:20 srv01 postfix/qmgr[4128]: C3686B1C002: from=<[email protected]>, size=13216, nrcpt=1 (queue active)
    Jul 13 02:10:20 srv01 postfix/qmgr[4128]: D59F478C0DB: from=<[email protected]>, size=13647, nrcpt=1 (queue active)
    Jul 13 02:10:20 srv01 amavis[20309]: (20309-08) Passed CLEAN {RelayedInbound}, [213.21.167.112] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: Jh44iMSStREg, Hits: 1.108, size: 13160, queued_as: D59F478C0DB, 503 ms
    Jul 13 02:10:21 srv01 getmail: msg 41235/41236 (27395 bytes) msgid 14/113885 from <unknown> delivered to MDA_external command sendmail ()
    Jul 13 02:10:21 srv01 postfix/pickup[21499]: 04AD978C106: uid=5001 from=<getmail>
    Jul 13 02:10:21 srv01 postfix/qmgr[4128]: 04AD978C106: from=<[email protected]>, size=9731, nrcpt=1 (queue active)
    Jul 13 02:10:21 srv01 postfix/qmgr[4128]: 1AA4A78C103: from=<[email protected]>, size=13585, nrcpt=1 (queue active)
    Jul 13 02:10:21 srv01 amavis[16686]: (16686-12) Passed CLEAN {RelayedInbound}, [213.21.167.110] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: VjJVtmZZc82T, Hits: 1.108, size: 13098, queued_as: 1AA4A78C103, 657 ms
    Jul 13 02:10:21 srv01 postfix/pickup[21499]: 37F5AB1C003: uid=5001 from=<getmail>
    Jul 13 02:10:21 srv01 getmail: msg 41236/41236 (34666 bytes) msgid 14/113886 from <[email protected]> delivered to MDA_external command sendmail ()
    Jul 13 02:10:21 srv01 postfix/qmgr[4128]: 37F5AB1C003: from=<[email protected]>, size=13217, nrcpt=1 (queue active)
    Jul 13 02:10:21 srv01 postfix/qmgr[4128]: 7D73478C0DB: from=<[email protected]>, size=13639, nrcpt=1 (queue active)
    Jul 13 02:10:21 srv01 amavis[20309]: (20309-09) Passed CLEAN {RelayedInbound}, [213.21.167.112] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: UkzaWm_xKR_K, Hits: 1.108, size: 13152, queued_as: 7D73478C0DB, 620 ms
    Jul 13 02:10:21 srv01 postfix/qmgr[4128]: B5DA078C0DB: from=<[email protected]>, size=13697, nrcpt=1 (queue active)
    Jul 13 02:10:21 srv01 amavis[16686]: (16686-13) Passed CLEAN {RelayedInbound}, [213.21.167.110] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: R2ncCaN-F1yN, Hits: 1.108, size: 13210, queued_as: B5DA078C0DB, 587 ms
    Jul 13 02:10:22 srv01 postfix/qmgr[4128]: 0959378C0DB: from=<[email protected]>, size=10212, nrcpt=1 (queue active)
    Jul 13 02:10:22 srv01 amavis[20309]: (20309-09-2) Passed CLEAN {RelayedInbound}, [213.21.167.110] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: c8c7yCLRKDyZ, Hits: 1.108, size: 9731, queued_as: 0959378C0DB, 499 ms
    Jul 13 02:10:22 srv01 postfix/qmgr[4128]: 2F4E278C0DB: from=<[email protected]>, size=13698, nrcpt=1 (queue active)
    Jul 13 02:10:22 srv01 amavis[16686]: (16686-13-2) Passed CLEAN {RelayedInbound}, [213.21.167.110] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: pw1YT6dlnNnG, Hits: 1.108, size: 13211, queued_as: 2F4E278C0DB, 438 ms
    Regards,
    L.
     
  3. lnxgs

    lnxgs Member

  4. lnxgs

    lnxgs Member

Share This Page