Sub topic 5
Checking email addresses, domains, and links
This chapter assumes you can search and apply for jobs online, use email and messaging apps, and know that a domain is the name of a website, such as example.com. It covers how to test whether an email address or link really belongs to the company it claims to represent. It also covers where those tests stop being reliable.
Why the contact channel matters
A scammer can copy a company's logo, wording, and job descriptions in minutes. The address a message comes from and the place a link leads are harder to fake convincingly. Most mistakes by scammers show up there.
Checking a contact channel means asking two questions:
- Does this email address or link belong to the company, according to a source I found myself?
- Is the channel one a real recruiter would plausibly use at this stage?
Neither answer alone settles the matter. A matching domain can still be used by a compromised account, and a mismatch can sometimes have an innocent cause. Treat each result as evidence that raises or lowers your suspicion.
How a domain is built
Read a web address from right to left, starting at the first single slash.
Take https://careers.example.com/jobs/123:
httpsis the scheme. It says the connection is encrypted. It says nothing about who runs the site.careers.example.comis the host.example.comis the registered domain. This is the part a company or person buys.careersis a subdomain. The owner ofexample.comcan create any subdomain they like./jobs/123is the path. Anyone who controls the host can choose any path.
The key rule is that only the registered domain, and what sits to its left separated by dots, tells you who controls the host. A host belongs to a company if it is exactly the company's domain or a subdomain of it.
Scammers exploit the fact that people read left to right and stop when they see a familiar name:
| Address host | Who controls it | Why it misleads |
|---|---|---|
| `careers.example.com` | The owner of `example.com` | Genuine subdomain |
| `example.com.jobs-apply.net` | The owner of `jobs-apply.net` | Starts with the real name, but the registered domain is `jobs-apply.net` |
| `example-careers.com` | Whoever registered it | A different domain with a similar name |
| `examp1e.com` | Whoever registered it | A digit `1` replaces the letter `l` |
| `example.co` | Whoever registered it | A different top-level ending |
| `[email protected]` | The owner of `evil.test` | Text before `@` in a URL is login information, not the host |
Testing a link in code
The following function applies the rule exactly. It extracts the host and accepts it only if it equals the official domain or ends with a dot followed by that domain.
from urllib.parse import urlparse
def link_belongs_to(url: str, official_domain: str) -> bool:
host = (urlparse(url).hostname or "").lower()
return host == official_domain or host.endswith("." + official_domain)
print(link_belongs_to("https://careers.example.com/jobs/123", "example.com"))
print(link_belongs_to("https://example.com.jobs-apply.net/jobs/123", "example.com"))The first call prints True. The second prints False, even though the address begins with example.com, because the host ends in jobs-apply.net.
Two details matter here:
urlparse(...).hostnameignores anything before an@sign, so the trick in the last table row is handled correctly.- The dot in
"." + official_domainis essential. Without it,notexample.comwould pass because it ends with the charactersexample.com.
The function has limits. It cannot tell you that official_domain is the right domain. If you take the official domain from the same message that you are checking, the test proves nothing. You must get the domain from an independent source, as described below.
Finding the official domain
Look the company up yourself, without using any link, phone number, or address from the message you are testing.
- Search for the company name and open its main website from the results. Be careful with paid ads at the top of results, which scammers also buy.
- Find the careers page from the company's own home page.
- Check that the job appears on that careers page. Companies usually list every open role there.
- Look at established, independent sources that mention the company's site, such as a business register entry or an official social media profile that links to it.
- Type the domain into your browser yourself, or use a bookmark you made earlier.
If the role does not appear on the company's own careers page, that is a warning sign, though not conclusive. Some roles go to agencies, and some are not publicly listed. In that case, contact the company through its main published channel and ask whether the recruiter and role are real.
Checking sender addresses
An email has a display name and an address. The display name is text the sender chooses freely. It can say "Jane Smith, Example Corp HR" while the address is anything at all. Many mail apps show only the display name, so open the full address before you trust it.
Look at the part after the @. This is the sending domain. Compare it with the official domain you found independently.
This sketch flags two common problems: a free mail provider used for a company role, and a domain that does not match the company.
FREE_MAIL = {"gmail.com", "outlook.com", "yahoo.com"}
def sender_flags(sender_email: str, company_domain: str) -> list[str]:
domain = sender_email.rsplit("@", 1)[-1].lower()
flags = []
if domain in FREE_MAIL:
flags.append("free mail address used for a company role")
elif domain != company_domain and not domain.endswith("." + company_domain):
flags.append("sender domain does not match the company domain")
return flags
print(sender_flags("[email protected]", "example.com"))
print(sender_flags("[email protected]", "example.com"))The first call returns one flag about free mail. The second returns an empty list.
An empty list does not mean the message is safe. It means only that this one check found nothing. Treat flags as prompts for further checking, not as proof of fraud.
Cases the sketch gets wrong
- Small companies and start-ups sometimes do use free mail addresses. A flag here deserves follow-up, not an automatic rejection.
- Agencies hire on behalf of other companies. The sender's domain will be the agency's, not the employer's. You then need to verify the agency as well as the employer.
- Applicant tracking systems send mail from the vendor's domain or a related one on behalf of employers. A message from a hiring platform may legitimately come from an address that is not the company's.
- Lookalike domains such as
examp1e.comare not caught by the sketch only if the company domain is wrong. Here they would be flagged as a mismatch. Problems arise when you compare against the wrong domain. - Spoofed or compromised accounts can send from a genuine company domain. A matching domain does not prove the person is who they say they are.
Reading the message headers
Mail apps let you view the full headers of a message. Two points are worth knowing at this level.
- The
Fromheader is the address shown to you. The sender controls it, and it can be forged in some setups. - The
Reply-Toheader says where your reply will go. A message can appear to come from[email protected]while replies go to a different address. If the reply address differs from the sender and you did not expect that, stop and check.
Mail providers also run authentication checks, named SPF, DKIM, and DMARC, which test whether a message was sent by servers the domain owner allowed. Failures are a strong warning. Passes are only a partial comfort, because a scammer can pass these checks using their own lookalike domain.
Checking links before you click
Follow these steps for any link in a job message:
- Hover over the link, or press and hold on a phone, to see the real destination. The visible text and the destination can differ.
- Read the host from right to left as above.
- Treat shortened links such as those from link-shortening services as unknown. Use a link-expansion tool or avoid them.
- Be careful with links to file-sharing pages, form builders, or messaging group invitations. Real employers sometimes use these, but scammers use them often because anyone can create one.
- Avoid downloading files such as
.exe,.zip, or documents that ask you to enable macros, whatever the sender claims. - Never sign in to an account from a link in a message. Go to the site yourself and sign in there.
A padlock symbol or https only shows that the connection is encrypted. Scammers can get certificates for their own domains for free, so a padlock says nothing about honesty.
Messaging apps and phone numbers
Recruiters who write first on a messaging app, with no earlier contact, are a common scam pattern. The same checks apply, with different evidence:
- A phone number has no domain to compare. Look for the company's published number on its own website and ask to be called back there.
- Profiles on professional networking sites can be fake or hijacked. Check how old the profile is, how many real connections it has, and whether the person is listed on the company's own website or staff pages.
- A request to move the conversation to another app quickly, especially an app with disappearing messages, removes the record you would need if something goes wrong.
Putting the checks in order
Even at the "continue carefully" step, keep watching for other warning signs. Domain checks are one layer. A genuine-looking address still does not excuse requests for money, early requests for identity documents, or pressure to act quickly. Those are covered in later chapters.
Common errors
- Taking the domain from the message. If the scammer supplies both the link and the "official site", they will agree with each other.
- Checking only the start of the host.
example.com.jobs-apply.netbegins with the right name and belongs to someone else. - Trusting the display name. It is free text.
- Treating
httpsas proof. It shows encryption, not identity. - Trusting a match too much. A hacked genuine account sends from the real domain.
- Over-trusting a mismatch. Agencies and hiring platforms can have valid reasons for a different domain. Verify before you conclude.
- Using search ads. The top result for a company name can be a paid advert pointing elsewhere.
Exercise
You receive an email from "Priya Nair, Example Corp Talent" at [email protected]. It links to https://example.com.apply-now.org/form. The real company site, found through your own search, is example.com. Which of these two items belongs to the company, and what would you do next?
Show answer
Neither belongs to the company. The sender domain example-careers.com is a different registered domain, not example.com or a subdomain of it. The link host is example.com.apply-now.org, whose registered domain is apply-now.org, so linkbelongsto would return False. Do not click or reply. Look up the company's published contact details yourself and ask whether this recruiter and role exist. Report or delete the message.
Exercise
Why does the check in linkbelongsto use host.endswith("." + officialdomain) and not host.endswith(officialdomain)?
Show answer
Without the leading dot, a host such as notexample.com would pass, because it ends with the characters example.com while belonging to a different domain. The dot ensures the match falls on a domain boundary, so only exact matches and true subdomains are accepted.
Exercise
A recruiter writes from [email protected] and says they hire for Example Corp. Your sender check reports a domain mismatch. Does that prove a scam, and what should you do?
Show answer
No. Agencies often recruit for other companies, so the mismatch is a prompt to check further, not proof of fraud. Confirm that the agency exists and that Example Corp uses it, by finding Example Corp's contact details yourself and asking. Also confirm that the role is listed on Example Corp's careers page or can be confirmed by the company.