LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2003, 04:22 PM   #1
LiquidKernel
LQ Newbie
 
Registered: Jul 2002
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
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.
 
Old 06-25-2003, 02:17 PM   #2
LiquidKernel
LQ Newbie
 
Registered: Jul 2002
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 06-29-2003, 09:02 PM   #3
LiquidKernel
LQ Newbie
 
Registered: Jul 2002
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Help
 
Old 08-05-2003, 02:02 AM   #4
wi-Z-art
LQ Newbie
 
Registered: Oct 2002
Location: Cologne, Germany
Distribution: Debian
Posts: 9

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
posfix with courier maildrop and courier-imap Anuragn Linux - Enterprise 4 01-17-2007 04:33 AM
Good online Courier-MTA setup guide? neocookie Linux - General 0 08-18-2005 11:20 AM
Courier-imap+spamassassin+maildrop jriis Debian 1 03-08-2005 03:48 PM
courier-mta installation nightwalker1945 Linux - Enterprise 1 05-03-2004 12:09 PM
Courier MTA as OpenRelay. HELP! theparadigm Linux - Networking 3 11-30-2003 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration