Re: Using Mail::Audit with Maildir?
Walt Mankowski <[email protected]> Fri, 3 Oct 2003 15:48:14 -0400
| Newsgroups | gmane.comp.lang.perl.modules.mail-audit |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Oct 03, 2003 at 09:49:43PM +0700, Robert Nicholson wrote: > I see Mail::Audit supports Maildir however what I don't know is exactly > how and what the permissions need to be in order to my perlscript to be > able to write to a Maildir directory that's not under my $HOME > > So for folks using Mail::Audit with Maildir with qmail do you currently > have your Maildir under your own $HOME? > > My domain is now hosted on a Plex box and currently Maildir is under > mailnames outside of my $HOME > the I have not read/write access to my domain maildir directory. Maildirs are just directories with cleverly named files. Each file represents one message. To be able to save a message to a maildir, you need to be able to create a file in the directory, and that means you need write access to the directory.[1] Qmail's maildirmake utility creates maildirs with permissions 700. I don't understand your last sentence. How do you expect to save mail to a directory you don't have read/write access to? And even if you could, how do you expect to be able to read it? The accept() method, of course, can write messages to anywhere on the disk (assuming you have write access to it). Why not just create some maildirs someplace where you *do* have access, and have accept put the messages in those folders? Walt 1. Note -- I'm simplifying things slightly. A maildir is really a directory with 3 other directories underneath it, and the messages get put in those subdirectories. Whatever. You still need write access to it.