Postmaster Filter accepting all e-mails

Moderator: crythias

Locked
jff
Znuny newbie
Posts: 52
Joined: 23 Mar 2016, 14:17
Znuny Version: 6.0.8
Real Name: Jeff
Company: M

Postmaster Filter accepting all e-mails

Post by jff »

Hello

I have an e-mail configured in OTRS Postmaster: otrs@mydomain.com

I have a filter that goes

FROM otrs@mydomain.com
SET queue TEST

All I want is that OTRS open ticket only from a especific e-mail address, right now every e-mail sent to otrs@mydomain.com generates a ticket.

Is there other configurations I need to check to make this work?

Thanks.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Postmaster Filter accepting all e-mails

Post by reneeb »

You only set a queue... If you want to reject mails from other addresses than otrs@test.example, you have to search for otrs@test\.example in "From" and check the negate checkbox. Then set X-OTRS-Ignore to "yes"...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jff
Znuny newbie
Posts: 52
Joined: 23 Mar 2016, 14:17
Znuny Version: 6.0.8
Real Name: Jeff
Company: M

Re: Postmaster Filter accepting all e-mails

Post by jff »

reneeb wrote:You only set a queue... If you want to reject mails from other addresses than otrs@test.example, you have to search for otrs@test\.example in "From" and check the negate checkbox. Then set X-OTRS-Ignore to "yes"...

Thanks Reneeb, that did the trick!

Do you mind to explain the negate checkbox? does it negate the opposite of the value?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Postmaster Filter accepting all e-mails

Post by reneeb »

Usually the filter means: Run that filter if the regular expression matches. The "negate" reverses the meaning: Run the filter if the regular expression does *not* match...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jff
Znuny newbie
Posts: 52
Joined: 23 Mar 2016, 14:17
Znuny Version: 6.0.8
Real Name: Jeff
Company: M

Re: Postmaster Filter accepting all e-mails

Post by jff »

reneeb wrote:Usually the filter means: Run that filter if the regular expression matches. The "negate" reverses the meaning: Run the filter if the regular expression does *not* match...

Understood, thanks

Now I having issues with External Ticket Recongnition, can you tell me if I need filters to match the subject? right now e-mails are stopping in the first filter and not "reaching" the modulo of external ticket recog.

Any help is appreaciated.
Locked