PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.postfix.users > How to stop bouncing spam?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to stop bouncing spam?

Réponse
 
LinkBack Outils de la discussion
Vieux 29/05/2006, 16h26   #1
David
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to stop bouncing spam?

Hi,

I've got a small Postfix/Spamassassin/Procmail system which is
configured to bounces all mail that isn't for a valid local user
(default setup I believe). The "problem" is that it's also bouncing
stuff that is obviously spam but I'm puzzled as to how (or the best way)
to stop this, whilst still bouncing real emails (we have several users
who's names are often mis-spelt and so we do want genuine customers to
know if their mail hasn't been delivered).

The way I've configured my setup, Postfix doesn't do any spam testing
and instead I've wholly used Spamassassin for both RBL as well as Bayes,
et al, testing for spam by using a Procmail recipe to pipe the mail
through Spamassassin. Invalid local users are being rejected by Postfix
before getting to my Procmail recipe in any case.

I'm a bit reluctant to simply enable RBL checks in Postfix as it's a
simple pass or fail. I like Spamassassin's scoring so that periodically
anything marked as spam is (humanly) checked and any false positives are
dealt with. To make Spamassassin scoring as accurate as possible I'd
also still want to keep the RBL checks in Spamassassin, so I'm doing RBL
lookups twice for each message.

Is it therefore best practice to create a catch-all local user for
Postfix to deliver "invalid user mail" to and then modify the Procmail
recipe so that after piping through Spamassassin I bin anything
identified as spam for this catch-all address and send a preformatted
"bounce" email to anything identified as ham?

I tried Googling for a suggested solution but only came across enabling
RBL checks in Postfix.

Anyone any thoughts?

Thanks, David
  Réponse avec citation
Vieux 29/05/2006, 19h02   #2
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to stop bouncing spam?

David wrote:
> Hi,
>
> I've got a small Postfix/Spamassassin/Procmail system which is
> configured to bounces all mail that isn't for a valid local user
> (default setup I believe). The "problem" is that it's also bouncing
> stuff that is obviously spam but I'm puzzled as to how (or the best way)
> to stop this, whilst still bouncing real emails (we have several users
> who's names are often mis-spelt and so we do want genuine customers to
> know if their mail hasn't been delivered).
>
> The way I've configured my setup, Postfix doesn't do any spam testing
> and instead I've wholly used Spamassassin for both RBL as well as Bayes,
> et al, testing for spam by using a Procmail recipe to pipe the mail
> through Spamassassin. Invalid local users are being rejected by Postfix
> before getting to my Procmail recipe in any case.
>
> I'm a bit reluctant to simply enable RBL checks in Postfix as it's a
> simple pass or fail. I like Spamassassin's scoring so that periodically
> anything marked as spam is (humanly) checked and any false positives are
> dealt with. To make Spamassassin scoring as accurate as possible I'd
> also still want to keep the RBL checks in Spamassassin, so I'm doing RBL
> lookups twice for each message.
>
> Is it therefore best practice to create a catch-all local user for
> Postfix to deliver "invalid user mail" to and then modify the Procmail
> recipe so that after piping through Spamassassin I bin anything
> identified as spam for this catch-all address and send a preformatted
> "bounce" email to anything identified as ham?
>
> I tried Googling for a suggested solution but only came across enabling
> RBL checks in Postfix.
>
> Anyone any thoughts?
>
> Thanks, David


You can stop Postfix from rejecting unknown local recipient addresses with:

local_recipient_maps =

Then, you can tell Postfix to send all email addresses to unknown recipients
to a single local UNIX account of your choosing, with the "luser_relay" configuration setting.

See: man 5 postconf

--
Greg





  Réponse avec citation
Vieux 29/05/2006, 19h16   #3
David
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to stop bouncing spam?

Greg Hackney wrote:
> David wrote:
>> Hi,
>>
>> I've got a small Postfix/Spamassassin/Procmail system which is
>> configured to bounces all mail that isn't for a valid local user
>> (default setup I believe). The "problem" is that it's also bouncing
>> stuff that is obviously spam but I'm puzzled as to how (or the best
>> way) to stop this, whilst still bouncing real emails (we have several
>> users who's names are often mis-spelt and so we do want genuine
>> customers to know if their mail hasn't been delivered).
>>
>> The way I've configured my setup, Postfix doesn't do any spam testing
>> and instead I've wholly used Spamassassin for both RBL as well as
>> Bayes, et al, testing for spam by using a Procmail recipe to pipe the
>> mail through Spamassassin. Invalid local users are being rejected by
>> Postfix before getting to my Procmail recipe in any case.
>>
>> I'm a bit reluctant to simply enable RBL checks in Postfix as it's a
>> simple pass or fail. I like Spamassassin's scoring so that
>> periodically anything marked as spam is (humanly) checked and any
>> false positives are dealt with. To make Spamassassin scoring as
>> accurate as possible I'd also still want to keep the RBL checks in
>> Spamassassin, so I'm doing RBL lookups twice for each message.
>>
>> Is it therefore best practice to create a catch-all local user for
>> Postfix to deliver "invalid user mail" to and then modify the Procmail
>> recipe so that after piping through Spamassassin I bin anything
>> identified as spam for this catch-all address and send a preformatted
>> "bounce" email to anything identified as ham?
>>
>> I tried Googling for a suggested solution but only came across
>> enabling RBL checks in Postfix.
>>
>> Anyone any thoughts?
>>
>> Thanks, David

>
> You can stop Postfix from rejecting unknown local recipient addresses with:
>
> local_recipient_maps =
>
> Then, you can tell Postfix to send all email addresses to unknown
> recipients
> to a single local UNIX account of your choosing, with the "luser_relay"
> configuration setting.
>
> See: man 5 postconf
>
> --
> Greg
>
>
>
>
>

Thanks Greg, yes I can see how to achieve this - I was really asking if
that is the way most would recommend doing it? How do you stop your
systems from bouncing spam only?

Thanks, David.
  Réponse avec citation
Vieux 29/05/2006, 20h32   #4
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to stop bouncing spam?

David wrote:

> How do you stop your systems from bouncing spam


For the most part my home doesn't bounce mail, it discards it.

But it keeps a copy of all mail in a file. I run a daily report against
the Postfix syslog file for discards/rejects, and if any look like false positives, I examine
their content in the saved file, and resend the mail and repair the blocking as necessary.

However, my system is somewhat unique in that most of it's email is fetched
from POP3 accounts at various ISPs, and injected into Postfix using Postfix's
XCLIENT feature. The copy is not made by Postfix itself, but is made before being injected
into Postfix.

I do run Postfix RBL checks on both the injected email and the mail arriving directly
via the Internet. I guess I've done it long enough and adjusted configurations long enough
that there are seldom any false RBL positives. If I do find one in the logfile analysis, I'll
just fix the block, and ask the sender to resend their message.

At work, where there are millions of messages, there's not enough time in the world for
administrators to manually examine a trash pile. It's just assumed that eventually the
sender will complain to their admin or counterpart at your company, and the issue will
work it's way to your desk.

--
Greg






  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h07.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,31953 seconds with 12 queries