Reject messages marked as spam.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Reject messages marked as spam.

Diego83
I'm currently using amavis to detect spam messages. I mean, the user recieves all the spam e-mails but with a modified subject saying "--- This message has been identified as SPAM ---" at the begining of it.
Is there a way to tell postfix to reject those messages?
At first i tought using headers_check would do the trick but then came to my mind if headers_check is executed before or after the message is marked as spam.
Is there any way to do this?

Any help is greatly appreciated.



Reply | Threaded
Open this post in threaded view
|

Re: Reject messages marked as spam.

Diego83
Thanks for the tip!.
I know this is a postfix list and this message is entirely related to it, so...
One last question...
Setting the amavis $final_spam_destiny to D_DISCARD or D_REJECT would do the trick?

Thanks.

On Sat, Jul 5, 2008 at 4:08 PM, Dan Hill <[hidden email]> wrote:
"Diego Ledesma" <[hidden email]> wrote:
I'm currently using amavis to detect spam messages. I mean, the user recieves all the spam e-mails but with a modified subject saying "--- This message has been identified as SPAM ---" at the begining of it.
Is there a way to tell postfix to reject those messages?
At first i tought using headers_check would do the trick but then came to my mind if headers_check is executed before or after the message is marked as spam.
Is there any way to do this?

Any help is greatly appreciated.



Do you want those messages to just disappear into the either?  You can configure the spam levels in the amavis configuration to take care of that without make any changes to Postfix.

~Dan

Reply | Threaded
Open this post in threaded view
|

Re: Reject messages marked as spam.

Sahil Tandon
In reply to this post by Diego83
Diego Ledesma wrote:

> I'm currently using amavis to detect spam messages. I mean, the user
> recieves all the spam e-mails but with a modified subject saying "---
> This message has been identified as SPAM ---" at the begining of it.
> Is there a way to tell postfix to reject those messages?
> At first i tought using headers_check would do the trick but then came
> to my mind if headers_check is executed before or after the message is
> marked as spam.
> Is there any way to do this?

If you run amavisd-new as an after-queue content filter, it is too late
to reject messages that are identified as spam.  If you bounced such
messages, your MTA would become a source of backscatter (google this
term if it is unfamiliar).  Once your MTA accepts a message, you should
DISCARD or allow it to pass through to users.  Your needs may be
different, but I tag spam and place it in users' spam/ folder for them
to examine.  Others direct suspicious mail to a quarantine that users
can examine via a web interface.  You (or your users) could also
configure procmail to discard all mail identified as spam or place it in
a dedicated spam/ or junk/ type folder for review.  There are a variety
of option, but to give you more specific advice, please tell us where
amavisd-new is within your email infrastructure (is it before or
after-queue)?  You might as well paste the output of 'postconf -n' as well.

Some reading for context:

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

--
Sahil Tandon <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Reject messages marked as spam.

Sahil Tandon
In reply to this post by Diego83
Diego Ledesma wrote:

> Thanks for the tip!.
> I know this is a postfix list and this message is entirely related to
> it, so...
> One last question...
> Setting the amavis $final_spam_destiny to D_DISCARD or D_REJECT would do
> the trick?

Please don't top post.  And if amavisd-new is an after-queue content
filter within your setup, then do not set D_REJECT (this will create
backscatter).  You should either D_DISCARD (careful!  if you do this,
neither the sender nor recipient can review the message in case of false
positives unless you also quarantine these messages for user review) or
D_PASS.  This is going off-topic, so let's take it to the amavisd-new
mailing list if you need more help. :-)

--
Sahil Tandon <[hidden email]>