Block emails from domains

tpritch
Mega Contributor

Hello,

We'd like to block emails from all but a few domains. This would not be for user creation but rather to simply stop processing the email when it's received.

Here is a straight forward example: When our instance receives an email from someone@mycompany.com the system generates an incident ticket. However if the email comes from someone@LinkedIn.com (or someone@ww.gety0urgr00veback.com) our instance ignores the email.

I've poked around and found some promising leads that ended up not fulfilling the requirement 100% and haven't found a thread completely dedicated to this so I thought I'd ask.

Does anyone out here have experience with this?

Thanks.

1 ACCEPTED SOLUTION

tpritch
Mega Contributor

Hey everyone,



I received a lot of great feedback about this. It turns out that we are going in a completely different (non-SN) direction to block domains. Both black list and white list would be large.



Thanks for the help!


View solution in original post

13 REPLIES 13

By Action script do you mean the actual script of the Inbound Action itself? If so, then no you wouldn't have to modify your Inbound Action script. The condition would determine whether the Inbound Action is executed (if it meets the criteria) or ignored (if it does not).


So I just talked with the help desk about their request. It turns out that due to the way our company is configured there is a significant concern over accidentally blocking a domain. So we are looking at a completely different solution outside of SN. Thanks for all the help here!


Michael Fry1
Kilo Patron

All emails come into the global domain, so I don't think you need the domain name.


uluerje
Mega Expert

You could put a condition on the inbound email action to allow or block certain email addresses from create tickets - you'd only need to do this for the inbound actions that don't have the 'From' field filled in.   This worked for us.  



email.origemail == 'allowed_address1@email.com' || email.origemail == 'allowed_address2@email.com'




email.origemail != 'blocked_address@email.com'  


tpritch
Mega Contributor

So for this solution we would have to know the full email address not just the domain, correct?