Hi!
I just switched my gentoo system from qmail to courier. Old qmail was
configured to reject spam at smtp time (using simscan) and I'd like to
do the same in courier. As I've found out, maildrop filters mails
*after* they've been accepted, so I'll need to use Courier::Filter for
that purpose.
However, I'm too dumb to even get the example perl filter to work. What
I've done so far:
- Ensured the filtering module of courier is running
- Installed perlfilter using filterctl, also checked that the symlink
was created in /etc/courier/filters/active
- Created /etc/courier/filters/perlfilter with a single line:
'/usr/share/courier/perlfilter-spamassassin.pl' as told in the manpage
- Copied the perlfilter-example.pl to perlfilter-spamassassin.pl in the
above shown path
- Added a 'return "500 I don't feel like accepting mails today";' in the
filtercontrol() function ;-)
However, I can still receive incoming emails from external mail servers.
My /etc/courier/enablefiltering lists the esmtp service, so I think it
the filter should be executed.
Any ideas what I might be doing wrong?
Also, the docs mention a premade spamassassin filter which I cannot find
in the gentoo builds or the distribution archives. Is this still
up-to-date information?
Thanks,
-Markus-