Forum Moderators: bakedjake

Message Too Old, No Replies

Raq 550 /etc/mail/virtusertable: problems

         

jollygoodfella

5:13 pm on Apr 12, 2005 (gmt 0)

10+ Year Member



We have been having some RAID issues with one of our machines in particular. Now I added a site today and the server hung up, we then tried to reboot the machine from the LCD panel and it just sat there. So we did a hard boot and hit the power button.

So now since the site was "half-way" setup it does not show up in the GUI but shows up when I SSH onto the server. I tried resetting up the website through the GUI and now get an error:

::::
Sorry, an error occurred while trying to create an email server map file. If mail server configuration files were removed or manually modified, please restore the original versions and try again.
::::

I have done some research on this topic and it appears that maybe I need to rebuild the "/etc/mail/virtusertable", but how do I do that? Is that even the problem?

There is a backup of "virtusertable" which is 65767 bytes in size, while the "virtusertable" that is being used is 65793 bytes in size.

This all happened when the site was almost setup but then the server hung up for whatever reason.

Does anyone have any ideas?

Thank you in advance! :)

-Mark

MattyMoose

4:01 pm on Apr 13, 2005 (gmt 0)

10+ Year Member



What does your current virtusertable look like? Is it corrupt, with binary garbage in it?

What does a diff from current < old show as being different?

I found this by doing a quick search:


Then rebuild the virtusertable database by running make -C /etc/mail and restart Sendmail by running /etc/init.d/sendmail restart. That’s pretty much all there is to it.

Try that (after backing everything up in /etc/mail of course ;)

MM

jollygoodfella

7:02 pm on Apr 13, 2005 (gmt 0)

10+ Year Member



Thanks for the reply:)

When I pico the virtusertable I see this:

^@^@^@^@^@^@^@^@^@^

When I do the "diff" command I get this:

Binary files virtusertable and virtusertable.backup.1 differ

When I try running that command you sent I get this:

make: Entering directory `/etc/mail'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory `/etc/mail'

Any idess?

Any help would be great as no user on the server can get email. We are in the process of moving sites off to another server but since we have so many its taking forever.

Thanks in advance for your help:)

-Mark

jollygoodfella

8:08 pm on Apr 13, 2005 (gmt 0)

10+ Year Member



I forgot to say that when I pico the backup.1 file I get the same corrupted data.

Is there a way to force the Raq 550 to completly rebuild the virtusertable? Any help is greatly appreciated as no one can check email or add users.

-Mark

MattyMoose

3:34 pm on Apr 14, 2005 (gmt 0)

10+ Year Member



The only thing I can think of is to try remapping... Usually you do that with:

makemap hash virtusertable < virtusertable
or the like. I haven't played with sendmail much in a long time, so I'm a little fuzzy. :(

Give that a try, see if it works out for you. :)

MM

jollygoodfella

3:48 pm on Apr 14, 2005 (gmt 0)

10+ Year Member



Well we tried that too. I think we are just going to move sites off and reformat. That seems like that is the only reasonable thing to do. One guy suggestted that we could hack some perl stuff (i'm not sure exactly) but that that would take almost all day to do and isn't even guaranteed to work.

So if anyone else has any suggestions that would be great:)

-Mark