2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Two courier newbi...
FromSent OnAttachments
Marcus IlgnerAug 4, 2003 7:30 am 
Jon NelsonAug 4, 2003 8:05 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Two courier newbie questionsActions...
From:Jon Nelson (jnel@jamponi.net)
Date:Aug 4, 2003 8:05:40 am
List:net.sourceforge.lists.courier-users

On Mon, 4 Aug 2003, Marcus Ilgner wrote:

Hello everyone,

I just got my first courier installation up and running. It's working fine as it accepts mail, processes it using all given rules and stores it in the recipients Maildir. But there are two things I don't understand on which I would be grateful for any help:

my DEFAULTDELIVERY variable in /usr/lib/courier/etc/courierd reads

DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"

and my /usr/lib/courier/etc/maildirfilter contains

This should be in a FAQ somewhere. You *really* ought to use exception when dealing with external programs that change (and seem to break) as often as spamasssin. Actually, it's not spamassassin's fault, it's Gentoo's, but that's not germane.

Consider instead:

exception { xfilter "/usr/local/bin/spamassassin -x" }

Some may argue in favor of a spamc/spamd approach, but spamc sends the entire message over a pipe to spamd, which then does an expensive set of tests of the message, and returns the result back over the pipe. Some well respected perl smarties tell me they wouldn't touch spamc/spamd for money.

logfile "/tmp/mailfilter-log.txt" xfilter "/usr/local/bin/spamassassin -x" if ( /^X-Spam-Flag: YES/ ) { log "------ Spam found. " to "/home/marcus/Maildir/.Spam" } else { log "------ No match." # Deliver to the Inbox. to "$HOME/Maildir/" }

But somehow it seems like spamassassin doesn't process the message, because it leaves no tags in the message header. I already tried a 'hard' restart of courier ('courier stop && courier start') as advised on some pages I found with google, but that didn't help,

The second problem is that I don't want to enable outside users (user with an external IP) to send mail to our users with an address from our own domain (in order to mask themselves as a local user) . Long time ago I had a sendmail macro but now I'm quite lost :) Any advice?