(SOLVED) Virtual Mailhosting System with Postfix Guide

I am following this guide

( Virtual Mailhosting System with Postfix Guide)


I set up the users in mysql table and when I go log in through squirrelmail I get


Unknown error: [ALERT] Fatal error: .maildir: Permission denied

The permissions are set to 700 on the file. The owner of the maildir is the user the email was sent to. The directory was created automatically when I sent the first email to the user. The mail is getting to the maildir because I can see it when I go to the maildir.

Changing the permissions on the folder to 777

It logs me in but I get

ERROR: Connection dropped by IMAP server.


(on the left bar)


ERROR: Could not complete request.


Reason Given: Unable to open this mailbox.

(on the top.)

I am using sendmail and have gamin installed.

From My Logs:

May 9 22:35:55 www imapd-ssl: chdir .maildir: Permission denied

I was also succesful in sending mail with mailx.

1 Reply

Ok silly mistake that might bite you in the butt!!!

make sure that the uid and gid values are correct. Thats what was wrong.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct