Advanced filter on incoming mails

Hi all, some servers that we manage, are configured to send automatic emails on errors: when an error occurs, a mail i s sent every 5 minutes. My boss asked me to integrate these warnings in OTRS, so that a new ticket is created when an error occurs. So I need to filter emails coming from those specified addresses, in order to prevent multiple copies of the same ticket (a new mail is sent every 5 minutes until problem's solved or notification is stopped). I was thinking about a filter that allows a specified address, to open only 1 ticket every (say) 1 hour. Is this possible, can someone give me some guidelines about this, or a better way to filter automatic mails? Thanks a lot Gabriele -- Gabriele D'Andrea Tel. +39 085 9431161 . Fax +39 085 9431162 . gabriele.dandrea@ecohmedia.com . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ECOH MEDIA S.r.l. Via Milano 32, 21019 Somma Lombardo (VA) . Via F. Fellini 2, 65010 Spoltore (PE) . Italy . www.ecohmedia.com . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene gentilmente comunicazione. The information contained in this e-mail and any attachments are confidential and may also privileged. If you are not the named recipient, please notify the sender immediately and do not disclose

Gabriele D'Andrea wrote:
some servers that we manage, are configured to send automatic emails on errors: when an error occurs, a mail i s sent every 5 minutes. My boss asked me to integrate these warnings in OTRS, so that a new ticket is created when an error occurs. So I need to filter emails coming from those specified addresses, in order to prevent multiple copies of the same ticket (a new mail is sent every 5 minutes until problem's solved or notification is stopped).
I was thinking about a filter that allows a specified address, to open only 1 ticket every (say) 1 hour.
Is this possible, can someone give me some guidelines about this, or a better way to filter automatic mails?
Can't the monitoring software be configured to send out only one email per error to your OTRS queue? Nils Breunese.

Hi Gabriele, Nils Breunese (Lemonbit) schrieb:
Gabriele D'Andrea wrote:
some servers that we manage, are configured to send automatic emails on errors: when an error occurs, a mail i s sent every 5 minutes. My boss asked me to integrate these warnings in OTRS, so that a new ticket is created when an error occurs. So I need to filter emails coming from those specified addresses, in order to prevent multiple copies of the same ticket (a new mail is sent every 5 minutes until problem's solved or notification is stopped).
I was thinking about a filter that allows a specified address, to open only 1 ticket every (say) 1 hour.
Is this possible, can someone give me some guidelines about this, or a better way to filter automatic mails?
Can't the monitoring software be configured to send out only one email per error to your OTRS queue?
That would be great. Otherwise, perhaps you have to write your own Postmaster-module like the ones on PostMaster::PreFilterModule###* Within this module, you have to recognize the server affected and search for an open ticket on this server. If you found one, mark the new mail as follow-up on this ticket, otherwise create a new ticket and mark it as ticket on the specific affected server. I didn't verify this implementation-suggest if it is feasable and a good way, these are just my quick ideas on your request. There is also a nagios-module on ftp - perhaps you can use it as template to modify it...? Bye, Alex

That's would be the most simple, obvius and better thing!
Unfortunately the monitoring software it's not managed by us, and for some
reason we can't ask to reconfigure it. So a problem that would be easily
solved becomes greater than it is, and now it's all over me :(
Any suggestion about it would be grately appreciated
----- Original Message -----
From: "Nils Breunese (Lemonbit)"
Can't the monitoring software be configured to send out only one email per error to your OTRS queue?
Gabriele D'Andrea wrote:
some servers that we manage, are configured to send automatic emails on errors: when an error occurs, a mail i s sent every 5 minutes. My boss asked me to integrate these warnings in OTRS, so that a new ticket is created when an error occurs. So I need to filter emails coming from those specified addresses, in order to prevent multiple copies of the same ticket (a new mail is sent every 5 minutes until problem's solved or notification is stopped).
I was thinking about a filter that allows a specified address, to open only 1 ticket every (say) 1 hour.
Is this possible, can someone give me some guidelines about this, or a better way to filter automatic mails?
That's would be the most simple, obvius and better thing! Unfortunately the monitoring software it's not managed by us, and for some reason we can't ask to reconfigure it. So a problem that would be easily solved becomes greater than it is, and now it's all over me :( Any idea on this?
participants (3)
-
Alexander Scholler
-
Gabriele D'Andrea
-
Nils Breunese (Lemonbit)