In Reply To:
>> When I try to run the cron job as non root, messages are retained in the users account. I dont believe the user has permission to rename the files in var/spool/mail
incoming.pl outgoing.pl ownership is your gmail user/group.
I presume that as gmail user u have logged in to shell and run
crontab -e
*/10 * * * * /path/to/your/outgoing.pl run every 10 minutes.
*/5 * * * * /path/to/your/incoming.pl run every 5 minutes.
If this be it, then it is really unclear to me as to how your data/msgs got root ownership to begin with. It's not the cronjob but the crontab file of the user that i was referring to.
Also, if webmail.cgi/admin.cgi/ etc is also running as gmailuser, then how come the data/users/... got root ownership? You have configured your gmail as catchall mode I believe. If it's the pipe mode or something , then i have no experience on the same.
:/
HyTC
The users folders were only users that I have deleted, or tried to, delete from my gmail installation. After i delete user br549, his user folder disapears its gone, outa here. But then reappears, when i say re appears it means once again i can search that username from gmail administration and find a valid user and on top of that all of his emails are still being held. Infact i can still login as that user and see every email like the account was never deleted.
I have run consistency.pl and i ran it untill there were zero errors, and to this point i still can not delete users.
I have no clue on how this is happening or why when the user folder is created again, root creates and takes ownership of it. It is beyond me. I am hoping someone from gmail will give some some insite as to what is taking place when a users is being deleted. What file permissions as far as gmail module files, what do they need to be set to. Maybe a part deep inside gmail has a wrong permission somewhere.
From what I remember from using gmail, when a user is deleted all of there emails weither they are in the mysql or in the folders was removed.
I am sitting on the edge of my seat, waiting for some kind of insite as to where I can start to troubleshoot.
I do not believe it to be a cron problem, permissions are being set just fine to all files. Maybe mod_perl has something to do with it. I have no idea what is going on with this.