- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2015 12:52 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2015 10:42 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2015 01:46 PM
Check to see if it contains a specific domain...
var idx = email.origemail.indexOf('@gmail.com');
if (idx > -1) {
current.insert();
}
else{
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2015 11:18 AM
You could also put something directly on sys_email, like a business rule that states before insert, if the headers don't contain the whitelisted domains, delete them.
You can even create a table for whitelisting domains, then query it and make the decision at that time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2015 12:41 PM
I like the direction this discussion is going!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2015 10:42 AM
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!