Dovecot doesn't sort mails in folders

banderas20

Member
Joined
Aug 1, 2018
Messages
44
Reaction score
17
Credits
287
Hi!

I'm setting up a Postfix + Dovecot mailserver.

Once Dovecot is installed, I edit "/etc/dovecot/conf.d/10-mail.conf" and set this directive as follows:

Code:
mail_location = maildir:~/Maildir

Upon restarting dovecot service, I send an email and I expect to have a folder named
Code:
/home/username/Maildir

However, the folder doesn't exist and the mail only appears in
Code:
/var/mail/username

¿What am I missing?

Thanks!
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,352
Reaction score
3,959
Credits
39,035
postfix is for mail transfer, dovecot is an imap server as in how you can retrieve your mail in order to read it. If you want to allow postfix to receive mail in Maildir format, you will have to edit the /etc/postfix/main.cf --> home_mailbox = Maildir/ . Then to allow dovecot to read your receive mail you have to configure the mail_location. Checkout Postfix Basic Setup.
 
OP
B

banderas20

Member
Joined
Aug 1, 2018
Messages
44
Reaction score
17
Credits
287
postfix is for mail transfer, dovecot is an imap server as in how you can retrieve your mail in order to read it. If you want to allow postfix to receive mail in Maildir format, you will have to edit the /etc/postfix/main.cf --> home_mailbox = Maildir/ . Then to allow dovecot to read your receive mail you have to configure the mail_location. Checkout Postfix Basic Setup.

Hi!

Yes. I have checked both config files to match the mail location and it's working now.

Thank you very much!
 
$200 Digital Ocean Credit
Get a free VM to test out Linux!


Staff online

Members online


Top