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?