Hi there!

I am trying to get squirrelmail configured with dovecot so that my small organization can use this mail service.

I am going with a basic install just to get things working, and then secure from there, and i THINK i am almost there.

So, i try to login to the squirrelmail interface with the one and only user setup on the server, and i get this error:
Error opening ../data/default_pref
Could not create initial preference file!
/srv/www/MAIL/squirrelmail/data/ should be writable by user httpd
Please contact your system administrator and report this error.
I was going through the docs on squirrelmails website for this error, and the solution there was to make sure that apaches user owns the directory and has proper privileges.

so, i made here and here is the ouput of ls -l:

drwxr-xr-x  3 kris   users 4096 Nov 15 19:01 contrib
drwxrwxr-x  2 wwwrun www   4096 Nov 26 17:45 data
drwxr-xr-x  3 kris   users 4096 Nov 15 19:01 doc
and the same goes for the files within the directory. It seems that apaches default user and group is www/wwwrun which is fine, but the rest of the entire site that i am serving out is running on my local user (who doesnt have root privileges).

I dont claim to be an expert on these things, but wouldnt it make sense if my whole site were owned by the apache user? It worked since the start with my default user so i left it the way it was (dont fix it if its not broken?). Anyways... so my next thought is maybe the apache user should own all the files in the websites directory, but i am scared to just do that incase the site goes down (client wouldnt be happy). This is just speculation as to why that isnt working, and if that isnt the problem, then ive got no clue what is.

Incase it is relevant, i am using postfix and dovecot.

Thanks for any advice!