ispCP - Board - Support
POP/IMAP not working after update RC5 -> 1.0.2 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: POP/IMAP not working after update RC5 -> 1.0.2 (/thread-8573.html)

Pages: 1 2


POP/IMAP not working after update RC5 -> 1.0.2 - fm4 - 11-26-2009 04:50 PM

Hi there,

emailing is not working anymore after I updatet from rc5 to 1.0.2. Neither the Webmailer nor Thunderbird are able to get a connection - I think the login is the problem.

tail /var/log/mail.log says:
pop3d-ssl: Connection, ip=[::ffff:XX.XX.XX.XXX]
pop3d-ssl: user@domain.net: chdir(/var/mail/virtual/domain.net/user) failed!!
pop3d-ssl: error: Permission denied
pop3d-ssl: LOGIN FAILED, user=user@domain.net, ip=[::ffff:XX.XX.XX.XXX]
pop3d-ssl: authentication error: Permission denied

I would be very glad if someone can help me out with this.

Thanks
fm4


RE: POP/IMAP not working after update RC5 -> 1.0.2 - kilburn - 12-02-2009 05:53 PM

Quote:pop3d-ssl: user@domain.net: chdir(/var/mail/virtual/domain.net/user) failed!!
pop3d-ssl: error: Permission denied

Something went wrong regarding permissions. Make sure that /var/mail/virtual is chmod 0755, owned by root:root and all of it's subdirectories are owned by vmail:mail with 0700 (directories) or 0600 (files) permissions...


RE: POP/IMAP not working after update RC5 -> 1.0.2 - fm4 - 12-02-2009 07:29 PM

(12-02-2009 05:53 PM)kilburn Wrote:  
Quote:pop3d-ssl: user@domain.net: chdir(/var/mail/virtual/domain.net/user) failed!!
pop3d-ssl: error: Permission denied

Something went wrong regarding permissions. Make sure that /var/mail/virtual is chmod 0755, owned by root:root and all of it's subdirectories are owned by vmail:mail with 0700 (directories) or 0600 (files) permissions...

It seems that all permissons are set correct - but the error remains. Could the reason of this error be the password encryption which was introduced in RC7?


RE: POP/IMAP not working after update RC5 -> 1.0.2 - kilburn - 12-02-2009 08:17 PM

Seriously, something must be wrong regarding permissions if you are getting this message. Try to switch to the user who is running pop3d-ssl (vmail?) and "cd /var/mail/virtual/domain.net/user"...


RE: POP/IMAP not working after update RC5 -> 1.0.2 - fm4 - 12-03-2009 12:51 AM

I cannot switch to the user vmail. couriertcpd which is run by pop3d-ssl runs with root privileges.


RE: POP/IMAP not working after update RC5 -> 1.0.2 - nuke3d - 12-03-2009 06:57 PM

So as root you can do
Code:
cd /var/mail/virtual/domain.net/user
?
What does "ls -la" say?


RE: POP/IMAP not working after update RC5 -> 1.0.2 - fm4 - 12-09-2009 06:09 AM

"ls -al" says:

Quote:drwx------ 9 vmail mail 4096 2009-11-17 15:09 .
drwx------ 3 vmail mail 4096 2008-07-02 21:59 ..
drwx------ 2 vmail mail 4096 2008-07-03 09:08 courierimapkeywords
-rw------- 1 vmail mail 36 2008-07-03 09:08 courierimapsubscribed
-rw------- 1 vmail mail 15 2008-10-06 11:13 courierimapuiddb
-rw------- 1 vmail mail 101 2009-11-22 10:51 courierpop3dsizelist
drwx------ 2 vmail mail 4096 2009-11-22 10:51 cur
drwx------ 6 vmail mail 4096 2009-11-17 15:05 .Drafts
drwx------ 2 vmail mail 4096 2009-12-01 13:29 new
drwx------ 6 vmail mail 4096 2009-11-17 15:05 .Sent
drwx------ 2 vmail mail 4096 2009-12-01 13:29 tmp
drwx------ 6 vmail mail 4096 2009-11-17 15:05 .Trash

I think that is as it should be isn't it?


RE: POP/IMAP not working after update RC5 -> 1.0.2 - kilburn - 12-09-2009 07:57 AM

As root, try to execute:
Code:
# su vmail -c cd /var/mail/virtual/domain.net/user

The problem is probably in some intermediate folder, not in the "user" one itself...


RE: POP/IMAP not working after update RC5 -> 1.0.2 - fm4 - 12-10-2009 05:19 AM

(12-09-2009 07:57 AM)kilburn Wrote:  As root, try to execute:
Code:
# su vmail -c cd /var/mail/virtual/domain.net/user
I don't get any error message back from the su command, so it seems to be ok, right?


RE: POP/IMAP not working after update RC5 -> 1.0.2 - Jillian - 12-10-2009 07:05 AM

check /etc/courier/userdb and compare uid to /etc/ispcp/ispcp.conf line MTA_MAILBOX_UID =
Example:
/etc/courier/userdb: email@domain.tld uid=1001|gid...
/etc/ispcp/ispcp.conf: MTA_MAILBOX_UID = 1001
If they match, check vmail uid/gid with command: id vmail and check if they match to config.