Dovecot doesn't sort mails in folders

banderas20

Member
Joined
Aug 1, 2018
Messages
61
Reaction score
23
Credits
437
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,918
Reaction score
4,409
Credits
43,498
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
61
Reaction score
23
Credits
437
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!
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online

No members online now.

Top