Can't receive email

Discussion in 'Installation/Configuration' started by mzo, Feb 4, 2006.

  1. mzo

    mzo New Member

    Hi ,

    I'm very new to ispconfig. Currently I having problem when receiving new email. After look thru your previous thread, I notice there might be something wrong with my setting. After I restart the server I notice something strange in my /var/log/maillog that is :

    Feb 5 00:27:08 server postfix/postfix-script: starting the Postfix mail system
    Feb 5 00:27:08 server postfix/master[2171]: daemon started -- version 2.2.2, configuration /etc/postfix
    Feb 5 00:27:08 server postfix/qmgr[2180]: 1329A2EE785: from=<[email protected]>, size=1009, nrcpt=5 (queue active)
    Feb 5 00:27:08 server postfix/trivial-rewrite[2181]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    Feb 5 00:27:08 server postfix/qmgr[2180]: 619802EE789: from=<[email protected]>, size=1009, nrcpt=4 (queue active)
    Feb 5 00:27:21 server postfix/postfix-script: stopping the Postfix mail system
    Feb 5 00:27:21 server postfix/master[2171]: terminating on signal 15
    Feb 5 00:27:22 server postfix/postfix-script: starting the Postfix mail system
    Feb 5 00:27:22 server postfix/master[2537]: daemon started -- version 2.2.2, configuration /etc/postfix
    Feb 5 00:27:22 server postfix/qmgr[2549]: 1329A2EE785: from=<[email protected]>, size=1009, nrcpt=5 (queue active)
    Feb 5 00:27:22 server postfix/trivial-rewrite[2552]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    Feb 5 00:27:22 server postfix/qmgr[2549]: 619802EE789: from=<[email protected]>, size=1009, nrcpt=4 (queue active)
    Feb 5 00:27:52 server postfix/smtp[2558]: connect to puspakom.net.ms[213.239.203.47]: Connection timed out (port 25)
    Feb 5 00:27:52 server postfix/smtp[2568]: connect to puspakom.net.ms[213.239.203.47]: Connection timed out (port 25)
    Feb 5 00:27:52 server postfix/smtp[2558]: 1329A2EE785: to=<[email protected]>, relay=none, delay=5628, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    Feb 5 00:27:52 server postfix/smtp[2568]: 619802EE789: to=<[email protected]>, relay=none, delay=1432, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    Feb 5 00:27:52 server postfix/smtp[2558]: 1329A2EE785: to=<[email protected]>, relay=none, delay=5628, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    Feb 5 00:27:52 server postfix/smtp[2568]: 619802EE789: to=<[email protected]>, relay=none, delay=1432, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    Feb 5 00:27:52 server postfix/smtp[2558]: 1329A2EE785: to=<[email protected]>, relay=none, delay=5628, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    Feb 5 00:27:52 server postfix/smtp[2568]: 619802EE789: to=<[email protected]>, relay=none, delay=1432, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    Feb 5 00:27:52 server postfix/smtp[2568]: 619802EE789: to=<[email protected]>, relay=none, delay=1432, status=deferred (connect to puspakom.net.ms[213.239.203.47]: Connection timed out)
    [root@server log]#

    can anybody help me ?Tq.:)
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Did you manually edit /etc/postfix/virtusertable?
    Please run
    Code:
    postmap /etc/postfix/virtusertable
    to create /etc/postfix/virtusertable.db from /etc/postfix/virtusertable and restart Postfix afterwards.
    Is puspakom.net.ms your server? Please post the output of
    Code:
    netstat -tap
     
  3. mzo

    mzo New Member

    MZO : My server name is server.puspakom.net.ms.Nestat -tap result is as below.Thank you.

    [root@server ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:imaps *:* LISTEN 1969/xinetd
    tcp 0 0 *:32769 *:* LISTEN 1622/rpc.statd
    tcp 0 0 *:pop3s *:* LISTEN 1969/xinetd
    tcp 0 0 *:mysql *:* LISTEN 2063/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 1969/xinetd
    tcp 0 0 *:imap *:* LISTEN 1969/xinetd
    tcp 0 0 *:sunrpc *:* LISTEN 1604/portmap
    tcp 0 0 *:81 *:* LISTEN 2436/ispconfig_http
    tcp 0 0 *:ftp *:* LISTEN 2589/proftpd: (acce
    tcp 0 0 server.puspakom.net.ms:ipp *:* LISTEN 4328/cupsd
    tcp 0 0 server.puspakom.net.ms:5335 *:* LISTEN 1907/mDNSResponder
    tcp 0 0 *:smtp *:* LISTEN 2537/master
    tcp 0 0 *:http *:* LISTEN 2466/httpd
    tcp 0 0 *:ssh *:* LISTEN 1960/sshd
    tcp 0 0 *:https *:* LISTEN 2466/httpd
    tcp 0 2040 puspakom.net.ms:ssh ::ffff:210.186.3.85:1102 ESTABLISHED 6598/1
    [root@server ~]#

    MZO: I don't understand, where ip 210.186.3.85:1102 come from because that is not my server ip. Do you have any idea?:)
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Both server.puspakom.net.ms and puspakom.net.ms point to the IP address 213.239.203.47. Is this your public IP address?
    Is the server behind a router, or is it connected directly to the internet? If it is behind a router, did you forward port 25 from your router to your server?

    210.186.3.85 is the IP address with which you connected to your server.
     
  5. mzo

    mzo New Member

    MZO :213.239.203.47 IS not my public ip. At first place I can receive mail but later probably I wrongly do something that lead to this problem. Where can I change it(files) to my public IP? :) Currently my server is behind network-box server but all port is allow from net to dmz. I still get warning in /var/log/maillog even though after I do postmap /etc/postfix/virtusertable and reboot the server, the error log is :

    Feb 5 19:00:09 server postfix/trivial-rewrite[14517]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable

    Very need your expertise. Tq.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    First you must make sure that your domains and subdomains point to the correct IP address. Therefore you must change the DNS records. The responsible nameservers for puspakom.net.ms are ns5.idnscan.net, ns6.idnscan.net, ns1.idnscan.net, and ns2.idnscan.net.

    Please post the output of
    Code:
    ls -la /etc/postfix/
    Do you get any error messages when you run
    Code:
    postmap /etc/postfix/virtusertable
    ?
     
  7. mzo

    mzo New Member

    MZO : I didn't have any error when run this command. Please see below :

    [root@server ~]#
    [root@server ~]# postmap /etc/postfix/virtusertable
    [root@server ~]#
    [root@server ~]#
     
  8. mzo

    mzo New Member

     
  9. falko

    falko Super Moderator ISPConfig Developer

    You must change the DNS records for puspakom.net.ms so that they point to the correct IP address.
     
  10. mzo

    mzo New Member

    MZO : Which part do I need to change it, in the cydots.com (puspakom.net.ms setting) or in ispconfig? So far I already point www.puspakom.net.ms to my public ip. You can test it when type www.puspakom.net.ms in the browser. I think Joynic.com is free domain provider so most probably that why it will go to their 213.239.203.47. So this happend because my postfix/smtp search for puspakom.net.ms. Can I change postfix/smtp setting so it will go my public ip<x.x.x.x> instead of puspakom.net.ms?tq.
     
  11. falko

    falko Super Moderator ISPConfig Developer

    You must change it on the responsible nameservers for your domain. These are ns1.idnscan.net, ns2.idnscan.net, ns5.idnscan.net, ns6.idnscan.net.

    I'm afraid this doesn't work.
     
  12. phpmydev

    phpmydev New Member

    Postfix - can send mail cannot receive

    Heres a start:
    ]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:dnp *:* LISTEN 1771/perl
    tcp 0 0 *:imaps *:* LISTEN 17788/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 17788/dovecot
    tcp 0 0 *:mysql *:* LISTEN 1541/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 17788/dovecot
    tcp 0 0 *:imap *:* LISTEN 17788/dovecot
    tcp 0 0 *:1167 *:* LISTEN 3119/buagent: [list
    tcp 0 0 *:http *:* LISTEN 1703/httpd
    tcp 0 0 204-62-14-134.static:domain *:* LISTEN 1409/named
    tcp 0 0 *:ftp *:* LISTEN 1691/proftpd: (acce
    tcp 0 0 10.9.1.169:domain *:* LISTEN 1409/named
    tcp 0 0 srv.phpmydev.com:domain *:* LISTEN 1409/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 1409/named
    tcp 0 0 *:ssh *:* LISTEN 1459/sshd
    tcp 0 0 localhost.localdomain:irisa *:* LISTEN 6283/lookup-domain-
    tcp 0 0 localhost.localdom:postgres *:* LISTEN 1594/postmaster
    tcp 0 0 *:smtp *:* LISTEN 17754/master
    tcp 0 0 localhost.localdomain:rndc *:* LISTEN 1409/named
    tcp 0 0 *:https *:* LISTEN 1703/httpd
    tcp 0 0 *:39135 *:* LISTEN 1776/perl
    tcp 0 0 localhost.localdomain:irisa localhost.localdomain:56934 TIME_WAIT -
    tcp 0 0 srv.phpmydev.com:http crawl-66-249-72-38.go:34732 TIME_WAIT -
    tcp 0 0 localhost.localdomain:imap localhost.localdomain:34783 TIME_WAIT -
    tcp 0 0 srv.phpmydev.com:43634 ip68-228-238-243.ph.p:55718 TIME_WAIT -
    tcp 0 0 srv.phpmydev.com:ssh ip68-228-238-243.ph.p:55313 ESTABLISHED 15496/0
    tcp 0 0 srv.phpmydev.com:ftp ip68-228-238-243.ph.p:54073 ESTABLISHED 25929/proftpd: phpm
    tcp 0 0 srv.phpmydev.com:imap ip68-228-238-243.ph.p:55515 ESTABLISHED 19001/imap
    tcp 0 0 srv.phpmydev.com:imap ip68-228-238-243.ph.p:55429 ESTABLISHED 17832/imap
    tcp 0 0 srv.phpmydev.com:http ip68-228-238-243.ph.p:55719 TIME_WAIT -
    tcp 0 4076 srv.phpmydev.com:ssh ip68-228-238-243.ph.p:55720 ESTABLISHED 20325/1

    I appreciate any help.
    Anything jump oout at you?
    What else do you need?
    This is a live server

    Thanks!
     
  13. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in your mail log (in the /var/log/ directory)?

    Please check if the MX record of your domain is pointing to the correct server. You can check that as follows:
    Code:
    dig mx yourdomain.com
     
  14. phpmydev

    phpmydev New Member

    Thanks for your repoky Falko. Here are the results:

    MX:
    ;; ANSWER SECTION:
    phpmydev.com. 7129 IN MX 10 mail.phpmydev.com.

    maillog(end):
    Nov 1 09:55:49 srv postfix/qmgr[23587]: 1C4DEC2178: to=<[email protected]>, orig_to=<postmaster>, relay=none, delay=52889, delays=52858/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: 88AECC226C: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=6285, delays=6253/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: B7169C20D8: to=<[email protected]>, orig_to=<postmaster>, relay=none, delay=65854, delays=65823/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: E7BA2C215C: to=<[email protected]>, orig_to=<postmaster>, relay=none, delay=55440, delays=55409/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: BE09FC20CA: to=<[email protected]>, orig_to=<postmaster>, relay=none, delay=66175, delays=66144/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: B6AA2C20E9: to=<[email protected]>, orig_to=<postmaster>, relay=none, delay=64108, delays=64077/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: 5002AC220D: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=12197, delays=12166/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:49 srv postfix/qmgr[23587]: 63C97C2183: to=<[email protected]>, orig_to=<postmaster>, relay=none, delay=52065, delays=52034/31/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to com.com[216.239.113.101]: Connection timed out)
    Nov 1 09:55:54 srv dovecot: imap-login: Login: user=<rwhitney.phpmydev>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Nov 1 09:55:54 srv dovecot: IMAP(rwhitney.phpmydev): Disconnected: Logged out
    Nov 1 09:56:17 srv postfix/smtp[14888]: connect to google.com[72.14.204.103]: Connection timed out (port 25)
    Nov 1 09:56:18 srv postfix/smtp[14889]: connect to google.com[72.14.204.103]: Connection timed out (port 25)
    Nov 1 09:56:47 srv postfix/smtp[14888]: connect to google.com[72.14.204.104]: Connection timed out (port 25)
    Nov 1 09:56:48 srv postfix/smtp[14889]: connect to google.com[72.14.204.105]: Connection timed out (port 25)
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Your mail server seems to want to redirect all your emails to com.com. Can you post your /etc/postfix/main.cf and /etc/mailname? What are the outputs of
    Code:
    hostname 
    and
    Code:
    hostname -f
    ?
     
  16. phpmydev

    phpmydev New Member

    Abandonment!

    Thanks for the reply Falko. We opted out of virtualmin in favor of Interworx. now All is Well! Mail worky just fine. I don't know where that entry for com.com came from? It's a puzzlement!
     
  17. falko

    falko Super Moderator ISPConfig Developer

    So you don't use ISPConfig 2? Because you posted in the ISPConfig 2 forum...
     
  18. phpmydev

    phpmydev New Member

    My bad

    sorry for posting to the wrong forum. Thanks for your help
     

Share This Page