Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: MTA service error after power cut

  1. #1
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default MTA service error after power cut

    Hi Guys,

    after the helpful Electricity Company man turned off the power without warning at a small company I help, we are getting errors with their Zimbra installation!
    And, before you ask, no I hadn't gotten around to adding a UPS to the setup yet, so I know it's my own fault for not doing so!

    But on rebooting the Zimbra server they are not getting any local mail or appointment requests.

    I'm pretty sure it's something to do with the MTA service but a zmcontrol status or stop and start does not throw up any errors.
    I think perhaps it's a old process before the power cut still running that needs shutting down.
    We are on CentOS 5 and Zimbra 5, I am not at the building of the company so am not sure on the exact version.
    Any ideas Guys?
    Thanks
    Russ

  2. #2
    Join Date
    May 2007
    Location
    Oklahoma
    Posts
    703
    Rep Power
    9

    Default

    First thing you probably should do is scour the logs. The answer may jump out at you.

    Next, do you have a backup?

    What file system are you running on your server? Is it journalizing?

  3. #3
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Thanks Bill,

    I have had a look at the logs but could not see much amiss, the only thing was in the latest mta log file which mentioned the MTA process already active when stopping and starting Zimbra.
    I am certainly no expert though as you can probably tell!

    I do have backups on the Zimbra server of course, would the easiest thing be to just restore the backup from before the power cut? It would not lose much mail as we have also had broadband issues since that day, BT acidentally cut us off!

    It is running on ext3 which is not journalising I believe.

    Thanks

    Russ

  4. #4
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Straneg thing is, we are definitely sending mail out through a POP account and receiving in through the same account so it must be something about our local accounts since the power cut. It was cetainly working fine before then.

  5. #5
    Join Date
    May 2007
    Location
    Oklahoma
    Posts
    703
    Rep Power
    9

    Default

    Without log entries showing any errors I'm afraid I am at a loss as well. I hate to tell you to do a restore and that not fix the problem. But that is one reason why we do backups.

    Maybe someone else will chime in with an idea.

    I think Ext3 does journalize. Which is a great file system feature. I use reiserfs on all my Linux boxes and have been very pleased on the rare occasion my UPS gave out before power is restored. It's very reassuring to watch those transaction being replayed.

  6. #6
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Thanks Bill.

    I will post logs but am not sure which one I shoul;d be posting.

    I'm sure it's something really simple but just can't figure it out!

    It's not even showing any deferred messages in the mail queue.
    I have tried sending using the basic client too but no difference.

    I am downloading 5.0.5 at the moment to upgrade from 5.0.4 to see if this cures it.

    Thanks for your help once again.

    Russ

  7. #7
    Join Date
    Jan 2007
    Location
    Middlesex, UK
    Posts
    40
    Rep Power
    8

    Default

    Quote Originally Posted by russgalleywood View Post
    Thanks Bill,

    I have had a look at the logs but could not see much amiss, the only thing was in the latest mta log file which mentioned the MTA process already active when stopping and starting Zimbra.

    Russ
    Netstat show any processes hogging the ports?
    All that glitters .... oh look, a shiny thing

  8. #8
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Thanks for helping.
    After stopping Zimbra there is not much else running, nothing I can see that should cause a clash.
    But as I said before, I'm no expert!

    I am going to upgrade to 5.0.5 after backing up.
    If that doesn't work I guess a restore is the best thing.
    What do you think Guys?

    Thanks
    Russ

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    With ZCS shutdown run
    Code:
    netstat -an
    to see whether anything else is holding ports open. Then once you start ZCS again check /var/log/zimbra.log as that should show you any Postfix errors. What does
    Code:
    su - zimbra
    zmcontrol status
    show when you have restarted ZCS ?

    You can also check /opt/zimbra/logger/db/data/.err for any MySQL errors aswell. If there are any errors you could try a autorepair of the tables with
    Code:
    su - zimbra
    /opt/zimbra/libexec/zmdbintegrityreport -r
    or to do it from within MySQL
    Code:
    su - zimbra
    logmysql
    use zimbra_logger;
    show tables; <- this will give you a list of all the ones to check, but the error file should say which one you need to check/fix
    check table mta <- or replace mta with the one(s) from the error file
    repair table mta <- again replace mta with the one(s) from the error file
    quit
    zmcontrol stop ; zmcontrol start
    Last edited by uxbod; 05-17-2008 at 01:07 AM.

  10. #10
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Thanks for your helpful reply Uxbod, especially at the weekend!

    Netstat -an doesn't show anything unusual and on stopping and starting the services zmcontrol status says all are working correctly.

    There are no errors in SQL but the zimbra.log for yesterday does show some MX errors, I will investigate further.

    Thanks

    Russ

Similar Threads

  1. Daily mail report always reports "No messages found"
    By McPringle in forum Installation
    Replies: 42
    Last Post: 06-13-2011, 08:57 AM
  2. zimbra daily reports problem - mta table is empty
    By sine in forum Administrators
    Replies: 4
    Last Post: 09-25-2008, 11:32 PM
  3. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  4. Server Stats Cont...
    By DMRDave in forum Administrators
    Replies: 15
    Last Post: 02-16-2006, 12:16 PM
  5. MTA Service Stopped
    By Ryan Frantz in forum Administrators
    Replies: 7
    Last Post: 11-23-2005, 01:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •