Try Filtering on Subject Instead. Same Results. No Grey Hair.
hello ,
I need help please with the Incoming Email Filter feature.
i want to disable the option to open new ticket with email that not in my domain, for example - my domain is "123.com" - so if some one will try to open tickets with his Gmail - the tickets will reject
i created Incoming Email Filter
Execution Order 1
Filter Status: Active
Target - Web Form (and i tried All also..)
Rules Matching Criteria: Match Any
Email does not contain 123.com (tried with " and ')
Reject Ticket: V
and i still succeed to open ticket with any domain...
please help... :)
Ohadlevi1,
Try this instead. You'll get the same results but won't go insane trying to get there.
One caveat. I'm not using email piping. All tickets created/opened, go through the osTicket webform interface. And since that's what you listed in your filter above, I'm going to assume the same. See the screen shot I attached to this ticket.
Just in case the screen-shot gets corrupted, I'll paste my Ticket Filter settings as well.
Filter Name: deny-by-email-subject
Execution Order: 1 Checked>> Stop processing further on match!
Filter Status: *Active
Target: Web Forms
Filter Rules: Rules are applied based on the criteria.
Rules Matching Criteria: * Match Any
Subject Does Not Contain lmpc-ticketing:
Reject Ticket: Checked>> Reject Ticket (All other actions and filters are ignored)
Reply-To Email: Use Reply-To Email (if available)
Ticket auto-response: Disable auto-response. (Overwrites Dept. settings)
Canned Response: (Automatically respond with this canned response)
Department: Support
Priority: Express (Overwrites department's priority)
SLA Plan: System Default (Overwrites department's SLA)
Auto-assign To: Unassigned
We were trying to deny by email domain as well and the ticket filter combinations just didn't work right. Tickets were always allowed through except in one instance. But that instance was us grabbing at thin air just to see if it would actually except a domain name. (Email - Ends With - domainname.com). But that's obviously fruitless.
The work around above does exactly what we want. If anyone goes to open a ticket and doesn't append "lmpc-ticketing: " to the subject line, the ticket is rejected.
We do have to tell our customers that when they put their subjects on the webform they need to make sure they start their subject with the above, to include a space on the end after the colon, and then they can put their own subject after that.
Hopefully this helps some others. Another area today that drove me absolutely batty. No Docs, which is really unfortunate as this is a very awesome project.
I'll write documentation if they allow it. Hell, I'll make desktop videos as well. Nothing like a great project only to be walked away from because it's not documented enough for the masses. This project is forcing me to learn php. So that's a good thing I guess.
Let me know if this works for you Ohadlevi1? Works a treat for me. :
