Current time: 04-24-2024, 12:16 AM Hello There, Guest! (LoginRegister)


Post Reply 
proftpd Problem
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #11
RE: proftpd Problem
The mail users have nothing to to with the users in passwd.
All Mails are stored with the same permissions/ownership (vmail:vmail - or somthing like this). Courier has it's own Userdb and this should be updated by ispcp (request manager).

So -> yes, if you do a 'update mail_users set status = "toadd";' and then run the request manager, this userdb should be updated.
Have a look in /etc/courier/userdb - this file is readable and you should see if it's up to date or not.

/J
10-01-2007 12:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #12
RE: proftpd Problem
The permissions not being updated ... in sasldb2 and /etc/courier user files.

Code:
Sep 30 17:16:49 A017 postfix/virtual[1657]: warning: maildir access problem for UID/GID=106/8: create maildir file /var/spool/mail/virtual/xxxxx.de/info/tmp/1191165409.P1657.A017: Permission denied
Sep 30 17:16:49 A017 postfix/virtual[1657]: warning: perhaps you need to create the maildirs in advance
(This post was last modified: 10-01-2007 01:24 AM by fulltilt.)
10-01-2007 01:24 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #13
RE: proftpd Problem
Hi
ok, the file permissions you have to correct by yourseve:
I have user "vmail" group "mail" (have a look in /etc/ispcp/ispcp.confSmile
***
MTA_MAILBOX_UID = 1001
MTA_MAILBOX_UID_NAME = vmail
MTA_MAILBOX_GID = 8
MTA_MAILBOX_GID_NAME = mail
***

and all files & folders in /var/mail (not /var/mail itself) have ownership vmail:mail

The permissions are "flexible" but -rw------- and drwx------ should do it...

/Joximu
10-01-2007 01:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #14
RE: proftpd Problem
Code:
/var/spool/postfix/etc/passwd and /etc/passwd differ
10-01-2007 01:34 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #15
RE: proftpd Problem
fulltilt Wrote:
Code:
/var/spool/postfix/etc/passwd and /etc/passwd differ

Well - the one in /var/spool/... is needed for the parts of postfix which runs chrooted - it's not necessary to be complete... (but the lines in the file should also be in /etc/passwd...)

If you setup you operating system correct then this should be ok.

Update: the files are the same on my server but the copying is done be the system (I think by postfix restart it should be copied...) - not by me and I think not by ispcp.

/J
(This post was last modified: 10-01-2007 01:44 AM by joximu.)
10-01-2007 01:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #16
RE: proftpd Problem
i'm going crazy ...

The Mail is working now after migration.
But the Problem is proftpd user id's in Database are differnt like in passwd.
If i change the user in passwd the mail users did not work.

Is there's a way to update ftp_users table with users from /etc/passwd?
Maybe a script from ispCP or another script that reads from passwd and change users in table ftp_users ...
10-01-2007 05:55 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #17
RE: proftpd Problem
fulltilt Wrote:i'm going crazy ...

The Mail is working now after migration.
But the Problem is proftpd user id's in Database are differnt like in passwd.
If i change the user in passwd the mail users did not work.

This is strange, because all mails are running with user vmail.
Only FTP (and the Websites) have their vu2xxx User... (/etc/passwd and ispcp.ftp_users/ispcp.domain must correlate...

fulltilt Wrote:Is there's a way to update ftp_users table with users from /etc/passwd?
Maybe a script from ispCP or another script that reads from passwd and change users in table ftp_users ...

Since there are two tables (domain and ftp_users) with the uid and gid infos it's maybe easier to update the /etc/passwd with the info...

it should be possible to write a small php script which generates a passwd-like file...

Cheers
/Joximu
10-01-2007 06:53 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: 1 Guest(s)