You can also telnet into the machine and see if the mailserver is running.
Often times you get something like this:

+OK POP3 dssf.tudelft.nl v2000.70 server ready

I tried using <cfexecute>, but it wouldn't actually 'return' anything that
could be displayed.  Maybe someone else could figure out a way to do this.

Todd

| I really have no clue as to how this works internally. The test is if your
| mail server shows up in the administrator then the function will work for
| it. Basically, this is the function used in the admin to do that check.
| My thought is that it does a tcp/ip request to the port specified. If so,
| then maybe it can also be used to specify if a server or service is
running
| or not. Use it to check if an FTP server is running on a machine.
|
| At 08:26 AM 8/17/01, you wrote:
| >Michael Dinowitz wrote:
| > > Checking that the domain exists is easy using the
| > > CFUSION_VERIFYMAIL(MailServer, SMTPPort, Timeout) function. It'll
return a
| > > Boolean true or false id the mail server exists or not.
| >
| >How does this work internally? Does it do a DNS lookup and search for a
| >failover server if it can't contact the main server? Many mail domains I
| >know (e.g. most academic domains in the Netherlands) have a setup where
| >they block all incoming traffic on port 25 and provide a failover server
| >that acts as a smarthost for mail to be delivered to the network
| >(130.161.0.0/16 and 145.94.0.0/16 need to go through one server at my
| >Uni). This allows them to provide central spam blocking and antivirus
| >scanning, while the users can still connect to local servers. I would
| >however expect that you can not verify my email server, while it is a
| >valid and running server (try it).
| >Also, many servers don't accept SMTP connections from computers outside
| >a trusted domain that don't have an MX record. If your CF server does
| >not have an MX record but your SMTP server does, you might get a false
| >negative.
| >
| >Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to