Server Not Serving Email

Discussion in 'General' started by mphayesuk, Feb 2, 2007.

  1. mphayesuk

    mphayesuk Member

    Ok every couple of days my server seems to lock up, you can still do anything and it all seems to work (ie web front end, serving web pages ect..) but it appears that the root partition gets mounted (well when you reboot the server you get an error saying that \ could not be dismounted).

    But the worst thing is that the mail stops working, I sent one test email to and from one of my accounts on the server and nothing happened for around 10 mins until I rebooted the server.

    Which log files should I post to help find the problem.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you get any messages in your logs, especially mail log? If not, it might be that your system partition is mounted read only due to a failure during boot.
     
  3. mphayesuk

    mphayesuk Member

    I will check over the weekend and investigate and post anything I dont understand in this post... thanks
     
  4. mphayesuk

    mphayesuk Member

    Ok my server is doing it again, what log files should I be looking in.

    This is my mail log file can anyone see any problems. This is the entire contents of the log file which I find a little odd I thought it would be bigger than this.

    server1:/var/log # vi mail

    Feb 6 23:59:02 server1 postfix/postfix-script: starting the Postfix mail system
    Feb 6 23:59:02 server1 postfix/master[12399]: daemon started -- version 2.2.5, configuration /etc/postfix
    Feb 7 00:02:50 server1 postfix/smtpd[12659]: warning: connect to private/tlsmgr: No such file or directory
    Feb 7 00:02:51 server1 postfix/smtpd[12659]: warning: connect to private/tlsmgr: No such file or directory
    Feb 7 00:02:51 server1 postfix/smtpd[12659]: warning: problem talking to server private/tlsmgr: No such file or directory
    Feb 7 00:02:51 server1 postfix/smtpd[12659]: warning: no entropy for TLS key generation: disabling TLS support
    Feb 7 00:02:51 server1 postfix/smtpd[12659]: connect from smtp104.mail.mud.yahoo.com[209.191.85.214]
    Feb 7 00:02:51 server1 postfix/smtpd[12659]: AABFE34026C: client=smtp104.mail.mud.yahoo.com[209.191.85.214]
    Feb 7 00:02:52 server1 postfix/cleanup[12665]: AABFE34026C: message-id=<[email protected]>
    Feb 7 00:02:52 server1 postfix/qmgr[12411]: AABFE34026C: from=<[email protected]>, size=2986, nrcpt=1 (queue active)
    Feb 7 00:02:52 server1 postfix/local[12666]: AABFE34026C: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to mailbox)
    Feb 7 00:02:52 server1 postfix/qmgr[12411]: AABFE34026C: removed
    Feb 7 00:02:52 server1 postfix/smtpd[12659]: disconnect from smtp104.mail.mud.yahoo.com[209.191.85.214]
    Feb 7 00:06:12 server1 postfix/anvil[12661]: statistics: max connection rate 1/60s for (smtp:209.191.85.214) at Feb 7 00:02:51
    Feb 7 00:06:12 server1 postfix/anvil[12661]: statistics: max connection count 1 for (smtp:209.191.85.214) at Feb 7 00:02:51
    Feb 7 00:06:12 server1 postfix/anvil[12661]: statistics: max cache size 1 at Feb 7 00:02:51
    Feb 7 04:29:42 server1 postfix/smtpd[16767]: warning: connect to private/tlsmgr: No such file or directory
    Feb 7 04:29:43 server1 postfix/smtpd[16767]: warning: connect to private/tlsmgr: No such file or directory
    Feb 7 04:29:43 server1 postfix/smtpd[16767]: warning: problem talking to server private/tlsmgr: No such file or directory
    Feb 7 04:29:43 server1 postfix/smtpd[16767]: warning: no entropy for TLS key generation: disabling TLS support
    Feb 7 04:29:43 server1 postfix/smtpd[16767]: connect from unknown[58.143.253.146]
    Feb 7 04:29:45 server1 postfix/smtpd[16767]: NOQUEUE: reject: RCPT from unknown[58.143.253.146]: 550 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<localhost>
    Feb 7 04:29:45 server1 postfix/smtpd[16767]: lost connection after RCPT from unknown[58.143.253.146]
    Feb 7 04:29:45 server1 postfix/smtpd[16767]: disconnect from unknown[58.143.253.146]
    Feb 7 04:33:05 server1 postfix/anvil[16769]: statistics: max connection rate 1/60s for (smtp:58.143.253.146) at Feb 7 04:29:43
    Feb 7 04:33:05 server1 postfix/anvil[16769]: statistics: max connection count 1 for (smtp:58.143.253.146) at Feb 7 04:29:43
    Feb 7 04:33:05 server1 postfix/anvil[16769]: statistics: max cache size 1 at Feb 7 04:29:43
    Feb 7 07:14:44 server1 pop3d: Connection, ip=[::ffff:69.13.240.165]
    Feb 7 07:14:44 server1 pop3d: Connection, ip=[::ffff:69.13.240.165]
    Feb 7 07:14:44 server1 pop3d: Disconnected, ip=[::ffff:69.13.240.165]
    Feb 7 07:14:44 server1 pop3d: Disconnected, ip=[::ffff:69.13.240.165]
    Feb 7 07:59:45 server1 postfix/smtpd[19849]: warning: connect to private/tlsmgr: No such file or directory
    Feb 7 07:59:46 server1 postfix/smtpd[19849]: warning: connect to private/tlsmgr: No such file or directory
    Feb 7 07:59:46 server1 postfix/smtpd[19849]: warning: problem talking to server private/tlsmgr: No such file or directory
    Feb 7 07:59:46 server1 postfix/smtpd[19849]: warning: no entropy for TLS key generation: disabling TLS support
    Feb 7 07:59:46 server1 postfix/smtpd[19849]: connect from 85.133.61.59.broad.fz.fj.dynamic.163data.com.cn[59.61.133.85]
    Feb 7 07:59:47 server1 postfix/smtpd[19849]: disconnect from 85.133.61.59.broad.fz.fj.dynamic.163data.com.cn[59.61.133.85]
    Feb 7 07:59:47 server1 postfix/smtpd[19849]: connect from 85.133.61.59.broad.fz.fj.dynamic.163data.com.cn[59.61.133.85]
    Feb 7 07:59:50 server1 postfix/smtpd[19849]: NOQUEUE: reject: RCPT from 85.133.61.59.broad.fz.fj.dynamic.163data.com.cn[59.61.133.85]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=SMTP
    Feb 7 07:59:51 server1 postfix/smtpd[19849]: warning: 85.133.61.59.broad.fz.fj.dynamic.163data.com.cn[59.61.133.85] sent non-SMTP command: Subject:?erelay ok?f212.159.54.3
    Feb 7 07:59:51 server1 postfix/smtpd[19849]: disconnect from 85.133.61.59.broad.fz.fj.dynamic.163data.com.cn[59.61.133.85]
    Feb 7 08:03:11 server1 postfix/anvil[19851]: statistics: max connection rate 2/60s for (smtp:59.61.133.85) at Feb 7 07:59:47
    Feb 7 08:03:11 server1 postfix/anvil[19851]: statistics: max connection count 1 for (smtp:59.61.133.85) at Feb 7 07:59:46
    Feb 7 08:03:11 server1 postfix/anvil[19851]: statistics: max cache size 1 at Feb 7 07:59:46
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    "mail" 44L, 5188C
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    grep chesterfieldathletics.org.uk /etc/postfix/local-host-names

    and

    grep chesterfieldathletics.org.uk /etc/postfix/virtusertable
     
  6. mphayesuk

    mphayesuk Member

    server1:~ # grep chesterfieldathletics.org.uk /etc/postfix/local-host-names
    www.chesterfieldathletics.org.uk
    chesterfieldathletics.org.uk
    server1:~ # grep chesterfieldathletics.org.uk /etc/postfix/virtusertable
    [email protected] web8_mhayes
    [email protected] web8_mhayes
    [email protected] web8_mhayes
    [email protected] web8_mhayes
    [email protected] web8_hhayes
    [email protected] web8_hhayes
    [email protected] web8_hhayes
    [email protected] web8_hhayes
    server1:~ #

    Thanks
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

  8. mphayesuk

    mphayesuk Member

    I can really see anything in the logs but I am not sure what I am looking for...
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    postqueue -p
    and
    Code:
    ls -la /root/ispconfig
    ?
     
  10. mphayesuk

    mphayesuk Member

    Output of all current running processes

    server1:~ # ps -A
    PID TTY TIME CMD
    1 ? 00:00:00 init
    2 ? 00:00:00 ksoftirqd/0
    3 ? 00:00:00 events/0
    4 ? 00:00:00 khelper
    5 ? 00:00:00 kthread
    7 ? 00:00:00 kacpid
    382 ? 00:00:00 kblockd/0
    424 ? 00:00:00 pdflush
    425 ? 00:00:00 pdflush
    427 ? 00:00:00 aio/0
    426 ? 00:00:00 kswapd0
    1018 ? 00:00:00 kseriod
    1154 ? 00:00:00 ata/0
    1168 ? 00:00:00 scsi_eh_0
    1171 ? 00:00:00 scsi_eh_1
    1198 ? 00:00:00 scsi_eh_2
    1199 ? 00:00:00 hpt_wt
    1274 ? 00:00:00 kjournald
    2210 ? 00:00:00 kjournald
    2211 ? 00:00:00 kjournald
    2351 ? 00:00:00 udevd
    2672 ? 00:00:00 shpchpd_event
    2789 ? 00:00:00 khubd
    4338 ? 00:00:00 dbus-daemon
    4353 ? 00:00:00 syslog-ng
    4362 ? 00:00:00 klogd
    4522 ? 00:00:00 hptsvr
    4525 ? 00:00:00 resmgrd
    4650 ? 00:00:00 mysqld_safe
    4817 ? 00:01:17 mysqld
    4881 ? 00:00:00 portmap
    4916 ? 00:00:00 acpid
    5134 ? 00:00:00 courierlogger
    5135 ? 00:00:00 authdaemond
    5147 ? 00:00:00 saslauthd
    5205 ? 00:00:00 courierlogger
    5206 ? 00:00:00 couriertcpd
    5217 ? 00:00:00 saslauthd
    5218 ? 00:00:00 saslauthd
    5219 ? 00:00:00 saslauthd
    5220 ? 00:00:00 saslauthd
    5227 ? 00:00:00 courierlogger
    5229 ? 00:00:00 couriertcpd
    5266 ? 00:00:00 authdaemond
    5267 ? 00:00:00 authdaemond
    5268 ? 00:00:00 authdaemond
    5269 ? 00:00:00 authdaemond
    5270 ? 00:00:00 authdaemond
    5328 ? 00:00:00 mdnsd
    5417 ? 00:00:00 ntpd
    5418 ? 00:00:00 sshd
    5435 ? 00:00:00 nscd
    5448 ? 00:00:00 fam
    5479 ? 00:00:00 ispconfig_httpd
    5480 ? 00:00:00 ispconfig_wconf
    5482 ? 00:00:06 ispconfig_httpd
    5565 ? 00:00:00 cron
    5627 ? 00:00:20 hald
    5638 ? 00:00:00 hald-addon-acpi
    5646 ? 00:00:19 hald-addon-hid-
    5649 ? 00:00:00 powersaved
    5743 ? 00:00:00 hald-addon-stor
    5952 ? 00:00:00 named
    5998 ? 00:00:00 freshclam
    6008 ? 00:00:00 kdm
    6010 tty7 00:00:00 X
    6033 ? 00:00:00 kdm
    6035 ? 00:00:00 cupsd
    6077 tty1 00:00:00 mingetty
    6078 tty2 00:00:00 mingetty
    6079 tty3 00:00:00 mingetty
    6080 tty4 00:00:00 mingetty
    6081 tty5 00:00:00 mingetty
    6082 tty6 00:00:00 mingetty
    6249 ? 00:00:00 kdm_greet
    6414 ? 00:00:06 ispconfig_httpd
    10399 ? 00:00:00 httpd2-prefork
    10400 ? 00:00:00 cronolog
    10401 ? 00:00:00 httpd2-prefork
    10402 ? 00:00:00 httpd2-prefork
    10403 ? 00:00:00 httpd2-prefork
    10405 ? 00:00:00 httpd2-prefork
    12592 ? 00:00:00 httpd2-prefork
    14544 ? 00:00:00 httpd2-prefork
    15334 ? 00:00:00 httpd2-prefork
    4778 ? 00:00:00 httpd2-prefork
    4779 ? 00:00:00 httpd2-prefork
    4780 ? 00:00:00 httpd2-prefork
    10229 ? 00:00:00 master
    10241 ? 00:00:00 qmgr
    10326 ? 00:00:00 proftpd
    13956 ? 00:00:00 cron
    13957 ? 00:00:00 sh
    13993 ? 00:00:00 sendmail
    13994 ? 00:00:00 postdrop
    13995 ? 00:00:00 sh
    14246 ? 00:00:00 hald-probe-stor
    14247 ? 00:00:00 growisofs
    14251 ? 00:00:00 mkisofs <defunct>
    17961 ? 00:00:00 pickup
    18736 ? 00:00:00 sshd
    18739 pts/0 00:00:00 bash
    18892 ? 00:00:00 sleep
    18893 pts/0 00:00:00 ps
    server1:~ #
     
  11. mphayesuk

    mphayesuk Member

    server1:~ # postqueue -p
    Mail queue is empty
    server1:~ #

    server1:~ # ls -la /root/ispconfig
    total 112
    drwxr-xr-x 9 root root 4096 Feb 7 14:56 .
    drwx------ 15 root root 4096 Feb 8 16:34 ..
    -rw-r--r-- 1 root root 8 Feb 7 14:56 .old_path_httpd_root
    -rwxr-xr-x 1 root root 45926 Aug 9 2006 cronolog
    -rwxr-xr-x 1 root root 9673 Aug 9 2006 cronosplit
    drwxr-xr-x 12 root root 4096 Aug 9 2006 httpd
    drwxr-xr-x 12 root root 4096 Aug 9 2006 isp
    drwxr-xr-x 6 root root 4096 Aug 9 2006 openssl
    drwxr-xr-x 6 root root 4096 Aug 9 2006 php
    drwxr-xr-x 4 root root 4096 Aug 9 2006 scripts
    drwxr-xr-x 4 root root 4096 Aug 9 2006 standard_cgis
    drwxr-xr-x 2 root root 4096 Aug 9 2006 sv
    -rwx------ 1 root root 9389 Aug 9 2006 uninstall
    server1:~ #
     
  12. mphayesuk

    mphayesuk Member

    So at the moment the server is in the same state (not working properly) all the web sites ect and the portal are working fine, but mail will be delayed. I can fix this with a reboot but I will try not to and give some of you guys a chance to advise me on what to look for.

    Thanks
     
  13. mphayesuk

    mphayesuk Member

    Ok Looking at the Control Panel I get this:

    Server Online since: 1d, 21:10h
    Users Online: 1 user
    System Load 1 Minute: 3.00
    System Load 5 Minutes: 3.00
    System Load 15 Minutes: 2.98

    Which looks a bit high compared to what it is usually.

    Also is there a command to look at what the hard drives are doing... like ps-aux works to lsit the processes.

    Thanks
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    You can check with the command "top" which processes are causing the load. To quit top, type "q".
     
  15. mphayesuk

    mphayesuk Member

    With a lot of help from martinfst we think the problem was caused by a line in the master.cf file that was commented out. (suse default install error)

    Thanks to martinfst, falco and till for your help on this one hopefully there wont be any more problems.

    Thanks
     

Share This Page