Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd December 2008, 13:54
st2xo st2xo is offline
Member
 
Join Date: Jan 2006
Location: Wiesloch [DE]
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
Default IMAP-Problem: directory is not owned by the correct uid or gid

I have a problem with the correct uid and gid with Maildir-directories.

I set up a standard ISPConfig-2.2.25 on Suse11 with Maildir and changed the Userid- and Groupid-Range to both 8000 (ISPConfig Panel Administration/SystemConfig)
(because of more comfortable restore-possibilities with rsync)

All ist fine except the login with imap-mail client (I use Squirrel), this error occurs:

"ERROR: IMAP server closed the connection. Server responded:* BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid"

I checked now the uid/gid no /home/www/web2/user:
drwxr-xr-x 5 web2_info web2 4,0K 21. Okt 17:11 web2_info/
drwxr-xr-x 5 web2_webmaster web2 4,0K 2. Dez 13:05 web2_webmaster/
and in /etc/passwd
admispconfig:x:1003:1003:Administrator ISPConfig:/home/admispconfig:/bin/bash
ispconfigend:x:20000:20000::/home/ispconfigend:/sbin/nologin
web2_webmaster:x:8001:8002:webmaster:/home/www/web2:/bin/false
web2_info:x:8002:8002:info:/home/www/web2/user/web2_info:/bin/false
in /etc/group:
users:x:100:web2_info
admispconfig:x:1003:admispconfig
ispconfigend:!:20000:
web2:x:10002:admispconfig,web2_webmaster

My question - before I´m starting experiments with the uid/gid on the dirs and files - are that settings as above correct?
Why is the "web2_webmaster" not part of group "users"? Is that correct?
Is there - or could be - any problem by change die uid/gid-ranges (8000 in my example)

Thanks for any hints or help!

(I found this thread t=27618 and have tried the recommended, but no result)
__________________
regards,
Stefan.
Reply With Quote
Sponsored Links
  #2  
Old 3rd December 2008, 16:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /Maildir
in the home directory of one of the affected users?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th December 2008, 10:06
st2xo st2xo is offline
Member
 
Join Date: Jan 2006
Location: Wiesloch [DE]
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi Falko,

/home/www/web2/user/web2_info

drwxr-xr-x 5 web2_info web2 4,0K 21. Okt 17:11 ./
drwxr-xr-x 12 web2_webmaster web2 4,0K 23. Sep 13:33 ../
drwx------ 7 web2_info web2 4,0K 21. Okt 17:00 Maildir/
drwxrwxr-x 2 web2_info web2 4,0K 23. Sep 12:42 web/



/home/www/web2/user/web2_info/Maildir:

drwx------ 7 web2_info web2 4,0K 21. Okt 17:00 ./
drwxr-xr-x 5 web2_info web2 4,0K 21. Okt 17:11 ../
drwx------ 2 web2_info web2 4,0K 5. Dez 07:27 cur/
drwx------ 2 web2_info web2 4,0K 5. Dez 09:49 new/
drwx------ 2 web2_info web2 4,0K 5. Dez 09:49 tmp/


(all the hidden files are not in the list)

I already have done chmod 775 on the dirs which are 700 above.
But no effect, same imap error.

Meanwhile I have added the users (web2_webmaster, web_info) to the groups "users" and "web2" - no effect, same error
__________________
regards,
Stefan.

Last edited by st2xo; 5th December 2008 at 12:34. Reason: some cosmetics ... :)
Reply With Quote
  #4  
Old 5th December 2008, 13:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,754
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Which IMAP server do you use?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 6th December 2008, 01:05
st2xo st2xo is offline
Member
 
Join Date: Jan 2006
Location: Wiesloch [DE]
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
Default

courier-imap 4.3.1-18.1,
(installed with ISPConfig-2.2.25, perfect Suse11 Setup)

I checked the logging in /var/log/mail:

http-GET the Squirell-Webmail Interface
Dec 6 00:50:05 srv2 imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 6 00:50:05 srv2 imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=30, sent=452


http-POST the address/password-data:
Dec 6 00:50:24 srv2 imapd: Connection, ip=[::ffff:127.0.0.1]

results in the error "ERROR: IMAP server closed the connection. Server responded:* BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid"

that is very confusing to me:

"imapd Connection" und "Logout" with the http-GET and another "imapd Connection" with the http-POST? That looks very strange.

On another system (older versions, no imap-problem) there is a complete different behaviour in the /var/log/mail with GET the Squirell-Login Form and POST the data ...
__________________
regards,
Stefan.
Reply With Quote
  #6  
Old 6th December 2008, 13:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Can you check if web2_info is maybe listed more than once in /etc/passwd?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 9th December 2008, 23:16
st2xo st2xo is offline
Member
 
Join Date: Jan 2006
Location: Wiesloch [DE]
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
Default

first: sorry for my late answers ...

both users are listed once in /etc/passwd:
web2_webmaster:x:8001:8002:webmaster:/home/www/web2:/bin/false
web2_info:x:8002:8002:info:/home/www/web2/user/web2_info:/bin/false
__________________
regards,
Stefan.
Reply With Quote
  #8  
Old 10th December 2008, 14:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Then I'm running out of ideas...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 11th December 2008, 11:12
st2xo st2xo is offline
Member
 
Join Date: Jan 2006
Location: Wiesloch [DE]
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

hope next week to be able to run some tests on this topic.
(oops - one week to xmas .... )

First I will "reset" the uid/gid values in
ISPConfig/Panel Administration/SystemConfig
to none values or ... ?
(is it possible to delete the values, so that the field will be empty?)

If somebody has any ideas, I would be glad for your comments!
Thanks so far!
__________________
regards,
Stefan.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The PHP binary coming with ISPConfig does not work properly on your system! KalishNikova Installation/Configuration 6 6th November 2007 14:52
Problem Installing ISPConfig on a Debian System xyhfna Installation/Configuration 17 6th February 2007 14:09
Debian3.1 | PHP Binary planet_fox Installation/Configuration 2 26th September 2006 00:52
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 13:42
Debian install error jf1976 Installation/Configuration 25 19th January 2006 22:31


All times are GMT +2. The time now is 19:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.