Koozali.org: home of the SME Server

email restore probleme

Offline painkiller

  • ***
  • 66
  • +0/-0
email restore probleme
« on: September 08, 2007, 09:31:35 PM »
My server crash, i copy the mail from the old disk to the new server , when i wanne see my mail i can see that i have mail and the new mail i can read but the old mail i only can see the header (from, to ,ccc etc) when i open the mail the mail is empty. This is the same when i log in to webmail.

i try this :

chown -R user:user user on each userdir
chmod -R 755 userdir/* on each userdir



Offline raem

  • *
  • 3,972
  • +4/-0
Re: email restore probleme
« Reply #1 on: September 09, 2007, 04:38:30 AM »
painkiller

Even though you say you did change ownership, your problem sounds like an ownership issue. Perhaps you did not do it correctly.
Check ownership is correct

ls -al  /home/e-smith/files/users/username/Maildir/cur
ls -al  /home/e-smith/files/users/username/Maildir/new

cd /home/e-smith/files/users/username/
chown -R username:username Maildir

for each valid username on your system
...

Offline painkiller

  • ***
  • 66
  • +0/-0
Re: email restore probleme
« Reply #2 on: September 09, 2007, 08:54:23 AM »
-rwxr-xr-x   1 rene rene     0 Jul  8 08:45 1183884319.31225.server:2,S
-rwxr-xr-x   1 rene rene     0 Jul 17 15:53 1184687638.28616.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 18 12:40 1187440808.25789.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 19 12:24 1187526244.2153.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 25 05:56 1188021413.29268.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 25 10:00 1188036031.32098.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 26 15:45 1188143134.3269.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 29 05:30 1188365426.24996.server:2,S
-rwxr-xr-x   1 rene rene     0 Aug 29 18:00 1188410437.28120.server:2,S
-rwxr-xr-x   1 rene rene     0 Sep  3 19:07 1188842864.10635.server:2,S
-rwxr-xr-x   1 rene rene  2509 Sep  8 20:13 1189275223.29403.server:2,Sc
-rwxr-xr-x   1 rene rene  6701 Sep  8 20:13 1189275223.29412.server:2,Sa
-rwxr-xr-x   1 rene rene  1393 Sep  8 20:13 1189275223.29421.server:2,Sa
-rwxr-xr-x   1 rene rene 18065 Sep  8 20:13 1189275224.29430.server:2,Sa
-rwxr-xr-x   1 rene rene  2931 Sep  8 20:13 1189275224.29439.server:2,Sa
-rwxr-xr-x   1 rene rene  3258 Sep  8 20:13 1189275224.29448.server:2,Sa
-rwxr-xr-x   1 rene rene 10766 Sep  8 20:13 1189275225.29457.server:2,Sa
-rwxr-xr-x   1 rene rene  2584 Sep  8 20:13 1189275225.29468.server:2,RSa
-rwxr-xr-x   1 rene rene  2765 Sep  8 20:20 1189275636.29680.server:2,S
-rwxr-xr-x   1 rene rene  6972 Sep  9 06:15 1189311310.25570.server:2,Sa


Looks like everything is ok, the filename is highlighted "green" that is executable, right!


Offline raem

  • *
  • 3,972
  • +4/-0
Re: email restore probleme
« Reply #3 on: September 09, 2007, 01:28:28 PM »
painkiller

Quote
-rwxr-xr-x   1 rene rene     0 Jul  8 08:45 1183884319.31225.server:2,S

The messages only need to have
-rw-------
permissions

Look like you have a lot of zero byte size files. Perhaps you did not copy them correctly.
Can you  read those 0 sized message files using mc & view (F3) ?
...

Offline painkiller

  • ***
  • 66
  • +0/-0
Re: email restore probleme
« Reply #4 on: September 09, 2007, 05:07:28 PM »
No i can't read them i gone copy the files again, hope this works!

Offline painkiller

  • ***
  • 66
  • +0/-0
Re: email restore probleme
« Reply #5 on: September 09, 2007, 08:31:01 PM »
YOu are write the files i copied where emty, bad backup i think!!!

Thanks for yout help.