Flag emails that link to unfamiliar websites
Posts to Slack when new mail links to a site outside your expected list, with how recently that site was registered and who runs it.
Apps it connects
Authenticate each one once and the workflow is ready to run.
What it does
Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.
- 1
GmailNew email triggerWakes the workflow when new mail arrives in Gmail, so the messages your search matches can be read for links. - 2
GmailList emailsFetches the messages your search matches that do not yet carry the 'Links checked' label, with sender, subject and text. For each
messageFor each
linkUrlIf a condition is met
- 3
IPWHOIS.ioGet ip networkLooks up who runs a bare numeric address a link points at: the provider, the autonomous system and the country.
Otherwise
- 4
RDAPLookup domainLooks up each unexpected host name in the public registry for its registration date, age in days and registrar.
- 3
If
hostLinesis not empty- 5
SlackSend messagePosts one note per message listing each unexpected host, its flags and registry facts, with any web address removed.
- 5
- 6
GmailAdd label to messageApplies the 'Links checked' label after the message is handled, so the search never picks it up again.
How it works
What happens on each run, in plain English.
Whenever new mail arrives, the messages your Gmail search matches are read and one Slack note per message lists the hosts their links point to. Hosts on your list of expected domains, your own and your suppliers', are left out, so what reaches Slack is mail linking somewhere you did not expect.
For each host the note gives what the public registry holds: when the name was registered, how many days ago, and the registrar, or for a bare numeric address, who runs it and in which country. It also flags a link over plain http, a name in punycode, and a link on the sender's own domain. It reports and does not conclude: nothing says whether a link is worth opening, and no address is ever visited. Only the host part of a link is used, and a report that would repeat a full web address is withheld. Each message is labelled once read, so nothing is reported twice.
You need a Slack channel, a Gmail search naming the mail to read, and a list of the domains you already expect.
Start from a workflow that already works.
Add "Flag emails that link to unfamiliar websites" to your workspace, connect its apps, and make it yours.
Free plan, no credit card