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 »

where is the setting located (if any) to disable the "{Spam not delivered}" notification on one specific mailbox?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Disable {Spam not delivered} notifications

Post by shawniverson »

For a single user...

I'll take a look. I think it can be done in MailScanner using a ruleset... :think:
dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt »

Can this be done?
cdburgess75
Posts: 49
Joined: 11 Jun 2014 21:43

Re: Disable {Spam not delivered} notifications

Post by cdburgess75 »

It would be nice to enable or disable for certain users.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Disable {Spam not delivered} notifications

Post by shawniverson »

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  
dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt »

: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: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Disable {Spam not delivered} notifications

Post by shawniverson »

Corrected...got in a hurry :whistle:
cdburgess75
Posts: 49
Joined: 11 Jun 2014 21:43

Re: Disable {Spam not delivered} notifications

Post by cdburgess75 »

This works great, thank you!
dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt »

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: 463
Joined: 11 May 2016 08:08

Re: Disable {Spam not delivered} notifications

Post by ovizii »

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 »

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: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Disable {Spam not delivered} notifications

Post by shawniverson »

Both functionalities should be there.
dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt »

Shawn,

Any idea on my wildcard question?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Disable {Spam not delivered} notifications

Post by shawniverson »

I think it works if you leave off the "*@"
dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

Re: Disable {Spam not delivered} notifications

Post by dbrunt »

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