Re: Integrating Maildrop with Postfix/ClamAV/Spamassasin/Maildir
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Schiz0 writes: > On Sat, Apr 14, 2012 at 6:39 PM, Sam Varshavchik <[email protected]> > wrote: > > Schiz0 writes: > > > >> Hello list, > >> > >> I have a working mail setup with Postfix and av/spam filtering through > >> amavis-new. I'd like to be able to filter mail into various folders > >> for mailing lists, spam, and other various things. I installed > >> Maildrop on my system and i configured Postfix to call it via the > >> "mailbox_command = /usr/local/bin/maildrop -d ${USER}" option. I have > >> googled around extensively, and I can't seem to figure out how to get > >> maildrop to deliver to a Maildir. I am using system users, so > >> everything is located in /usr/home/$USER/Maildir/. I can't seem to > > > > > > If that's the case, nothing needs to be done, since maildrop will deliver > to > > $HOME/Maildir by default (if you followed the instructions in INSTALL). > > > > > > That doesn't seem to be the case. I tested this, and my mail ended up > in /var/mail/USERNAME, in mbox format. I have existing Maildir folders > already in /usr/home/*/Maildir/ That's why I wrote "if you followed the instructions in INSTALL". > I now went through the install file, and it says I need to edit/verify > the DEFAULT_DEF option in config.h. Unfortunately, that is not an > option in the method I used to install maildrop. Is it not possible to > override this seemingly compile-time default in a maildroprc file? Sure. As the maildropfilter man page describes, there's a global filter file that's read before each account's filter file. Yours is probably configured to be /usr/local/etc/maildroprc. DEFAULT="./Maildir" will probably do what you want. > > Maildrop will not automatically create folders by itself. A mail delivery > > agent, like maildrop, delivers mail to existing mailboxes and folders. It > > does not create them, if they do not exist. > > > > So is it correct that I would need to script this in my maildroprc file? > Eg, if dir does not exist, run makemaildir to create it, then deliver the > mail? Well, yes. Of course, some arrangements must be made to make this operation atomic, otherwise there'll be a race if two simultaneous deliveries to the same account decide to create the same folder, at the same time. But, historically, whenever I heard something like this, it was always the case of looking for answers in the wrong place. Whatever the reason you think you need to create folders automatically, it's likely that there's a better way of accomplishing the same goals. Think about what your goal is, instead of the means of getting there. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Courier-maildrop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAk+KQ5MACgkQx9p3GYHlUOKduQCbBx3NomjhacRIarz0TAwHwdli EtYAn0hIuhSi3Urt2Fcbuwvft4xFLTWR =UCHq -----END PGP SIGNATURE-----