Permissions question: How to use Exim / MailScanner to move emails to .Junk folder
This is my first post. I'm not exactly a newbie, but I'm not exactly experienced either. Most of the time, I have my server admins take care of things for me. However, this issue has stumped them, so I'm looking for assistance.
My server configuration is CentOS 5 with Exim, Dovecot, and MailScanner (ConfigServer).
I have a PERL programmer who created a new set of functions in CustomAction.pm in MailScanner for me that delivers emails to a user's .Junk folder in his maildir automatically (cPanel setup) under proscribed circumstances.
The problem is that he's using the root user and the root group in MailScanner to accomplish this, which isn't a secure approach.
MailScanner normally wants to use mailnull user and mail group, but mailnull and the mail group can't write to a user's .Junk folder in his maildir.
I have a basic understanding of Linux permissions, but not enough to resolve this problem.
Can someone guide me on how to resolve this problem?
|