Disable {Spam not delivered} notifications

Questions and answers about how to do stuff
Post Reply
lavazza
Posts: 1
Joined: 04 Apr 2016 08:16

Disable {Spam not delivered} notifications

Post by lavazza » 04 Apr 2016 08:20

where is the setting located (if any) to disable the "{Spam not delivered}" notification on one specific mailbox?

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

Re: Disable {Spam not delivered} notifications

Post by shawniverson » 07 Apr 2016 23:50

For a single user...

I'll take a look. I think it can be done in MailScanner using a ruleset... :think:
Version eFa 4.0.1 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt » 25 Jul 2016 22:44

Can this be done?

cdburgess75
Posts: 48
Joined: 11 Jun 2014 21:43

Re: Disable {Spam not delivered} notifications

Post by cdburgess75 » 08 Sep 2016 20:06

It would be nice to enable or disable for certain users.

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

Re: Disable {Spam not delivered} notifications

Post by shawniverson » 10 Sep 2016 00:04

Answer: yes

You have to create a ruleset and set Spam Actions = /path/to/ruleset.rule

The "ruleset.rule" would contain something like this (replace <tab> with real tabs)

Code: Select all

To:<tab>someone@example.com<tab>store
FromOrTo:<tab>default<tab>store notify  
Version eFa 4.0.1 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt » 10 Sep 2016 00:29

:clap:

Question,

Is the correct syntax in the rule "store,notify" or "store notify"?

MailScanner.conf appears to be using a space separator between action keywords...

Thanks!

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

Re: Disable {Spam not delivered} notifications

Post by shawniverson » 10 Sep 2016 00:30

Corrected...got in a hurry :whistle:
Version eFa 4.0.1 now available!

cdburgess75
Posts: 48
Joined: 11 Jun 2014 21:43

Re: Disable {Spam not delivered} notifications

Post by cdburgess75 » 13 Sep 2016 00:36

This works great, thank you!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt » 15 Sep 2016 17:40

What about wildcarding?

Code: Select all

To:<tab>*@example.com<tab>store
To:<tab>@example.com<tab>store
To:<tab>example.com<tab>store

ovizii
Posts: 459
Joined: 11 May 2016 08:08

Re: Disable {Spam not delivered} notifications

Post by ovizii » 16 Sep 2016 16:22

Didn't the latest version 3.0.1.4 basically replace the {Spam not delivered} notifications or do we now have both, these and the daily quarantine reports available?

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt » 16 Sep 2016 17:34

I'm not aware of that.
EFA has always had {Spam not delivered} notifications (global option yes/no) and Daily Quarantine report (user option yes/no).

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

Re: Disable {Spam not delivered} notifications

Post by shawniverson » 16 Sep 2016 18:06

Both functionalities should be there.
Version eFa 4.0.1 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt » 16 Sep 2016 18:07

Shawn,

Any idea on my wildcard question?

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

Re: Disable {Spam not delivered} notifications

Post by shawniverson » 16 Sep 2016 18:08

I think it works if you leave off the "*@"
Version eFa 4.0.1 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt » 21 Sep 2016 23:32

Just to be clear for others, here is our implementation:

In /etc/MailScanner/conf.d create:
spam.actions.conf

Code: Select all

Spam Actions = %rules-dir%/spam.actions.rules
In /etc/MailScanner/rules create:
spam.actions.rules

Code: Select all

To:     user@mydomain.com        store
FromOrTo:       default store custom(spam)
(Use tabs between fields)

Post Reply