can't receive email again include roundcube

Discussion in 'Server Operation' started by anthonywang, Aug 17, 2016.

  1. anthonywang

    anthonywang Member

    i don't know why can't receive email suddenly,tried test gmail with smtp and it's not work either,
    Code:
    root@server:~# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 server.mydomain.com ESMTP Postfix (Ubuntu)
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    500 5.5.2 Error: bad syntax
    421 4.4.2 server.mydomain.com Error: timeout exceeded
    Connection closed by foreign host.
    
    Code:
    root@server:~# netstat -tulnp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      28005/master
    tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      2598/memcached
    tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      28024/dovecot
    tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      28024/dovecot
    tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      28005/master
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      27035/pure-ftpd (SE
    tcp        0      0 10.130.38.83:53         0.0.0.0:*               LISTEN      1206/named
    tcp        0      0 10.15.0.6:53            0.0.0.0:*               LISTEN      1206/named
    tcp        0      0 188.166.176.102:53      0.0.0.0:*               LISTEN      1206/named
    tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      1206/named
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1116/sshd
    tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      28005/master
    tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      1206/named
    tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      28024/dovecot
    tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      28024/dovecot
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      28005/master
    tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      9350/mysqld
    tcp6       0      0 :::587                  :::*                    LISTEN      28005/master
    tcp6       0      0 :::110                  :::*                    LISTEN      28024/dovecot
    tcp6       0      0 :::143                  :::*                    LISTEN      28024/dovecot
    tcp6       0      0 :::8080                 :::*                    LISTEN      27699/apache2
    tcp6       0      0 :::80                   :::*                    LISTEN      27699/apache2
    tcp6       0      0 :::465                  :::*                    LISTEN      28005/master
    tcp6       0      0 :::8081                 :::*                    LISTEN      27699/apache2
    tcp6       0      0 :::21                   :::*                    LISTEN      27035/pure-ftpd (SE
    tcp6       0      0 :::53                   :::*                    LISTEN      1206/named
    tcp6       0      0 :::22                   :::*                    LISTEN      1116/sshd
    tcp6       0      0 :::25                   :::*                    LISTEN      28005/master
    tcp6       0      0 ::1:953                 :::*                    LISTEN      1206/named
    tcp6       0      0 :::443                  :::*                    LISTEN      27699/apache2
    tcp6       0      0 :::993                  :::*                    LISTEN      28024/dovecot
    tcp6       0      0 :::995                  :::*                    LISTEN      28024/dovecot
    udp        0      0 127.0.0.1:11211         0.0.0.0:*                           2598/memcached
    udp        0      0 10.130.38.83:53         0.0.0.0:*                           1206/named
    udp        0      0 10.15.0.6:53            0.0.0.0:*                           1206/named
    udp        0      0 188.166.176.102:53      0.0.0.0:*                           1206/named
    udp        0      0 127.0.0.1:53            0.0.0.0:*                           1206/named
    udp6       0      0 :::53                   :::*                                1206/named
    
    some of postfix/main.cf
    Code:
    smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
    myhostname = server.mydomain.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 = server.mydomain.com, smtp.mydomain.com, localhost, localhost.localdomain
    relayhost =
    mynetworks = 127.0.0.0/8 [::1]/128
    
    is there somthing wrong with these document?
    working on this over three days,but still can't find helpful solution
     
    Last edited: Aug 17, 2016
  2. anthonywang

    anthonywang Member

    var/log/roundcube
    errors.1
    Code:
    [17-Aug-2016 04:22:07 -0400]: IMAP Error: Login failed for admin from xxx.xxx.xx.xxx. AUTHENTICATE PLAIN: Authentication failed. in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 184 (POST /webmail/?_task=login&_action=login)
    
    var/log/mysql error.log is empty
     
  3. anthonywang

    anthonywang Member

    here is mail log
    Code:
    Aug 18 11:03:15 server postfix/smtp[2311]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Aug 18 11:03:15 server postfix/smtp[2311]: 178C645159: to=<[email protected]>, relay=none, delay=252288, delays=252288/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Aug 18 11:03:15 server postfix/smtp[2312]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Aug 18 11:03:15 server postfix/smtp[2312]: BAD7D44FDF: to=<[email protected]>, relay=none, delay=281676, delays=281676/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Aug 18 11:05:01 server dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<7LT351k61gB/AAAB>
    Aug 18 11:05:01 server postfix/smtpd[2362]: connect from localhost[127.0.0.1]
    Aug 18 11:05:01 server dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<zPv351k63wB/AAAB>
    Aug 18 11:05:01 server postfix/smtpd[2362]: lost connection after CONNECT from localhost[127.0.0.1]
    Aug 18 11:05:01 server postfix/smtpd[2362]: disconnect from localhost[127.0.0.1]
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Start amavisd.
     
  5. anthonywang

    anthonywang Member

    Hi till,

    root@server:~# /etc/init.d/amavis restart
    Stopping amavisd: amavisd-new.
    Starting amavisd: amavisd-new.
    You have new mail in /var/mail/root

    after restart,the mail looks work again,but still test it

    thanks!
     
    Last edited: Aug 18, 2016

Share This Page