Koozali.org: home of the SME Server

After restore of system e-mail does not work!

cyberlair

After restore of system e-mail does not work!
« on: February 20, 2006, 03:37:53 PM »
I had to restore my server after a failed attempt to upgrade from 6.01 to 7. Now evertything is mostly back on the server but the email does not function? When I log into webmail all my email is gone? If I look in my home dir under cur it shows a bunch of email? I also cannot send or receive?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: After restore of system e-mail does not work!
« Reply #1 on: February 20, 2006, 04:55:19 PM »
Quote from: "cyberlair"
I had to restore my server after a failed attempt to upgrade from 6.01 to 7.


Please be sure to provide a full report of your problems via the Bug Tracker. Upgrades should work, not fail.

Quote

Now evertything is mostly back on the server but the email does not function? When I log into webmail all my email is gone? If I look in my home dir under cur it shows a bunch of email? I also cannot send or receive?


Did you restore onto a 6.x system? If so, the correct sequence (to avoid problems which have already been fixed) is:

install 6.x
upgrade 6.x - to include all current bug fixes and security fixes
restore from backup

The apparently missing mail is a permission problem which is fixed in an update.

To avoid the potential to lose mail during the restore procedure, you should do the system upgrade via an internet connection other than your usual IP address. Or you should disable SMTP prior to connecting to the net. The instructions for doing that vary between 6.x and 7.0. For 6.x do:

/sbin/e-smith/config setprop smtpfront-qmail status disabled
/sbin/e-smith/signal-event email-update

For 7.0:

config setprop qpsmtpd status disabled
signal-event email-update

cyberlair

After restore of system e-mail does not work!
« Reply #2 on: February 20, 2006, 06:27:40 PM »
Thanks for the help.

Yes. I did the restore on a fresh install of SME 6.01. I then restored from my tape backup. I changed the permissions back on my user dir chmod -R jason:jason jason. I can now see my old emails. I have several accounts on the server that I will have to adjust.

I installed yum and updated everything.

I still cannot send or receive emails, I am testing this with webmail. If I sent an email to myself it appears to send and goes into the sent items folder but is never received in my inbox?

I realize you suggested that I update the system before the restore but I already updated before your post.... Do I have to redo this again from scratch with your method or can it be repaired in its current state?

Hope you can help with this one.

cyberlair

After restore of system e-mail does not work!
« Reply #3 on: February 21, 2006, 01:25:30 AM »
OK Well I installed SME 6.01 fresh again.
Installed Yum and updated the entire system.
Now I'm running the restore from tape....
We'll see how that turns out tomorrow. :-?

cyberlair

After restore of system e-mail does not work!
« Reply #4 on: February 21, 2006, 05:15:49 AM »
I have completed the restore and yes now I have all the emails in everyones account but the email server still with not send receive?

When I try and send an email through webmail I get "There was an error sending your message: unable to send data."

When I try and send an email through pine I get "Mail not sent. Sending error:421 SMTP connection went away!"   :-o  

I also cannot receive any messages. This is not good.....

cyberlair

After restore of system e-mail does not work!
« Reply #5 on: February 22, 2006, 01:03:44 AM »
Well I was able to resolve the problem. I am not entirely sure what exactly the issue was.

The restore went well everything was back on the system and emails, accounts were all in tack. However there seemed to be a permissions issue with connecting to the smtp server? So I ran the smeplush.sh script and updated the server. This then allowed me to send mail without any errors but would not arrive at its destination. I ran the spamfilter_install.sh script and then the antivirus_install.sh script. After running the antivirus script I could then see the antivirus config in server manager and noticed the emails pilling up in the queue. I clicked on deliver all and they went out, its been working fine since.  :-D

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
After restore of system e-mail does not work!
« Reply #6 on: February 24, 2006, 07:32:46 PM »
Quote from: "cyberlair"
Well I was able to resolve the problem. I am not entirely sure what exactly the issue was.

The restore went well everything was back on the system and emails, accounts were all in tack. However there seemed to be a permissions issue with connecting to the smtp server? So I ran the smeplush.sh script and updated the server. This then allowed me to send mail without any errors but would not arrive at its destination. I ran the spamfilter_install.sh script and then the antivirus_install.sh script. After running the antivirus script I could then see the antivirus config in server manager and noticed the emails pilling up in the queue. I clicked on deliver all and they went out, its been working fine since.  :-D


So what other extra contribs did you have installed, that you failed to report?  If you had spamfilter and antivirus installed before and did a restore, then that is/was your issue.  These contribs change templates and when you restore them, the templates are also restored.  So, after the first reboot from the restore, these templates are re-built, so if you don't have the same packages installed, then you experience just what you got.  

It helps everyone, well in this case Charlie, when you make a report of things not working, that you detail what is different from the old vs. new setup.  Had you stated you had installed Jesper's contribs on the old server, then the solution to your issue would have been easier to track down.  Although 1 day for a resolution isn't that bad.

JHB
......