miniBB: free php bulletin board and forum softwareECM2 
 - Forums - Reply - Statistics - Search -
ECM2 Forum / ECM2 Installation / Squirrelmail logins
Author Message
cursulak
Member
# Posted: 1 Apr 2008 09:14
Reply 


This is a separate topic from my others and maybe some are using squirrelmail for the web acess... my question is around directory permissions.

ecm2admin is making the domains and mailboxes fine...

but when using squirrelmail I get the error that imap can't log users into the same paths (permission denied errors)... does anyone know the correct gid and uid?

thanks.

chris

cursulak
Member
# Posted: 1 Apr 2008 09:17
Reply 


I get this error from squirrelmail on the web

ERROR:
Unknown error: [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid:

and console log is

Apr 1 11:40:12 iconindustries imapd[258]: gdlawson@lawsonpark.ca: chdir(/volumes/Web/mail/LawsonPark/lawsonpark.ca/g dlawson@lawsonpark.ca) failed!!
Apr 1 11:40:12 iconindustries imapd[258]: error: No such file or directory

so it seems clear to me it can't see it.

thoughts?

cursulak
Member
# Posted: 1 Apr 2008 09:23
Reply 


oh and I am using both posix and acl

George
Admin
# Posted: 1 Apr 2008 09:24
Reply 


http://maxo.captainnet.net/ecm2/squirrelmail.html

cursulak
Member
# Posted: 1 Apr 2008 09:27
Reply 


damn.... missed that one.

Thanks George...

cursulak
Member
# Posted: 1 Apr 2008 09:43
Reply 


actually... that didn't solve the problem
just to confirm
apache was halted
changes made
substituted my actual directories (different from usr/share/)
squirrelmail is set to courier
squirrelmail configtest script says ok

other thoughts?

George
Admin
# Posted: 1 Apr 2008 09:59
Reply 


substituted my actual directories (different from usr/share/)

wherever it is... permission on data and attachment folders must be as shown here.

cd /usr/share/squirrelmail

chown -R www data
chgrp -R www data

mkdir attachments

chown -R root attachments
chgrp -R www attachments
chmod -R 730 attachments

cursulak
Member
# Posted: 1 Apr 2008 10:04
Reply 


This is so far all I can find in log files:

Apr 1 12:49:19 iconindustries imapd[242]: couriertls: /usr/local/courier-imap/share/imapd.pem: error:02001002:system library:fopen:No such file or directory

cursulak
Member
# Posted: 1 Apr 2008 10:06
Reply 


ah which is true... this is all that's in that directory
drwxr-xr-x 4 root wheel 136 Mar 28 12:34 man
-rwxr-xr-x 1 root wheel 2193 Mar 28 12:34 mkimapdcert
-rwxr-xr-x 1 root wheel 2193 Mar 28 12:34 mkpop3dcert

I've installed courier scripts again and they didn't add anything here.

cursulak
Member
# Posted: 1 Apr 2008 11:29
Reply 


another update....
I went into squirrelmail config and took all secured logins off, left it just plain text and 143....
the message changed to:
ERROR: Connection dropped by IMAP server.

the log file doesn't seem to add anything.

cursulak
Member
# Posted: 1 Apr 2008 12:00
Reply 


Just a note as well. these problems seem to be limited to client login only. I have sent emails to the domain(s) etc and they're being delivered fine. Both checking the log and looking in the actual mailbox folder. all is good.

I have also tried logging in with a mail.app through both imap and pop and can't do either of those either... so this appears to be just on the login side.

cursulak
Member
# Posted: 1 Apr 2008 13:41
Reply 


ok I've got pop clients working so it seems to be localized to just squirrelmail...

the mole continues digging....

cursulak
Member
# Posted: 1 Apr 2008 13:47
Reply 


Ok found one solution... here is the answer to my error message:

Mismatches between ownership of the mailbox directory and the
ownership retrieved from the account database can cause mysterious
error messages. To prevent these a sanity check was added to Courier
IMAP. Such mismatches trigger the following error on login:

BYE [ALERT] Fatal error: Account's mailbox directory is not owned
by the correct uid or gid

The sanity check can be averted by setting IMAP_MAILBOX_SANITY_CHECK in /etc/courier/imapd to 0 and restart Courier IMAP.

using imapd.rc stop and then start and same for pop3d.rc we're back running again.

whew!

cursulak
Member
# Posted: 1 Apr 2008 14:17
Reply 


Although logins are working ok... the server is now rejecting mail

2008-04-01 17:15:35 H=smtp2.cogeco.ca (fep3.cogeco.net) [216.221.81.29] sender verify fail for <chris@barantas.ca>: Unrouteable address
2008-04-01 17:15:35 H=smtp2.cogeco.ca (fep3.cogeco.net) [216.221.81.29] F=<chris@barantas.ca> rejected RCPT <gdllawson@lawsonpark.ca>: Sender verify failed

not sure why those two are related... all I changed was the insanity check?

cursulak
Member
# Posted: 1 Apr 2008 15:39
Reply 


ah found the problem....
don't have a domain defined that you haven't formally routed the mx path to yet (cart before the horse scenario) ;-)

thanks George for all your help... it appears to be working well.

now for some custom skins.
I like these:
http://www.nutsmail.com/squirrelmail.htm

cheers

Your reply
Bold Style  Italic Style  Underlined Style  Image Link  URL Link 

» Username  » Password 
Only registered users can post here. Please enter your login/password details before posting a message, or register here first.