1

Topic: Learning 101: How does the hashed Maildir get created?

Just out of curiosity, how does the hashed Maildir get created when using a MySQL query to insert a user?  Does Dovecot create the directory upon receipt of the first email to the account?

Running:
RHEL
iRedMail-0.8.5
MySQL

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Learning 101: How does the hashed Maildir get created?

It's generated by iRedMail or iRedAdmin. Check this:
https://bitbucket.org/zhb/iredmail/src/ … ore#cl-303
https://bitbucket.org/zhb/iredmail/src/ … ore#cl-333

3

Re: Learning 101: How does the hashed Maildir get created?

Thank you for the help.  I wondered if I could reiterate my question somewhat.

I understand how the hashed maildir gets formed. 

However, there is also a database entry (one field of which contains the maldir stamed at that time etc; very convenient). 

I wonder then, in the "tools" directory, the bash script creates a SQL file, which you then manually (or automatically) source into MySQL, etc. 


So, how does this single SQL query generate the maildir, physically on the disk?  Is there a cron job that often picks up new SQL queries, and generates the maildir?  Or some other method? 

I've been able to use that script (and port it to suit my app suite), and after the SQL query is injected, the maildir magically appears.  No iredadmin utilized (though when the panel is used the sane functionality occurs).  So I figure the SQL query is the jist of it, but something else is happening behind the scenes, etc),



I'm just wondering how that works.

Thanks again for helping me with the learning curve

4

Re: Learning 101: How does the hashed Maildir get created?

Dovecot will create maildir automatically when user first login via IMAP/POP.