Koozali.org: home of the SME Server

having problems recieveing email.

Jimbo

having problems recieveing email.
« on: October 28, 2003, 01:04:53 PM »
I am using 5.6 with the latest updates and the secure-mail contrib and recieve email via smtp. Every thing has been peachy for ages untill the last few days. The box just stops receiving email, cant find any thing wrong - but a reboot seems to get it to work again.

The mail is just all queueing at my provider...

I just dont know where to start looking.

Thanks in advance.
Jimbo

Jimbo

Re: having problems recieveing email.
« Reply #1 on: October 28, 2003, 03:14:29 PM »
Anything look wrong in these?
_____________________________________________________
 12:14pm  up 45 min,  1 user,  load average: 19.99, 18.06, 15.40
138 processes: 137 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
CPU1 states:  0.4% user,  1.4% system,  0.0% nice, 97.1% idle
Mem:   126164K av,  123208K used,    2956K free,       0K shrd,    6612K buff
Swap:  264952K av,       0K used,  264952K free                   49244K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 3012 root      16   0  1064 1064   812 R     2.1  0.8   0:00 top
    7 root      15   0     0    0     0 SW    0.5  0.0   0:00 kswapd
    1 root      15   0   480  480   420 S     0.0  0.3   0:03 init
    2 root      0K   0     0    0     0 SW    0.0  0.0   0:00 migration_CPU0
    3 root      0K   0     0    0     0 SW    0.0  0.0   0:00 migration_CPU1
    4 root      15   0     0    0     0 SW    0.0  0.0   0:00 keventd
    5 root      34  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
    6 root      34  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU1
    8 root      25   0     0    0     0 SW    0.0  0.0   0:00 bdflush
    9 root      15   0     0    0     0 DW    0.0  0.0   0:00 kupdated
   10 root      25   0     0    0     0 SW    0.0  0.0   0:00 mdrecoveryd
   16 root      25   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_0
   17 root      15   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_1
   21 root      16   0     0    0     0 SW    0.0  0.0   0:00 raid1d
   22 root      16   0     0    0     0 SW    0.0  0.0   0:00 raid1d
   23 root      16   0     0    0     0 SW    0.0  0.0   0:00 raid1d
   24 root      15   0     0    0     0 SW    0.0  0.0   0:02 kjournald
  188 root      17   0     0    0     0 SW    0.0  0.0   0:00 khubd
  218 root      15   0     0    0     0 SW    0.0  0.0   0:00 kjournald
  219 root      15   0     0    0     0 DW    0.0  0.0   0:00 kjournald
  430 root      15   0   308  308   252 S     0.0  0.2   0:00 svscan
  443 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  444 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  447 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  448 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  456 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  457 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  463 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  464 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  465 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  466 root      15   0   296  296   252 S     0.0  0.2   0:00 supervise
  471 qmaill    15   0   296  296   244 S     0.0  0.2   0:00 multilog
  472 qmaill    15   0   296  296   244 S     0.0  0.2   0:00 multilog
  473 root      15   0   296  296   244 S     0.0  0.2   0:00 multilog
  475 qmaill    16   0   292  292   240 S     0.0  0.2   0:00 multilog
  474 qmaill    16   0   292  292   240 S     0.0  0.2   0:00 multilog
  501 root      15   0   584  584   480 S     0.0  0.4   0:00 syslogd
  506 root      15   0  1200 1200   424 S     0.0  0.9   0:00 klogd
  924 nobody    18   0   516  516   456 S     0.0  0.4   0:00 oidentd
  965 root      15   0   564  564   492 S     0.0  0.4   0:00 crond
  999 root      15   0   792  792   676 S     0.0  0.6   0:00 xinetd
 1054 ntp       15   0  1876 1876  1784 S     0.0  1.4   0:00 ntpd
 1075 root      15   0  1964 1964  1840 S     0.0  1.5   0:00 ntpd
 1126 lp        15   0  1000 1000   864 S     0.0  0.7   0:00 lpd
 1162 root      15   0   656  656   500 S     0.0  0.5   0:00 dhcpd
 1203 root      16   0   288  288   240 S     0.0  0.2   0:00 cvm-unix
 1253 ldap      17   0  1932 1928  1512 S     0.0  1.5   0:00 slapd
 1255 ldap      15   0  1932 1928  1512 S     0.0  1.5   0:00 slapd
 1256 ldap      20   0  1932 1928  1512 S     0.0  1.5   0:00 slapd
 1298 qmails    15   0   348  348   276 S     0.0  0.2   0:00 qmail-send
 1300 root      15   0   296  296   244 S     0.0  0.2   0:00 qmail-lspawn
 1301 qmailr    15   0   288  288   232 S     0.0  0.2   0:00 qmail-rspawn
 1302 qmailq    15   0   300  300   248 S     0.0  0.2   0:00 qmail-clean
_____________________________________________________
_____________________________________________________
[root@pybe-netserver root]# netstat -a -n
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:515             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:548             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:4080          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:980           0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.2:980         0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.2:53          0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:981           0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.2:981         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3128            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:1723            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:143           127.0.0.1:1024          ESTABLISHED
tcp        0      0 127.0.0.1:1031          127.0.0.1:980           ESTABLISHED
tcp        0      0 127.0.0.1:1030          127.0.0.1:980           ESTABLISHED
tcp        0      0 127.0.0.1:1033          127.0.0.1:980           ESTABLISHED
tcp        0      0 127.0.0.1:143           127.0.0.1:1025          ESTABLISHED
tcp        0      0 192.168.0.2:80          192.168.0.248:4884      ESTABLISHED
tcp        0      0 127.0.0.1:143           127.0.0.1:1026          ESTABLISHED
tcp        0      0 127.0.0.1:143           127.0.0.1:1027          ESTABLISHED
tcp        0      0 192.168.0.2:993         195.173.18.34:4800      ESTABLISHED
tcp        0      0 127.0.0.1:143           127.0.0.1:1028          ESTABLISHED
tcp        0      0 127.0.0.1:980           127.0.0.1:1031          ESTABLISHED
tcp        0      0 127.0.0.1:980           127.0.0.1:1030          ESTABLISHED
tcp        0      0 192.168.0.2:993         195.173.18.34:4812      ESTABLISHED
tcp        0      0 192.168.0.2:993         195.173.18.34:4798      ESTABLISHED
tcp        0      0 127.0.0.1:980           127.0.0.1:1033          ESTABLISHED
tcp        0      0 127.0.0.1:1027          127.0.0.1:143           ESTABLISHED
tcp        0      0 127.0.0.1:1026          127.0.0.1:143           ESTABLISHED
tcp        0      0 127.0.0.1:1025          127.0.0.1:143           ESTABLISHED
tcp        0      0 127.0.0.1:1024          127.0.0.1:143           ESTABLISHED
tcp        0   3468 192.168.0.2:22          195.173.18.34:4796      ESTABLISHED
tcp        0      0 127.0.0.1:1028          127.0.0.1:143           ESTABLISHED
tcp        0      0 192.168.0.2:993         195.173.18.34:4824      ESTABLISHED
tcp        0      0 192.168.0.2:1723        195.173.18.34:4861      ESTABLISHED
tcp        0      0 192.168.0.2:993         195.173.18.34:4794      ESTABLISHED
udp        0      0 0.0.0.0:1025            0.0.0.0:*
udp        0      0 192.168.0.2:137         0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
udp        0      0 192.168.0.2:138         0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
udp        0      0 192.168.0.2:53          0.0.0.0:*
udp        0      0 127.0.0.1:53            0.0.0.0:*
udp        0      0 0.0.0.0:3130            0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
udp        0      0 192.168.0.2:123         0.0.0.0:*
udp        0      0 127.0.0.1:123           0.0.0.0:*
udp        0      0 0.0.0.0:123             0.0.0.0:*
raw        0      0 0.0.0.0:1               0.0.0.0:*               7
raw        0      0 192.168.0.2:47          195.173.18.34:*

James Pybus

Re: having problems recieveing email.
« Reply #2 on: October 28, 2003, 05:19:35 PM »
Found out what was wrong one of my scsi drives was failing and has now completely stopped. RAID 0 I am afraid.

On top of that I have just realised I made an extremly grave mistake when I set the box up a year and a half ago....

Instead of mounting the large array as /home/e-smith/files I mounted it as /home

Any ideas how I might recover from this extreme balls-up?

Michiel

Re: having problems recieveing email.
« Reply #3 on: October 28, 2003, 05:37:43 PM »
Do you have a back-up of anything?

Charlie Brady

Re: having problems recieveing email.
« Reply #4 on: October 28, 2003, 08:07:32 PM »
James Pybus wrote:
 
> Found out what was wrong one of my scsi drives was failing
> and has now completely stopped. RAID 0 I am afraid.
>
> On top of that I have just realised I made an extremly grave
> mistake when I set the box up a year and a half ago....

Two extremely grave mistakes then - RAID0 was your first.

> Any ideas how I might recover from this extreme balls-up?

From backup.

Charlie

Chaloner Hale

Re: having problems recieveing email.
« Reply #5 on: October 29, 2003, 12:38:46 AM »
I can tell what has worked for one of my clients. We removed the good drive abd installed it as a second drive on an existing Windows machine. We then downloaded a trial version of a utility that can read linux partitions. It showed us all the files and we copied them over to the Windows box.

Then redo your hardware and OS, then copy the files back over. It was actually quite easy.

Chaloner Hale

Chaloner Hale

Re: having problems recieveing email.
« Reply #6 on: October 29, 2003, 01:21:02 AM »
Our problem was identical. One of the Raid0 drives failed. The utility I used was explore2fs.exe. Here is the link;

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Chaloner Hale

Re: having problems recieveing email.
« Reply #7 on: October 29, 2003, 08:08:19 PM »
I assumed this was a raid 1 setup. This procedure works on a raid 1 setup only.

Chaloner Hale

jimbo

Re: having problems recieveing email.
« Reply #8 on: November 04, 2003, 01:31:47 AM »
Thanks for your suggestions, I was using backup2ws but as these things seem to go, the hdd on my pc has stopped spinning too. I am currently righting this on my ppc!

I have dumped the old server and stuck a 10 gb hdd in an old p550 and reinstalled sme. all up and running.

I have some mails for a couple of accounts that were using imap. can i get them back on the server?

i didn't want to hookup the client in case it deletes the mails.

using mozilla thunderbird.

thanks
jimbo