Not in front of a keyboard, but I wonder if you could use the DIG command to verify the MX associated with the domain.
--
Bryan Dietz

On Apr 7, 2026, at 7:00 AM, Rob Berendt <robertowenberendt@xxxxxxxxx> wrote:

You send an email and you get a
Reason: 5.1.2 - Bad destination host ('000', ['DNS Hard Error looking up
aasdfdfsdf9788asfdsf8d87f8d.com (MX): NXDomain'])

You decide to get proactive and scrub a file containing all these
destination addresses. You want to run something like
select customer_number, customer_name, email_address,
email_domain_valid(email_address)
from customer_master
where email_domain_valid(email_address) = '0'

Does anyone have something like the desired email_domain_valid?

I can worry about the performance later (like grouping by domain names, a
list of whitelisted domain names, etc) So let's not chase that squirrel.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.