On 12 Aug 2014, at 8:38, /dev/rob0 wrote:

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.

Precisely. I only know the message existed because the SA score was an order of magnitude higher than the worst normal spam and I was tinkering with my SA config due to recent FPs for this list.


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.

Another option in a very similar vein: MIMEDefang. It's a milter that directly supports SA and anti-virus scanning as well as essentially anything you can make Perl do. MD is particularly good with MIME manipulation, so it is an ideal tool if you want to do things like strip attachments without maiming messages. A simpler alternative than Amavisd-new or MD would be spamass-milter.

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.

Beyond that, it is common for shoddy random HOWTOs to migrate upwards in web searches as they age and become increasingly obsolete. If there is a solid simple recipe for a minimalistic Postfix 2.11 & SpamAssassin 3.4 rig on some obscure site, it cannot have been in existence for long enough to be widely linked, so what you will find instead will be ancient orphaned pages that document obsolete software.

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.

In the modern world it's not particularly safe to do anything with mail that you've flagged as spam after accepting it, which is the main argument for before-queue filtering.

Reply via email to