BTW, the point of Bill Cole's post (I almost posted something 
similar) was that you put the GTUBE string right here in a public 
mailing list.  Most people who use SpamAssassin thus would not get 
your post: it was flagged as spam, of course.  That's the idea; the 
GTUBE string is to test filters.

The very people you most needed to reach, SA users with working 
configurations, did not see your message.

On Tue, Aug 12, 2014 at 10:38:30AM +0200, Alexander Farber wrote:
> On Tue, Aug 12, 2014 at 9:34 AM, Alexander Farber <
> alexander.far...@gmail.com> wrote:
> 
> > On 11 Aug 2014, at 10:22, li...@rhsoft.net wrote:
> >>
> >>> http://serverfault.com/questions/619537/use-postfix-
> >>> and-spamassassin-packages-on-centos-6-to-reject-spam-without-custo
> >>>
> >>
> the point of my question (maybe I haven't stated it clearly enough) 
> has been: how to combine Postfix and Spamassassin on CentOS with 
> minimal efforts.

Consider using amavisd-new.  Yes, it's another piece of software to 
configure, but it manages and runs SA for you.

> I didn't want to add custom shell scripts or users - as suggested 
> in many HOWTOs on the web.

Stick with the Postfix and Amavisd-new documentation.  Most random 
HOWTOs you can dig up are written by people who at best barely 
understand what they did.

Postfix documentation for after-queue content filtering:

http://www.postfix.org/FILTER_README.html

and for before-queue filtering, which according to your Subject: 
seems to be what you wanted:

http://www.postfix.org/SMTPD_PROXY_README.html

In either case amavisd-new can help you, acting as either the 
content_filter or the smtpd_proxy_filter respectively.

> I think I have the answer now:
snip
> 3) Add "/^Subject: \[SPAM\]/ DISCARD" to the 
> /etc/postfix/header_checks (check the 
> /etc/mail/spamassassin/local.cf to see the exact string to match)

It's not particularly safe to discard mail flagged as spam, your own 
GTUBE adventure here being a good example why not.
-- 
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to