Current time: 11-16-2024, 08:50 AM Hello There, Guest! (LoginRegister)


Post Reply 
POP/IMAP not working after update RC5 -> 1.0.2
Author Message
fm4 Offline
Junior Member
*

Posts: 12
Joined: Jul 2008
Reputation: 0
Post: #1
POP/IMAP not working after update RC5 -> 1.0.2
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
11-26-2009 04:50 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: POP/IMAP not working after update RC5 -> 1.0.2
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...
12-02-2009 05:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
fm4 Offline
Junior Member
*

Posts: 12
Joined: Jul 2008
Reputation: 0
Post: #3
RE: POP/IMAP not working after update RC5 -> 1.0.2
(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?
12-02-2009 07:29 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: POP/IMAP not working after update RC5 -> 1.0.2
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"...
12-02-2009 08:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
fm4 Offline
Junior Member
*

Posts: 12
Joined: Jul 2008
Reputation: 0
Post: #5
RE: POP/IMAP not working after update RC5 -> 1.0.2
I cannot switch to the user vmail. couriertcpd which is run by pop3d-ssl runs with root privileges.
12-03-2009 12:51 AM
Find all posts by this user Quote this message in a reply
nuke3d Offline
Junior Member
*

Posts: 107
Joined: Sep 2007
Reputation: 1
Post: #6
RE: POP/IMAP not working after update RC5 -> 1.0.2
So as root you can do
Code:
cd /var/mail/virtual/domain.net/user
?
What does "ls -la" say?
12-03-2009 06:57 PM
Find all posts by this user Quote this message in a reply
fm4 Offline
Junior Member
*

Posts: 12
Joined: Jul 2008
Reputation: 0
Post: #7
RE: POP/IMAP not working after update RC5 -> 1.0.2
"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?
12-09-2009 06:09 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: POP/IMAP not working after update RC5 -> 1.0.2
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...
12-09-2009 07:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fm4 Offline
Junior Member
*

Posts: 12
Joined: Jul 2008
Reputation: 0
Post: #9
RE: POP/IMAP not working after update RC5 -> 1.0.2
(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?
12-10-2009 05:19 AM
Find all posts by this user Quote this message in a reply
Jillian Offline
Junior Member
*

Posts: 51
Joined: Mar 2009
Reputation: 1
Post: #10
RE: POP/IMAP not working after update RC5 -> 1.0.2
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.
12-10-2009 07:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)