LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using maildrop with Courier MTA (https://www.linuxquestions.org/questions/linux-software-2/using-maildrop-with-courier-mta-67788/)

LiquidKernel 06-24-2003 04:22 PM

Using maildrop with Courier MTA
 
Decided to ditch sendmail on my Slackware box and go with Courier since I was already using maildrop and have heard good things about Courier.

Long story short, I installed it and everything works superbly. Couldn't be happier with the performance of the daemon and it's layout.

However, I have just one problem: maildrop does not seem to be reading it's configuration file (/etc/maildroprc). I set etc/courierd to use maildrop as the DEFAULTDELIVERY variable. Mail gets dropped into the user's ~/Maildir folder and it seems to work. Yet when I put something into /etc/maildroprc I get no difference.

I currently have this in my maildroprc:
Code:

if ( $SIZE < 26144 ) {
    exception {
      xfilter "/usr/bin/spamassassin"
    }
}

if (/^X-Spam-Flag: *YES/) {
    exception {
        to "$HOME/Maildir/.Spam/"
    }
} else {
    exception {
        to "$HOME/Maildir/"
    }
}

I want maildrop to filter the mail through spamassassin and then if it's spam, drop it into the .Spam directory of the user's Maildir.

If anyone can offer any help, I'd be more than grateful.

Thanks.

LiquidKernel 06-25-2003 02:17 PM

Re-read the documentation for maildrop on Courier's site, it says maildrop reads /etc/courier/maildroprc. I put it in there, gave it the right permissions, restarted Courier and sent myself a test message.

Yet when I check the headers in my client, I don't see the "X-Spam-Flag" header (which would come up if spamassassin would filter it). So it still doesn't work :(

LiquidKernel 06-29-2003 09:02 PM

Help :(

wi-Z-art 08-05-2003 02:02 AM

Some idea
 
Hi,

I don't know if this applies to you, but if you compile courier yourself it gets installed into /usr/lib/courier.
In that case your configuration file for maildrop is /usr/lib/courier/etc/maildroprc

This works fine for me, as I had the same problem until about 5 minutes ago ;)

Greetings
Marcus


All times are GMT -5. The time now is 09:24 AM.