Email can't receive from outside like gmail

Discussion in 'General' started by Joey Devs, Jan 8, 2018.

  1. Joey Devs

    Joey Devs Member

    Hi again
    I'm using ubuntu16.04, Apache server
    My netstat -tap | grep smtp
    Code:
    [email protected]:~# netstat -tap | grep smtp
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    tcp        0      0 *:smtp                  *:*                     LISTEN                       20021/master
    tcp6       0      0 [::]:smtp               [::]:*                  LISTEN                       20021/master
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    getnameinfo failed
    
    My iptables -L
    Code:
    [email protected]:~# iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    f2b-dovecot-pop3imap  tcp  --  anywhere             anywhere             multipo                 rt dports pop3,pop3s,imap2,imaps
    f2b-pureftpd  tcp  --  anywhere             anywhere             multiport dport                 s ftp
    f2b-postfix-sasl  tcp  --  anywhere             anywhere             multiport d                 ports smtp
    f2b-sshd   tcp  --  anywhere             anywhere             multiport dports s                 sh
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain f2b-dovecot-pop3imap (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain f2b-postfix-sasl (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain f2b-pureftpd (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain f2b-sshd (1 references)
    target     prot opt source               destination
    REJECT     all  --  61.177.172.22        anywhere             reject-with icmp-p                 ort-unreachable
    RETURN     all  --  anywhere             anywhere
    

    [email protected]:~# dig mx zyberph.com

    Code:
    [email protected]:~# dig mx zyberph.com
    
    ; <<>> DiG 9.10.3-P4-Ubuntu <<>> mx zyberph.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50079
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;zyberph.com.                   IN      MX
    
    ;; AUTHORITY SECTION:
    zyberph.com.            3386    IN      SOA     heather.ns.cloudflare.com. dns.cloudflare.com. 2026670222 10000 2400 604800 3600
    
    ;; Query time: 0 msec
    ;; SERVER: 108.61.10.10#53(108.61.10.10)
    ;; WHEN: Mon Jan 08 01:56:57 UTC 2018
    ;; MSG SIZE  rcvd: 102
    
    My mail.log in ispconfig
    Code:
    Jan  8 01:20:45 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22334, secured, session=<C6aLmzlivpYAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:20:45 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:21:45 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22368, secured, session=</9Eenzli9JYAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:21:45 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:22:45 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22479, secured, session=<OcWyojliFpcAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:22:45 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:23:46 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22499, secured, session=<0oBPpjlikJcAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:23:46 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:24:46 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22571, secured, session=<yxHjqTliwpcAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:24:46 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:25:02 zyberph dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<RtDUqjlihKUAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:25:02 zyberph dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<a+bUqjli5JcAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:25:02 zyberph postfix/smtpd[22649]: connect from localhost[::1]
    Jan  8 01:25:02 zyberph postfix/smtpd[22649]: lost connection after CONNECT from localhost[::1]
    Jan  8 01:25:02 zyberph postfix/smtpd[22649]: disconnect from localhost[::1] commands=0/0
    Jan  8 01:25:46 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22670, secured, session=<L994rTli+JcAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:25:46 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:26:46 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22729, secured, session=<ZbUKsTliRpgAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:26:46 zyberph dovecot: imap([email protected]erph.com): Logged out in=90 out=880
    Jan  8 01:27:46 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22796, secured, session=<baeetDlijpgAAAAAAAAAAAAAAAAAAAAB>
    Jan  8 01:27:46 zyberph dovecot: imap([email protected]): Logged out in=90 out=880
    Jan  8 01:28:46 zyberph dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22857, secured, session=<Eu8wuDlivpgAAAAAAAAAAAAAAAAAAAAB
    
    
     
    Last edited: Jan 8, 2018
  2. Taleman

    Taleman Active Member HowtoForge Supporter

Share This Page