1

Topic: how can i change store location path for new mailboxes?

==== Required information ====
- iRedMail version: 0.9.2
- Store mail accounts in which backend MySQL
- Web server (Apache
- Linux/BSD distribution name and version:ubuntu.14.04.2-lts
- Related log if you're reporting an issue:

====

when i open a new mailbox, iredmail stores it following format
test.domain.com/m/a/s/maslak-2015.06.05.11.21.33/

how can i change this such as  test.domain.com/maslak..

----

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

2

Re: how can i change store location path for new mailboxes?

Add below settings in iRedAdmin config file, then restart Apache or uwsgi service:

MAILDIR_HASHED = False
MAILDIR_APPEND_TIMESTAMP = False

For more details about these settings, please check file 'libs/default_settings.py' in iRedAdmin.

3

Re: how can i change store location path for new mailboxes?

ZhangHuangbin wrote:

Add below settings in iRedAdmin config file, then restart Apache or uwsgi service:

MAILDIR_HASHED = False
MAILDIR_APPEND_TIMESTAMP = False

For more details about these settings, please check file 'libs/default_settings.py' in iRedAdmin.

Ok my problem is solved with above settings.

I have many accounts on another server. I exported them into a text file which formatted such as "fullname(first and surname), mailaddress in every line . How can open multiple them  on the iredmail?
i want to open these accounts with different random password for every account
is there a script to do ?

4

Re: how can i change store location path for new mailboxes?

Check scripts shipped in iRedMail-0.9.2/tools/create_mail_user_*.

5

Re: how can i change store location path for new mailboxes?

======== Required information ====
- iRedAdmin v0.4.2 (MySQL) iRedMail 0.9.2
- Linux Ubuntu 14.04 LTS
- Store mail accounts in  Mysql
- Web server Apache
====

I have a similar issue at the moment.
The cloud space on my system drive /  is minimal.
So i ordered a second hard drive mounted at /media/mail/
How do i change the mail storage  and keep the existing mails?

6

Re: how can i change store location path for new mailboxes?

Hi neozimpi,

Try this: Move /var/vmail to /media/mail, then create a symbol link of /media/mail/vmail1 to /var/vmail/vmail1.

7

Re: how can i change store location path for new mailboxes?

ZhangHuangbin wrote:

Hi neozimpi,

Try this: Move /var/vmail to /media/mail, then create a symbol link of /media/mail/vmail1 to /var/vmail/vmail1.


Is this ok on an ubuntu system?
Of course dovecot and postfix will be stoped before doing this.


mv /var/vmail /media/mail

ln -s /media/mail/vmail1 /var/vmail/vmail1

this is a mail system in use.
Hope this will do the trick
(waiting for confirmation)

8

Re: how can i change store location path for new mailboxes?

neozimpi@gmail.com wrote:

mv /var/vmail /media/mail
ln -s /media/mail/vmail1 /var/vmail/vmail1

If you mounted storage on /media/mail, then after "mv /var/vmail /media/mail", you should have these 3 directories:

/media/mail/vmail/vmail1
/media/mail/vmail/backup
/media/mail/vmail/sieve

So the second command is WRONG. You should create symbol link with this command:

ln -s /media/mail/vmail /var/vmail

9

Re: how can i change store location path for new mailboxes?

ZhangHuangbin wrote:
neozimpi@gmail.com wrote:

mv /var/vmail /media/mail
ln -s /media/mail/vmail1 /var/vmail/vmail1

If you mounted storage on /media/mail, then after "mv /var/vmail /media/mail", you should have these 3 directories:

/media/mail/vmail/vmail1
/media/mail/vmail/backup
/media/mail/vmail/sieve

So the second command is WRONG. You should create symbol link with this command:

ln -s /media/mail/vmail /var/vmail

Thank you for rechecking. My error would have been disastrous.
It worked like a charm.
Better than editing all the configs.

thx again.

btw what happens if i buy you a "coffee" ?

10

Re: how can i change store location path for new mailboxes?

neozimpi@gmail.com wrote:

btw what happens if i buy you a "coffee" ?

Then i got your money to buy a cup of coffee. smile