[GH-ISSUE #13] Create the Maildir when adding new mail account #11

Closed
opened 2026-02-26 09:35:06 +03:00 by kerem · 2 comments
Owner

Originally created by @dexterd on GitHub (Mar 16, 2012).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/13

Can ViMbAdmin be modified like PostfixAdmin (http://www.howtoforge.com/virtual_users_postfix_courier_mailscanner_clamav_centos_p5) to be able to work with Maildrop?

Originally created by @dexterd on GitHub (Mar 16, 2012). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/13 Can ViMbAdmin be modified like PostfixAdmin (http://www.howtoforge.com/virtual_users_postfix_courier_mailscanner_clamav_centos_p5) to be able to work with Maildrop?
kerem closed this issue 2026-02-26 09:35:07 +03:00
Author
Owner

@barryo commented on GitHub (Mar 20, 2012):

You can certainly hack ViMbAdmin to do something like this in almost the same way by adding code to application/controllers/MailboxController.php in the function editAction() (which is also for adding mailboxes).

However, you really shouldn't. This would require ViMbAdmin to be installed on the same server as your POP3/IMAP daemon and would affect scalability. I would argue that this isn't really the job or ViMbAdmin (or PostfixAdmin for that matter).

ViMbAdmin already has the database structure to support what you want to do I believe (see homedir, uid, gid, quota and maildir in the mailbox schema).

After that, it's really up to the LDA (local delivery agent) to pull and use these values when creating the maildir for the first time.

Dovecot (probably the best POP3 / IMAP client around these days) has taken leaps and bounds with it's own LDA called deliver. See the following links:

The last should be easily followed for ViMbAdmin rather than PostfixAdmin.

I'm going to make it my business to write a complete Postfix / Dovecot / LDA / ViMbAdmin how to over the next week.

<!-- gh-comment-id:4590652 --> @barryo commented on GitHub (Mar 20, 2012): You can certainly hack ViMbAdmin to do something like this in almost the same way by adding code to `application/controllers/MailboxController.php` in the function `editAction()` (which is also for adding mailboxes). However, you really shouldn't. This would require ViMbAdmin to be installed on the same server as your POP3/IMAP daemon and would affect scalability. I would argue that this isn't really the job or ViMbAdmin (or PostfixAdmin for that matter). ViMbAdmin already has the database structure to support what you want to do I believe (see `homedir`, `uid`, `gid`, `quota` and `maildir` in the `mailbox` schema). After that, it's really up to the LDA _(local delivery agent)_ to pull and use these values when creating the maildir for the first time. Dovecot (probably the best POP3 / IMAP client around these days) has taken leaps and bounds with it's own LDA called _deliver_. See the following links: - http://wiki.dovecot.org/Quota/1.1 - http://wiki2.dovecot.org/LDA - http://wiki.dovecot.org/HowTo/DovecotLDAPostfixAdminMySQL The last should be easily followed for ViMbAdmin rather than PostfixAdmin. I'm going to make it my business to write a complete Postfix / Dovecot / LDA / ViMbAdmin how to over the next week.
Author
Owner

@dexterd commented on GitHub (Apr 4, 2012):

Thanks! I solved it using maildroprc scripting.

<!-- gh-comment-id:4956603 --> @dexterd commented on GitHub (Apr 4, 2012): Thanks! I solved it using maildroprc scripting.
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#11
No description provided.