Re: Integrating Maildrop with Postfix/ClamAV/Spamassasin/Maildir
Schiz0 <[email protected]>
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <CAELCQXnWp4GPpmMkrxv4B-DfKOQ32ojm6g38=i1okPcBCb6VSQ@mail.gmail.com> |
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/ I did not install maildrop manually, and such I did not read the INSTALL file. I used my operating system's package manager, which consisted of me doing: cd /usr/ports/mail/maildrop && make 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? >> find any example maildroprc file in my installation, or any examples >> online. What is the best way to do this and create folders if they >> don't exist? Eg, a "Spam" folder to move mail detected by spamassassin >> into. > > > 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? ------------------------------------------------------------------------------ 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