Spam Action

General eFa discussion
Post Reply
massimo.rc
Posts: 14
Joined: 31 Mar 2015 08:01

Spam Action

Post by massimo.rc »

Hi,
in MailScanner.conf I have by default:
Spam Actions = store custom(spam)

This setting send a "spam not delivered" notify to recipients when the sender sends a spam mail.

I need to change the CustomAction.pm to obtain the following behaviour:

If spam mails arrive from outside (domain not EFA managed), I want to send the "spam not delivered" to a recipient like spam@domain-recipient (that I've created)
If spam mails arrive from inside (domain EFA managed), I want to send the "spam not delivered" to a recipient like spam@domain-sender (that I've created)

Example from outside (domain-recipient = mydomain.com):
spam sender email: pippo@gmail.com
recipient email: pluto@mydomain.com
Action: Efa send the "spam not delivered" to spam@mydomain.com


Example from inside (domain-sender = mydomain.com):
spam sender email: pluto@mydomain.com
recipient email: pippo@gmail.com
Action: Efa send the "spam not delivered" to spam@mydomain.com

Do someone have an idea to do this?

Do someone have some experience in which is the best way to manage this scenario?

Thanks
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Spam Action

Post by shawniverson »

I believe I understand what you are wanting to do.

Basically forward the spam not delivered messages to spam@mydomain.com regardless of origin.

Correct?

Why not just forward the spam message itself instead of the "spam not delivered" message? All the "spam not delivered" message is good for is releasing the message, and technically "spam not delivered" is just as spammy as the spam itself.

If you are just trying to manage spam for your users, a much better alternative would be to turn off the "spam not delivered" using EFA-Configure ( 9 Spam Settings --> 2 Spam Settings ) and use the MailWatch console to release messages, train SA, etc. as the admin.

:twocents-02cents:
Post Reply