Re: getmail / spamassassin integration failing
Martin Gregorie <[email protected]> Thu, 04 May 2023 15:22:57 +0100
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2023-05-04 at 08:42 -0400, Mark wrote: > so i want to integrate spamassassin into my system.=C2=A0 I've read the= =20 > documentation, and i'm not getting desired behavior. >=20 At a minimum,I suggest you use 'spamc' rather than 'spamd' in your [filter-1].=C2=A0 'spamc' accepts incoming emails from stdin, passes then to spamd for scoring and then writes the processed email to stdout. What you seem to want is pretty much what I've used for many years, though I replaced 'spamc' with a custom C utility in my mail handling pipeline immediately after getmail and I don't use a getmail filter. My utility program looks at the added SA headers on scanned mail returned by spamd and then separates spam from ham:=C2=A0 - ham is passed, via Postfix 'sendmail' program, to my local MTA for distribution - spammy messages are written, as textfiles, to a holding directory, as files whose name reflects the date and time of arrival. Both sender and title are logged: I get a message each day showing what ended up in the holding directory yesterday.=20 Spam remains in the holding directory for a week before being deleted.=C2= =A0 A daily cron job removes old spam sending me a message saying on what is in the holding directory. HTH, Martin