How to remove a invalid address in OTRS 5

Hi! Using OTRS 5.0.25 on Linux with MySQL. In our ticket system, we would like our team to respond tickets for company e-mails only. The team has been warned to remove invalid adresses, but nevertheless, I also would like to add a rule for OTRS to automatically remove any address @gmail.com, @hotmail.com, @outlook.com (the most obvious). Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows 10

Sorry... incomplete message sent from my faulty mail client!!! Sending again: Hi! Using OTRS 5.0.25 on Linux with MySQL. In our ticket system, we would like our team to respond tickets for company e-mails only. The team has been warned to remove invalid adresses, but nevertheless, I also would like to add a rule for OTRS to automatically remove any address @gmail.com, @hotmail.com, @outlook.com (the most obvious). I know this is not perfect, but I can add more @domains later, making it more precise. Can this be accomplishd in OTRS? Can I create a database trigger that strip this from the tickets? Your help will be higly appreciated. Regards, Edson

Try PostMasterFilter for moving From to Junk Queue where Generic Agent
purges junk on a schedule.
On Dec 7, 2017 8:25 AM, "Edson Richter"
Sorry... incomplete message sent from my faulty mail client!!!
Sending again:
Hi!
Using OTRS 5.0.25 on Linux with MySQL.
In our ticket system, we would like our team to respond tickets for company e-mails only.
The team has been warned to remove invalid adresses, but nevertheless, I also would like to add a rule for OTRS to automatically remove any address @ gmail.com, @hotmail.com, @outlook.com (the most obvious).
I know this is not perfect, but I can add more @domains later, making it more precise.
Can this be accomplishd in OTRS? Can I create a database trigger that strip this from the tickets?
Your help will be higly appreciated.
Regards,
Edson
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs

I see, but then I’ve the following problem: in same ticket I’ve valid and invalid adresses. I would like to strip out the invalid ones, and keep the rest for process.
Is there a way to strip out the invalid addreses?
Thanks,
Edson
________________________________
De: otrs

I would write a Postmaster filter module that does the job... In a Pre filter, you could change the values of "From" and "Cc". You could replace them with some dummy addresses to indicate that the mail was sent to other persons as well... There might bei only one problem: The original mail is changed so when you have audits this could be a thing for discussion. If you want to go this way, https://github.com/reneeb/otrs-PostmasterFilterTools might be a good start for Pre-filters. Kind regards, Renée Am 07.12.2017 um 14:23 schrieb Edson Richter:
Hi!
Using OTRS 5.0.25 on Linux with MySQL.
In our ticket system, we would like our team to respond tickets for company e-mails only. The team has been warned to remove invalid adresses, but nevertheless, I also would like to add a rule for OTRS to automatically remove any address @gmail.com, @hotmail.com, @outlook.com (the most obvious).
Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows 10
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs
-- Perl / OTRS development: http://perl-services.de OTRS AddOn repository: http://opar.perl-services.de
participants (3)
-
Edson Richter
-
Gerald Young
-
Renee B