Koozali.org formerly Contribs.org

Unable to recreate user maillog

Unable to recreate user maillog
« on: May 21, 2013, 10:57:46 PM »
I had a problem with spam that left the maillog webmail account with over 250,000 unread mails and as such the webmail wouldn't open for me. I thought that deleting the account would delete all the mail for that account also. Now when I try to add the account back I'm getting the following error: Error: the account "maillog" can't be created because there is already a system account of that name.
I can't see it in the server manager, is there anything I can do to flush this account completely so I can set it back up?

Offline janet

  • ****
  • 4,812
Re: Unable to recreate user maillog
« Reply #1 on: May 22, 2013, 04:54:40 AM »
Zippy28

Quote
.... is there anything I can do to flush this account completely so I can set it back up?

Yes, read the FAQ, link at top of forums.
There are db command instructions there (search the headings), re how to fully delete an incompletely or incorrectly deleted account.
Then you will be able to recreate the account name.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Re: Unable to recreate user maillog
« Reply #2 on: May 22, 2013, 10:34:26 AM »
Yes I followed the following from the FAQ:

signal-event user-delete <username>
db accounts delete <username>

the username still exists?

Re: Unable to recreate user maillog
« Reply #3 on: May 22, 2013, 02:37:55 PM »
Just an update to this when I run the following:
[root@monitor etc]# grep maillog /etc/passwd /etc/group

I get the following response:
/etc/group:maillog:x:5000:

How do I remove this entry without making a mess of the group file?


Offline janet

  • ****
  • 4,812
Re: Unable to recreate user maillog
« Reply #4 on: May 22, 2013, 03:48:05 PM »
Zippy28

Did you read all of that FAQ entry ?
Here:
http://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#Deletion_of_Users_Ibays_Groups

Use the commands to delete the group, replacing <username> <groupname> or <ibayname> with the actual name, in your case maillog

signal-event group-delete maillog
db accounts delete maillog
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Re: Unable to recreate user maillog
« Reply #5 on: May 22, 2013, 05:44:38 PM »
Hi thanks, that fixed the problem for me.  :-)