Blocking domains

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
marcinb
Posts: 10
Joined: Wed May 13, 2020 11:26 am

Blocking domains

Post 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 ??
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Blocking domains

Post 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)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
theru
Posts: 5
Joined: Mon Jun 22, 2020 12:13 pm

Re: Blocking domains

Post 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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Blocking domains

Post 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").
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
theru
Posts: 5
Joined: Mon Jun 22, 2020 12:13 pm

Re: Blocking domains

Post by theru »

Thank you!

Appreciate your reply!
Post Reply