PDA

View Full Version : Purge Mailboxes


Trafalger
12-09-2009, 03:14 PM
Is there a command I can run to purge the mailboxes under a specific siteworx acct?

The number of mailboxes involved does not favor going through them all one by one and purging the mail via the web interface.

IWorx-Paul
12-10-2009, 10:54 PM
You can delete e-mail boxes as root by running the command

~vpopmail/bin/vdeluser user@domain.com

Does that help?

Paul

Trafalger
12-11-2009, 10:25 AM
possibly is there a vpop command to create a user?

EverythingWeb
12-11-2009, 11:09 AM
~vpopmail/bin/vadduser info@domain.com 123456

This will create an email account info@domain.com with password 123456

However, this probly wont save it to the interworx database so might not be recommended?

Trafalger
12-11-2009, 11:11 AM
Is there a way to import users? I have 100+ users i need to import into different domains

EverythingWeb
12-11-2009, 11:49 AM
Absolutely there is now! :D

http://www.interworx.com/support/docs/iworx-cp/developer/api-spec#ctrl_siteworx_emailbox_add

Trafalger
12-11-2009, 12:17 PM
great so what would be the command to run this

/siteworx/email/box add user@domain.com password password

EverythingWeb
12-11-2009, 12:24 PM
No, that's an API call. You'll need to connect via XML-RPC or Soap.

EverythingWeb
12-12-2009, 11:47 AM
How did you get on? :)

Trafalger
12-14-2009, 04:03 PM
Had to do it by hand :(

Keying in over 500 emails sucks...

IWorx-Paul
12-15-2009, 01:28 AM
Had to do it by hand :(

Keying in over 500 emails sucks...

I'm sorry I didn't get to you sooner - the vadduser command suggested by EverythingWeb would have worked fine as well.

Paul

Trafalger
12-15-2009, 01:38 AM
I'll try it on the rest of the users