[GH-ISSUE #212] Add mailbox from cli #168

Closed
opened 2026-02-26 09:36:27 +03:00 by kerem · 7 comments
Owner

Originally created by @endelwar on GitHub (Nov 9, 2016).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/212

I can't find any hint about adding a new mailbox from command line or in an automated way.
I've a long csv file with email and password and I would like to automate this task.

Originally created by @endelwar on GitHub (Nov 9, 2016). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/212 I can't find any hint about adding a new mailbox from command line or in an automated way. I've a long csv file with email and password and I would like to automate this task.
kerem closed this issue 2026-02-26 09:36:27 +03:00
Author
Owner

@gibzer commented on GitHub (Nov 10, 2016):

(Attachment deleted, see https://github.com/opensolutions/ViMbAdmin/issues/212#issuecomment-263279768)

I wrote Perl scripts to automate some actions:

  • create mailboxes;
  • create aliases;
  • delete aliases;
  • change passwords.

They need no any Perl dependencies, but doveadm for creating passwords with selected password scheme (because ViMbAdmin in standard tutorial uses Dovecot, it's assumed as installed). They do what is expected, except adding a record to log table. Adjust database settings in scripts (plus mail paths in "create mailbox" script). Read input format in the beginning of script (field delimiter is tabulation).

Usage: ./script file_with_data
or
echo "data" | ./script

Hope it will help.

<!-- gh-comment-id:259697036 --> @gibzer commented on GitHub (Nov 10, 2016): (Attachment deleted, see https://github.com/opensolutions/ViMbAdmin/issues/212#issuecomment-263279768) I wrote Perl scripts to automate some actions: - create mailboxes; - create aliases; - delete aliases; - change passwords. They need no any Perl dependencies, but doveadm for creating passwords with selected password scheme (because ViMbAdmin in standard tutorial uses Dovecot, it's assumed as installed). They do what is expected, except adding a record to log table. Adjust database settings in scripts (plus mail paths in "create mailbox" script). Read input format in the beginning of script (field delimiter is tabulation). Usage: ./script file_with_data or echo "data" | ./script Hope it will help.
Author
Owner

@endelwar commented on GitHub (Nov 26, 2016):

@gibzer great scripts, I've found them very useful!
You should create a PR with them

<!-- gh-comment-id:263055505 --> @endelwar commented on GitHub (Nov 26, 2016): @gibzer great scripts, I've found them very useful! You should create a PR with them
Author
Owner

@gibzer commented on GitHub (Nov 28, 2016):

Created repository for scripts: https://github.com/gibzer/vimbadmin-cli

<!-- gh-comment-id:263273688 --> @gibzer commented on GitHub (Nov 28, 2016): Created repository for scripts: https://github.com/gibzer/vimbadmin-cli
Author
Owner

@extremeshok commented on GitHub (Nov 28, 2016):

Hi

The repo should be called vimbadmin-perl.

Since they do not use actual shell nor the native vimbadmin code.

One would assume the cli would be using php and not perl

Thanks

_________________ eXtremeSHOK.com _________________

On 28 Nov 2016, at 3:41 PM, gibzer notifications@github.com wrote:

Created repository for scripts: https://github.com/gibzer/vimbadmin-cli


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<!-- gh-comment-id:263277643 --> @extremeshok commented on GitHub (Nov 28, 2016): Hi The repo should be called vimbadmin-perl. Since they do not use actual shell nor the native vimbadmin code. One would assume the cli would be using php and not perl Thanks _________________ eXtremeSHOK.com _________________ > On 28 Nov 2016, at 3:41 PM, gibzer <notifications@github.com> wrote: > > Created repository for scripts: https://github.com/gibzer/vimbadmin-cli > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub, or mute the thread. >
Author
Owner

@gibzer commented on GitHub (Nov 28, 2016):

Done.
https://github.com/gibzer/vimbadmin-perl

<!-- gh-comment-id:263279768 --> @gibzer commented on GitHub (Nov 28, 2016): Done. https://github.com/gibzer/vimbadmin-perl
Author
Owner

@endelwar commented on GitHub (Nov 28, 2016):

I don't agree with @extremeshok, they are Command Line Interface to ViMbAdmin, php has nothing to do with this.
If @gibzer wants to rename the project ti should be vimbadmin-tools or something like that...

<!-- gh-comment-id:263280033 --> @endelwar commented on GitHub (Nov 28, 2016): I don't agree with @extremeshok, they are Command Line Interface to ViMbAdmin, php has nothing to do with this. If @gibzer wants to rename the project ti should be vimbadmin-tools or something like that...
Author
Owner

@barryo commented on GitHub (Nov 28, 2016):

Added to: https://github.com/opensolutions/ViMbAdmin/wiki/Third-Party-Applications

<!-- gh-comment-id:263389044 --> @barryo commented on GitHub (Nov 28, 2016): Added to: https://github.com/opensolutions/ViMbAdmin/wiki/Third-Party-Applications
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#168
No description provided.