When trying to enable the module, I got the error informing me that fsockopen was not working. I opened up an SSH shell and tested it with a telnet command (telnet mail.mydomain.com 25) and was able to connect fine, so it would appear that the error message was in fact in error.

I went in and I changed these two lines of code:

email_verify.install, line 41
Changed this:
$connect = @fsockopen($smtp, 25, $errno, $errstr, 15);
To this:
$connect = @fsockopen("mail.mydomain.com", 25, $errno, $errstr, 15);

email_verify.inc.php
Changed this:
$connect = @fsockopen($smtp, 25, $errno, $errstr, 15);
To this:
$connect = @fsockopen("mail.mydomain.com", 25, $errno, $errstr, 15);

The module seems to work fine this way. It gives me errors for domains that don't exist, and lets through domains that do exist.

Does anybody see any problems with this? Am I missing something here, or is my problem solved?

Comments

I've just fixed this again on another site, and it required the mail server to be set as localhost.