
May 2nd, 2008, 12:36 AM
|
|
Registered User
|
|
Join Date: Oct 2003
Location: India
Posts: 22
Time spent in forums: 4 h 53 m 46 sec
Reputation Power: 0
|
|
|
Procmail delivers mail as owner root
I have configured sendmail,procmail, dovecot ,spamassassin, Mailscannerr squirrelmail on my mail server FEDORA CORE 8. I use maildir and as such I have /etc/procmailrc as under
DEFAULT=$HOME/Maildir/
with the above the mail gets delivered in the users home directory and can be viewed using sqirrelmail
but when I add the following line in procmailrc
:0:
* ^From .*ans
$HOME/Maildir/.spam/
(I want to consider all mail comming from user ans as spam and write them in spam folder)
the mail gets written as user root in the spam folder and squirrelmail reports error saying (connection droped by imap server Query : Fetch 1:3: (Flags uid RFC822.Size internal Date BODY PEEK.....)
on changing the ownership of the mail received in the spam folder to the respective user using chown user:user spam folder can be accessed )
How can I chang the ownership of the mail written by procmail recepies . I am using FC8
|