Tag Archives: Dovecot

Removing the Inbox Prefix in Dovecot

This is how you remove the Inbox Prefix server-side when using Dovecot.

Firstly let’s create the file…

Now we need to add the following to it…

Finally restart Dovecot…

And you’re done.

Creating Default Mailboxes Automatically

This is how you can create default mailboxes automatically when using Dovecot and Plesk…

And add the following…

Then restart Dovecot…

Now when you add an email user in Plesk these mailboxes will be created automatically for them.

Moving Plesks Mail Directory

This is an update to a kb article at Plesk KB6312 on How to move the Plesk Mail Directory.
I will use the example folder /var/vmail

1. Edit psa.conf

Changing “PLESK_MAILNAMES_D” to the desired location…

2. Then run the following command which will create the new folder and copy the contents of the qmail directory to the new directory…

3. And change the maildirs in Dovecot…

Adding the following…

4. Run…

This will update the following configuration files

/etc/postfix/main.cf
/etc/postfix/master.cf
/etc/default/spamassassin

with the correct paths to your new Maildir.

5. We need to edit the spamtrain script…

You will see line 8…

Simply change this to…

6. The last thing we need to do is create the Spamassasin Home Directory…