M Core wrote:
>>> I think the question is - HOW do I CC or TO an email message to a
>>> different mail directory? I suspect this is the problem with TO
>>> "/home/username/Maildir".
>>> (Note that TO or CC does work if it is in the user's directory that the
>>> email is being sent to e.g. TO "$HOME/Maildir", or CC"Maildir", or
>>> TO"Maildir/.trash" etc. these work.)
>>  
>> Did you check permissions? Your .mailfilter is executed on *delivery*
>> of a message, thus, in general, you shoudn't be able to do whatever
>> you want around the system. However, if you host *virtual* users, then
>> they all have the same courier uid/gid.
> 
> Well if I try to do the TO or CC that is sent to some other users directory 
> so 
> I guess that is what I'm getting at.

Do you mean you are sure the problem is permissions?
If your authentication is based on /etc/passwd, then you do *real* users.

> How to get around those permissions?

I have no experience running courier with real users. I'd say, if users
share a group, you may try and set group write permission on the target
folder(s). However, to learn exactly what failure does your script incur
into, you should run maildrop manually at the relevant verbosity level,
and possibly strace it.

> I've seen examples on the web where people did that but never explained that 
> they needed to do anything extra.

Perhaps they had virtual accounts?

> My goal is to avoid the user having to redirect spam to me to file for 
> learning. 
> It would be nice to use maildroprc or .mailfilter to do a check for 'high 
> scoring spam'
> and send it to the spam-forsure user account. 

You may also try sharing folders properly. Again, shared folders come with
two distinct flavors: Virtual and Filesystem permissions-based. See
http://www.courier-mta.org/imap/README.sharedfolders.html












































-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to