No new tickets from external email
Moderator: crythias
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
No new tickets from external email
Hello All,
I would like to limit email from external sources but not cut it off altogether.
I have found it nice to be able to communicate with external recipients to keep certain communication inside the ticket, however I would like to keep new tickets from being generated by inbound messages from sources outside of our email domain.
I have looked at PostMaster Filter but I am unsure of what to use to accomplish my goal described above.
In short: allow replies from external domain but ignore new messages from external domain. I could also see it being beneficial if there was some way white list particular email addresses as exceptions to the rule.
Thanks.
I would like to limit email from external sources but not cut it off altogether.
I have found it nice to be able to communicate with external recipients to keep certain communication inside the ticket, however I would like to keep new tickets from being generated by inbound messages from sources outside of our email domain.
I have looked at PostMaster Filter but I am unsure of what to use to accomplish my goal described above.
In short: allow replies from external domain but ignore new messages from external domain. I could also see it being beneficial if there was some way white list particular email addresses as exceptions to the rule.
Thanks.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: No new tickets from external email
Something like this might work if there is a way to state "all except @mydomain.com".
Edit Config Settings in Ticket -> Core::PostMaster
PostMaster::PreFilterModule###3-NewTicketReject
See image:
https://drive.google.com/file/d/0Bw6Psj ... sp=sharing
I also found this post from a few years back but would like to not have to manage changes across updates.
viewtopic.php?t=6586
Edit Config Settings in Ticket -> Core::PostMaster
PostMaster::PreFilterModule###3-NewTicketReject
See image:
https://drive.google.com/file/d/0Bw6Psj ... sp=sharing
I also found this post from a few years back but would like to not have to manage changes across updates.
viewtopic.php?t=6586
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: No new tickets from external email
Seems legit. So if you don't match anything, it doesn't filter... so then match @mydomain and SET X-OTRS-Ignore: 0 in PostMasterFilter after enabling the pre filter.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: No new tickets from external email
crythias,crythias wrote:Seems legit. So if you don't match anything, it doesn't filter... so then match @mydomain and SET X-OTRS-Ignore: 0 in PostMasterFilter after enabling the pre filter.
What I would like it to do is "not ignore" if it is from @mydomain but ignore if it is from any other domain.
Not sure how good you are with regex (it gives me a headache).
^(?!@mydomain$).*
Would that allow a match for everything but @mydomain?
example:
block @1mydomain.net
block @my.domain.net
block @gmail.com
allow @mydomain
allow @mydomain.net
allow @mydomain.com
Thanks for your help.
Jesse.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: No new tickets from external email
Well, I tried it and it blocked everything.netjess wrote:Not sure how good you are with regex (it gives me a headache).
^(?!@mydomain$).*
Would that allow a match for everything but @mydomain?
example:
block @1mydomain.net
block @my.domain.net
block @gmail.com
allow @mydomain
allow @mydomain.net
allow @mydomain.com
Back to the drawing board.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny wizard
- Posts: 477
- Joined: 20 Nov 2011, 16:08
- Znuny Version: 6.5.11
- Real Name: Schulmann
Re: No new tickets from external email
For a reply the queue disposition (X-OTRS-Queue) of a postmaster filter is not active.netjess wrote:In short: allow replies from external domain but ignore new messages from external domain.
Therefore it should be sufficient to create a simple postmaster filter:
Check email header:: From
Negate: Checked
Look for value: @mydomain\.example$
Set email header: X-OTRS-Queue
Set value: Not_Wanted
To the queue Not_Wanted you could attach an appropriate auto response or delete the tickets automatically.
Znuny6/Debian/ESXi
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: No new tickets from external email
Postmaster matches after pre-filter. Block first then unblock.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: No new tickets from external email
schulmann, So the "Negate" check box designates a negative value (everything but the value)? I thought that it meant to turn off that part of the filter.schulmann wrote: For a reply the queue disposition (X-OTRS-Queue) of a postmaster filter is not active.
Therefore it should be sufficient to create a simple postmaster filter:
Check email header:: From
Negate: Checked
Look for value: @mydomain\.example$
Set email header: X-OTRS-Queue
Set value: Not_Wanted
To the queue Not_Wanted you could attach an appropriate auto response or delete the tickets automatically.
Thanks.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: No new tickets from external email
Thank you.crythias wrote:Postmaster matches after pre-filter. Block first then unblock.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.