Email Verification in Salesforce: The Practical Checklist
A working checklist for verifying lead and contact emails in Salesforce; Apex callouts, Salesforce Connect, CSV reimport, and dedup without burning credits.
Salesforce doesn't verify email addresses; it only checks format on save. To verify Lead and Contact emails you bring in an external service through one of three patterns: an async Apex callout on write, Salesforce Connect, or a CSV export, verify, and Data Loader update. Most teams run Apex for new records and the CSV loop for campaign segments.
Any org that has run outbound for a year or more has the same problem in its Lead and Contact objects: addresses that were valid when imported, decayed for months, and now bounce or sit on catch-all domains that accept everything.
The fix is not a one-time import. It is a verification loop: a repeatable workflow that you run on a cadence against the records you actually plan to email. This guide is the checklist we hand to teams running Salesforce as their CRM of record. It covers the three integration patterns that work (Apex callouts, Salesforce Connect, and CSV export/verify/reimport), the Apex constraints you must respect, the dedup step that should follow verification, and the step-by-step checklist you can hand to a revenue operations engineer.
If you want the broader CRM data quality context first, read our CRM data quality use case: this post is the Salesforce-specific implementation of that playbook.
Lead and Contact Verification in Salesforce
Salesforce stores email addresses in two places that matter for outbound: the standard Email field on Lead, and the standard Email field on Contact. (Accounts have no native person-email field.) Both are text fields. Salesforce validates the format on save with a basic regex (it rejects foo and foo@, accepts foo@bar), but it does not check whether the mailbox exists, whether the domain accepts mail, or whether the address is behind a catch-all. Format validation is not verification. A syntactically valid bounced@nonexistent-domain.com sails past Salesforce's save-time check and sits in your org until someone sends to it and watches the bounce come back.
Real verification means an external service doing SMTP-level checks: MX record lookup, the SMTP handshake (EHLO → MAIL FROM → RCPT TO → RSET), catch-all resolution, disposable domain detection, and role classification. Salesforce does not ship that engine. You bring it in via one of three integration patterns, each with different trade-offs around latency, cost, and operational complexity.
Before you pick a pattern, decide what you are verifying and when. There are two moments that matter:
- On write: when a lead or contact is created or updated, verify before the record is trusted for outbound. This is the Apex trigger pattern.
- On campaign readiness: before a list is loaded into a sequence, verify the entire segment. This is the CSV or batch pattern.
Most mature teams run both: on-write verification for net-new records (low volume, high freshness) and batch verification for campaign segments (high volume, scheduled).
Apex Trigger Considerations
The Apex trigger pattern is the most native-feeling and the most likely to break your org if implemented badly. The constraint is simple and absolute: Salesforce does not allow synchronous callouts from triggers. A trigger runs inside the database transaction. If you make an HTTP callout inline and the external service takes the full 120-second callout timeout to respond, the record is locked for those 120 seconds, every other record in the same bulk batch is queued behind it, and eventually the transaction rolls back or hits governor limits. The platform prevents this by throwing Callout from triggers are currently not supported the moment you try.
The fix is asynchronous delegation. You collect the record IDs in the trigger, then enqueue an async job that performs the callout in a separate transaction after the DML commits. Three async primitives work, in increasing order of capability:
@future(callout=true): the simplest. A static method annotated@future(callout=true)runs asynchronously and cannot return a value. You pass record IDs in, perform the callout, and update the records from inside the future method. Suitable for simple, single-callout verification.- Queueable Apex with
Database.AllowsCallouts; the recommended default. Supports complex data types, chaining, and gives you a Job ID for monitoring. Enqueue withSystem.enqueueJob(new VerifyEmailQueueable(recordId)). - Platform Events: the most decoupled. The trigger publishes a platform event, a separate event-based trigger or external system picks it up and performs the callout. Best for high-volume orgs that need to fully separate verification from record-write latency.
Whatever primitive you choose, four rules are non-negotiable:
- Bulkify. If 200 records are inserted in one bulk operation, your trigger must collect all 200 IDs and enqueue a single async job (or a small number of batched jobs), not 200 individual jobs. A callout inside a for-loop in a trigger will hit the 100-callout-per-transaction limit and the per-edition @future limit within minutes of a Data Loader run.
- Never hardcode keys. Store the verification API endpoint and credentials in a Named Credential, not in Apex code. A Named Credential stores the endpoint URL, the authentication method, and the credentials themselves, and injects the Authorization header automatically. A Remote Site Setting only whitelists a URL; it does not handle auth. For any verification API that requires an API key, Named Credentials are the correct choice and the only choice that keeps keys out of version control.
- Write results back asynchronously. The verification response comes back in the async context, not in the trigger. Update the Lead or Contact with the verification result (
Email_Verified__c,Email_Status__c,Is_Role__c,Last_Verified_At__c) from inside the async job, not the trigger. LeadMagic's API returnsemail_status(valid,invalid, orunknown) andmx_security_gateway; map those to your fields. - Mock callouts in tests. Apex tests cannot make real HTTP callouts. Implement
HttpCalloutMockfor every verification callout path and assert the post-callout record state, not the callout itself.
The governor limits to plan around: a single Apex transaction allows a maximum of 100 HTTP callouts, each with a 120-second timeout. In practice, keep callouts at 10-15 seconds. @future methods are limited per 24-hour rolling window by edition. Batch Apex processes up to 50 million records with each execute() chunk defaulting to 200 records: for high-volume re-verification sweeps, Batch Apex with Database.AllowsCallouts is the right shape.
A note on what we will not show here: we will not include Apex source for the trigger or the Queueable job, and we will not show a sample HTTP request with an Authorization header. Both belong in your Named Credential configuration and your org's Apex, not in a marketing doc. The shape of the integration (collect IDs, enqueue async, callout via Named Credential, write back) is the part that matters for planning. The implementation is your revenue operations engineer's job.
Salesforce Connect for Real-Time Data
The second pattern is Salesforce Connect, an add-on that surfaces external data inside Salesforce as external objects without copying it into your org. The external object points at data living in an outside system (an OData endpoint, a Snowflake table, an Amazon Athena query), and behaves like a custom object in the UI: list views, detail pages, lookups, related lists.
For email verification, the pattern would be: your verification provider exposes an OData endpoint that, given a Lead or Contact context, returns the current verification status. You map that endpoint as an external object and surface it as a related list on the Lead page. Reps see the live verification status without a data copy.
The trade-offs:
- Read-heavy, write-light. Salesforce Connect is designed for surfacing external data, not for writing verification results back onto standard objects. If you want
Email_Verified__con the Lead itself, Connect alone does not get you there; you need a Flow or trigger that reads the external object and writes the field. - Limits. Salesforce Connect has its own limits (callouts or rows per hour depending on adapter, external objects per org, joins per query, and page sizes) that vary by adapter, edition, and release. Check the current Salesforce Connect limits documentation before you design around it.
- Edition and cost. Salesforce Connect is a paid add-on on most editions. For a verification-only use case, that cost is hard to justify versus an Apex callout or the CSV workflow.
The honest assessment: Salesforce Connect is the right answer when you are federating a large, slow-moving external dataset that reps need to browse (an ERP, a data warehouse, a product catalog). For email verification (a small, write-back-to-standard-objects, batch-oriented workload) it is usually over-engineered. Most teams land on Apex callouts for on-write verification and the CSV workflow for batch. We mention Connect here so you know it exists and can rule it out deliberately rather than by omission.
CSV Export → Verify → Reimport Workflow
The third pattern is the one every team can run on day one with no Apex, no Connect license, and no integration engineer. It is also the one most teams underestimate.
The workflow has four steps, and the order matters:
Step 1: Export
Use Data Loader for the export (or a report export for smaller sets; the Data Import Wizard only imports). Export the Lead or Contact records you plan to verify with at minimum these fields: Id, Email, FirstName, LastName, Company (on Lead) or AccountId (on Contact). The Id is non-negotiable; it is your reimport key. Without it, you cannot update records in place; you can only insert duplicates.
Filter the export. Do not export your entire org. Export the segment you are about to email; the campaign's target list, the active lead queue, the contacts in a specific record type. Verifying 5 million records you will never send to is wasted credits and wasted time.
Step 2: Verify
Take the exported CSV to your verification service. With LeadMagic, you can run bulk email verification by uploading the CSV (or pushing it through the API). Each row comes back with a status of valid, invalid, or unknown, plus role-based and disposable flags and mail-host details, including whether a security gateway sits in front of the mailbox. Cost is 0.25 credits per validation (Unknown isn't charged), and Email Validation checks the address at lookup time. A 50,000-record export costs at most 12,500 credits. The same call attempts catch-all resolution, so there's no separate catch-all pass.
Export the verified result as a CSV. The verification response should include the original Id so you can map results back to Salesforce records on reimport.
Step 3: Transform for Reimport
Salesforce's update expects a CSV with column headers that match your custom field API names. Create columns for the verification fields you want to write back: Email_Verified__c (boolean), Email_Status__c (picklist: valid / invalid / unknown), Is_Role__c (boolean), Last_Verified_At__c (datetime), Security_Gateway__c (boolean).
If you have not created these custom fields yet, create them first: Setup → Object Manager → Lead (and Contact) → Fields & Relationships → New. Plan the field types before you reimport; changing a picklist to a text field after you have 50,000 rows in it is painful.
Step 4: Reimport
Use Data Loader with the Update operation (not Insert). Map the CSV columns to the custom fields. The Id column maps to the standard Id field and is the update key. Run a small test first (10 records), and confirm the fields populate on the Lead page before you commit to the full 50,000.
Two warnings:
- Turn off workflow rules and triggers that fire on email update during the reimport. If you have an Apex trigger that re-verifies on update, you will create a feedback loop. Disable it for the duration of the reimport and re-enable after.
- Run the reimport in a sandbox first if you have one. A bad column mapping on 50,000 records is a rollbackable mistake if you catch it in sandbox and an unrollbackable one if you catch it in production.
The CSV workflow has one structural advantage over the Apex pattern: it is auditable. You have the exported CSV, the verified CSV, and the reimported CSV: three artifacts you can diff, archive, and hand to a compliance reviewer. The Apex trigger pattern leaves you with whatever you logged, which is usually less.
Backfill missing work emails by Salesforce record ID
Export the Salesforce ID, name, company domain, and current email field for each Lead or Contact. Run Email Finder on rows with blank emails and stage the proposed values and verification dates for review. Review duplicates and conflicting contact identities before import.
Use a sandbox or a small test batch to confirm that an email added after export stays intact. In a custom integration, re-read the record by ID before writing and skip rows whose email field is now populated. For a file import, verify the overwrite behavior for your object and import tool first. Keep a before-and-after audit file and leave no-match rows available for review. Salesforce import behavior
Dedup After Verification
Verification tells you which addresses are reachable. Deduplication tells you which records are unique. They are different problems and they compound: a list of valid emails where three records share the same address is a list of two duplicates, and sending to it means sending the same message three times to the same inbox: a fast way to generate spam complaints and damage sender reputation.
Salesforce ships native deduplication via Duplicate Management: Standard Matching Rules and Duplicate Rules, configured per object. The matching rules define what counts as a duplicate (Email match, or normalized Email + LastName + Company match); the duplicate rules define what happens on match (block on create, block on edit, alert, allow with report).
After a verification pass, run dedup in this order:
- Run Standard Matching on Email. Set the matching rule to match on the
Emailfield (case-insensitive, trimmed). Run the duplicate job against the verified Lead or Contact set. Salesforce surfaces duplicate record sets in the Duplicate Record Set list view. - Review the duplicate sets. Decide your merge priority: most-recently-verified record wins, or most-complete record wins (the one with Mobile, Title, Company filled). Use the native merge UI for individual merges or a third-party dedup app for bulk.
- Re-verify survivors. If you merged two records and kept the email from the older one, re-verify that email before you trust it. A merge can resurrect a stale address.
- Export, dedupe outside, reimport. For very large sets (>200,000), the native Duplicate Management UI gets slow. Export the verified list, run a deterministic dedupe in a script (Python pandas, a dedup tool) on normalized Email + LastName + Company, and reimport only the survivors.
The verification-then-dedup order matters. If you dedupe first, you may merge two records whose shared email is invalid: losing both. If you verify first, you know which email is reachable before you decide which record to keep, and you can keep the record with the verified email even if it is older.
For the broader methodology of cleaning a list end-to-end (verification, dedup, role suppression, catch-all handling), see our email list cleaning guide. This Salesforce checklist is the CRM-specific slice of that workflow.
Step-by-Step Checklist
This is the checklist in execution order. Hand it to whoever runs the next verification pass.
Pre-flight
- Confirm which segment you are verifying (active leads, a campaign target list, a specific record type), not the entire org.
- Confirm you have a verification provider and credits allocated. LeadMagic Email Validation: 0.25 credits per validation, Unknown not charged.
- Confirm custom fields exist on Lead and Contact:
Email_Verified__c,Email_Status__c,Is_Role__c,Last_Verified_At__c,Security_Gateway__c. If not, create them in Object Manager before you start. - Confirm a Named Credential exists for the verification API endpoint if you are using the Apex pattern. If not, create it (Setup → Named Credentials → New), never store the API key in Apex.
- Confirm Data Loader is installed if you are using the CSV pattern.
Apex Pattern (On-Write Verification)
- Trigger is on
LeadandContact,after insertandafter update, fires only whenEmailchanges (useTrigger.oldMapto diff). - Trigger collects record IDs into a
Set<Id>, no per-record callouts. - Trigger enqueues one Queueable Apex job (implement
Queueable, Database.AllowsCallouts) per batch. - Queueable job performs the HTTP callout via the Named Credential, no hardcoded URL, no hardcoded key.
- Queueable job parses the response and updates the originating records with
Email_Verified__c,Email_Status__c,Is_Role__c,Last_Verified_At__c,Security_Gateway__c. - Error handling: on
CalloutException, log to a customVerification_Error_Log__cobject so you can see failures (the rep will not see them on the record page). - Tests: implement
HttpCalloutMockfor every callout path; assert post-callout field state, not the callout itself. - Bulk test: insert 200 records in a single test method and confirm one async job is enqueued, not 200.
- Confirm the trigger is inactive during any bulk CSV reimport to avoid a feedback loop.
Salesforce Connect Pattern (If Applicable)
- Confirm the verification provider exposes an OData 2.0, 4.0, or 4.01 endpoint you can map to Lead/Contact context.
- Create the External Data Source in Setup → External Data Sources → New. Choose the adapter and check its current limits.
- Validate and Sync: confirm the external object appears and the row count matches the external system.
- Map lookup relationships from the external object to Lead/Contact if you want the status surfaced inline.
- Confirm you have a Flow or trigger that reads the external object and writes the verification fields back onto the standard object, Connect alone does not write back.
- Confirm your edition supports Salesforce Connect and that the add-on is provisioned.
- Confirm you are within Salesforce Connect's external-object and join limits for your edition.
CSV Pattern (Batch Verification)
- Export the segment with Data Loader:
Id,Email,FirstName,LastName,Company/AccountId. Filter, do not export the entire org. - Upload the CSV to your verification provider (or push via API). Confirm the response includes the original
Id. - Verify cost: 0.25 credits × record count. Confirm credits are available before running.
- Download the verified result CSV.
- Transform columns to match Salesforce custom field API names:
Email_Verified__c,Email_Status__c,Is_Role__c,Last_Verified_At__c,Security_Gateway__c. - Disable any email-update triggers and workflow rules that would re-verify or fire automations during reimport.
- Test reimport on 10 records in a sandbox. Confirm fields populate on the Lead/Contact page.
- Run the full Update via Data Loader with the
Idcolumn as the key. - Re-enable the triggers and workflow rules you disabled.
- Archive the export, verified, and reimport CSVs for audit.
Dedup After Verification
- Confirm a Standard Matching Rule exists on Lead matching
Email(case-insensitive, trimmed). If not, create one in Setup → Matching Rules. - Confirm a Duplicate Rule exists on Lead (and Contact) that allows duplicates to be created but reports them: do not block, you want to see the set first.
- Run the duplicate job against the verified segment. Review Duplicate Record Sets.
- Merge by priority: most-recently-verified record wins, or most-complete record wins.
- Re-verify the surviving email after any merge that pulled an older address.
- For sets >200,000 records, export, dedupe externally (Python pandas or a dedup tool) on normalized Email + LastName + Company, reimport survivors only.
Post-Verification
- Update list views: create a "Verified Leads" list view filtered on
Email_Verified__c = true AND Is_Role__c = falseso reps see only sendable records by default. - Create a "Verification Failed" list view filtered on
Email_Verified__c = falsefor re-enrichment routing. - Schedule the next verification pass: 90-day cadence for active records, immediately before any outbound campaign.
- Pair with Job Change Detection for contacts verified more than 90 days ago: people move, and a verified email for someone who left the company is a verified dead end.
- Report on verification coverage: what percentage of active Leads and Contacts have
Last_Verified_At__cwithin 90 days. Under 80% is a data quality red flag.
Bottom Line
Salesforce does not verify emails for you. It stores them, formats them, and lets you build the loop that verifies them. The loop has three shapes (Apex callouts for on-write, Salesforce Connect for federation, CSV export/verify/reimport for batch), and most teams end up running Apex and CSV in parallel, one for net-new and one for campaign sweeps. Connect is the right answer for a different class of problem and is usually overkill for verification.
The constraints that shape the Apex pattern are real and they are enforced: no synchronous callouts from triggers, 100 callouts per transaction, 120-second timeout, Named Credentials for auth, bulkify or hit governor limits. Respect them and the trigger pattern is stable. Ignore them and your org learns the meaning of CalloutException at the worst possible moment.
The CSV pattern is the one you can run this afternoon, with no Apex and no add-on license. It is also the one with the cleanest audit trail: three CSVs you can hand to anyone who asks what you did to your CRM. Run it on your next campaign segment before you send and compare bounce rates against your last unverified send.
If you want the verification engine behind any of these patterns, try LeadMagic's email validation: 0.25 credits per validation, role and gateway flags, and the response fields you need to populate Email_Verified__c and the rest of the fields on your Lead and Contact objects. Pair it with the CRM data quality use case for the full enrichment-and-cleaning loop, and with the email list cleaning guide for the methodology that sits behind the checklist above.
Related resources
- Email Validation: the engine behind the Apex and CSV patterns, 0.25 credits per validation.
- Email Finder: find a current work email for Leads and Contacts that come back invalid.
- Email validation tool, check one address before building the callout.
Sources and review
Topic path
Go deeper on Deliverability & Verification
How email verification works, Valid/Invalid/Unknown results, 0.25 credits per check (1 credit = 4 validations), catch-all resolution, and send/no-send rules. help reduce preventable bounces with real-time validation.
Keep reading
Mailchimp auto-cleans bounces but never verifies on import. This checklist covers audience cleaning, bounce rules, abuse thresholds, and LeadMagic bulk verify.
HubSpot stores your contacts, but it does not verify them. This checklist shows how to bulk-verify with LeadMagic, reimport, and automate suppression.
Compare documented verification workflows for mailing lists, signup forms and CRM records. See how to preserve the status when switching tools.