How to notify sender that I classified as span a message ?

Questions and answers about how to do stuff
Post Reply
nicola.piazzi
Posts: 388
Joined: 23 Apr 2015 09:45

How to notify sender that I classified as span a message ?

Post by nicola.piazzi »

Hi,
I configured EFA as smart host, it examine all incoming messages and send all to Exchange
When messages are spam EFA add Spam=Yes to header so Exchange put these messages in users spam folder

I need to NOTYFY SENDERS of messages classified as spam that messages was delivered as spam, but not bouincing back entire message,
I want to create a simple message like this :

From : postmaster@mycompany.com
To : senderemail@senderdomain.com

Hi
Message that you sent from senderemail@senderdomain.com directed to myuser@mycompany.com having subject subject was classified as spam
You need to inform your contact that can find this message in spam folder
Then you need to check your sintax or mailserver using some online tools

User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: How to notify sender that I classified as span a message ?

Post by pdwalker »

Are you sure you want to do this?

Almost all of the mail that I classify as spam actually is spam coming from invalid or spoofed email addresses. I don't want to send anything back that way.

- Paul
nicola.piazzi
Posts: 388
Joined: 23 Apr 2015 09:45

Re: How to notify sender that I classified as span a message ?

Post by nicola.piazzi »

Hi Paul,
It is not really true
Sometimes some valid mail can be classified as spam
I want to do this only for SPAM and not for HIGH SCORING SPAM

The perfect thing will be that these notifications have a custom queue retention of 1 hour and not 5 days as default postfix
zohman
Posts: 42
Joined: 12 Sep 2015 07:36

Re: How to notify sender that I classified as span a message ?

Post by zohman »

nicola.piazzi wrote:Hi Paul,
It is not really true
Sometimes some valid mail can be classified as spam
I want to do this only for SPAM and not for HIGH SCORING SPAM

The perfect thing will be that these notifications have a custom queue retention of 1 hour and not 5 days as default postfix
i most agree with Paul here, just dont do that.
mails that classified as spam on your appliance maybe not classified as spam on others MTAs..
it's not that you're the spam authroity of the internet.

adjust your EFA and\or SpamAssassin according to the message,
create custom SpamAssassin rules.. add the legit mail to the whitelist..
or even let the clients MUA (Outlook, Thunderbird, Incredimail, etc.)
to whitelist the message from the spam folder permenently.

don't spam them back,
first, because like i said - you're not the spam authroity of the internet,
second, you will validate spammers.. so now they know how to infiltrate your MTA defences.
Third, it will cost you with unnecessary resources from the system bouncing those messages.

if you still want to do this i think it may be possibole to make a Transport rule in
Exchange combined with DLP, you will need to check it out..

Anyway, not recommended.

Regards,
Zohman.
Post Reply