Page 1 of 1
Blocking domains
Posted: Mon Jun 15, 2020 7:24 am
by marcinb
Hello,
I have a question,
Is it possible to block pop3 receiving mail from domains other than those declared?
So that they don't get meils from a domain other than example.com, and that hesk doesn't send to domains other than example.com.
Is it possible ??
Re: Blocking domains
Posted: Mon Jun 15, 2020 5:43 pm
by Klemen
It's not something built into hesk, no.
However, a PHP developer should be able to help you out by checking the $tmpvar['email'] variable in hesk_email2ticket function (file inc/pipe_functions.nc.php)
Re: Blocking domains
Posted: Mon Jun 22, 2020 12:34 pm
by theru
Good Day,
If i may i would like to ask a followup question on the OP's post.
I believe that it is something similar that i require.
how can i limit tickets being created only for specified domains. IE. when someone from
email@domain1.com and
email@domain2.com emails support a ticket will be generated, however i dont want tickets to be generated from any other domain for example when i recceive IT invoices or Quotes.
Im not a developer, but i would appreciate any help with this.
Thank you,
Ru
Re: Blocking domains
Posted: Mon Jun 22, 2020 4:11 pm
by Klemen
Unfortunately, there is no built-in way of doing this.
The only thing you can do is block (ban) email addresses (or entire email domains) from creating tickets, so if you only have a handful addresses you want blocked this is the way to go.
To only allow certain addresses to submit tickets, you will most likely need to hire a developer to add this for you.
Maybe an alternative approach would be to use a dedicated email account for Hesk and simply forward emails you want as tickets to that account, ignoring everything else? Most hosts allow you to set up automated email filters that would help you achieve this (if "From" is "
email@domain1.com" forward to "
hesk@example.com").
Re: Blocking domains
Posted: Sun Jun 28, 2020 6:25 pm
by theru
Thank you!
Appreciate your reply!