Start Validating mx record

Validating mx record

I also make sure to use a name like "url" or "website_url" something that looks like a legitimate field name to a spam bot.

I am using a spam filtering service (defensio) but the spam scores returned are overlapping with valid messages.

At a threshold of 0.4 some spam gets through and some customer's questions are wrongly thrown in a log and an error displayed.

The other possible scenario is, someone can be simply using hijacked email accounts from a compromised machine anyway.

Of course, that is probably a little bit less likely to occur, but it still does.

Keep in mind to check the A record if no MX record is listed, as defined in RFC 5321.

It's rare, but some domains don't have an MX record (for various reasons).

If a CNAME record is found instead, the resulting name is processed as if it were the initial name.

If no MX records are found, but an A RR is found, the A RR is treated as if it was associated with an implicit MX RR, with a preference of 0, pointing to that host.

There are email address validation libraries out there that do this, simply search for email validation. I have this setup on my site in which case the email is saved in the database (for auditing purposes), a job queued, then when the job comes time to execute, any additional validation is performed at that point in time. To the user, it appears as if the email was sent already, it was (it's in the database), and can be viewed internally, but the actual email won't get mailed out until that job executes which can be immediately or some set amount of time depending on the server load.

Walter It is a job queue, part of that job is to do validation.

Anyone know any good dll or C# example how to check if DNS MX for mail exist? Connection timeout Description: An unhandled exception occurred during the execution of the current web request. Win32Exception: Connection timeout Source Error: Line 462: private static bool Check Dns Entry(string domain) Line 463: { Line 464: string[] dns Server = Dns Mx. Length You should use some managed dns client for that.