Reject email tickets based on email address

Moderator: crythias

Locked
trev_f
Znuny newbie
Posts: 1
Joined: 30 May 2010, 13:08
Znuny Version: 2.4.7

Reject email tickets based on email address

Post by trev_f »

Hi experts!

Is there a way to auto-reject a new email ticket if the email address doesn't belong to a customer in the customer database? It would also be preferable if the ticket counter isn't incremented. Any help would be much appreciated! Cheers
Trevor Frazer
IT Department
ELTHAM College of Education
Melbourne, Australia
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Reject email tickets based on email address

Post by crythias »

From what I've tried to find, it's not inherently built in. There's a flag to reject making new tickets via email. That's not fun. It does force usage of the web interface (only customers with a login can create tickets, but only via web).

The only other method I've found is in email http://lists.otrs.org/pipermail/otrs/20 ... 03093.html if you're using exim. Now, I don't want to recommend changing your mail sender just for this. The relevant part is:

Code: Select all

select email from customer_user where \
      email='${quote_mysql:$sender_address}'
which queries directly against the MySQL db before it gets there.

The proper way to do it would likely be a postmaster filter CMD ? that does the query.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Reject email tickets based on email address

Post by crythias »

I wrote this today:http://forums.otrs.org/viewtopic.php?f= ... ers#p20981 If you're still looking for this, can you give feedback on whether this works for you?
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
Locked