Installing the iRedMail mail server on CentOS 7. Part 5. Storage structure of virtual mailboxes

Installing the mail server iRedMail. Storage structure for virtual boxes

A series of articles on installing and configuring the iRedMail mail server

  • Installing the iRedMail mail server on CentOS 7. Part 1. Basic installation
  • Installing the iRedMail mail server on CentOS 7. Part 2. Fighting spam
  • Installing the iRedMail mail server on CentOS 7. Part 3. Aliases, a web interface for working with aliases
  • Installing the iRedMail mail server on CentOS 7. Part 4. Configuring Postfix, authorization without entering a domain
  • Installing the iRedMail mail server on CentOS 7. Part 5. Storage structure of virtual mailboxes
  • Installing the iRedMail mail server on CentOS 7. Part 6. DKIM, SPF, DMARC
  • Installing the iRedMail mail server on CentOS 7. Part 7. Greylisting whitelist, WEB interface, Dovecot quota
  • Installation of the mail server iRedMail on CentOS 7. Part 8. White and black lists. Web interface

Initially, mail is stored in the directory

/var/vmail/vmail1/example.com

further directory structure looks a little strange, for example, for the mailbox [email protected]:

/var/vmail/vmail1/example.com/p/o/s/postmaster/

To change the structure, you need to edit the default_settings.py file

[[email protected]]# nano /opt/iredadmin/libs/default_settings.py
MAILDIR_HASHED = False
MAILDIR_APPEND_TIMESTAMP = False

New mailboxes will be located in the directory

/var/vmail/vmail1/example.com

To change the path of already created mailboxes, you need to edit the path in the vmail base, table – mailbox, column – maildir And transfer the directory, for example postmaster:

[[email protected]]# mv /var/vmail/vmail1/example.com/p/o/s/postmaster/ /var/vmail/vmail1/example.com/postmaster/
Sidebar