I had to disable the module at www.wechange.org because for every email (valid or not), we had the message:
Email host [e.g. users.sourceforge.net] does not seem valid, it does not answer

Is it possible that my host does not accept @fsockopen connections?
I am asking them, too.

CommentFileSizeAuthor
#5 email_verify.install.txt1.93 KBbeginner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbr’s picture

I think this needs to be debugged on your host. Try printing debugging statement, turning on tracing, ...

Once the cause is found, it would be nice, if possible, to detect this situation and either warn the user or, since in doubt, accept the emails (or both).

beginner’s picture

Title: all mail hosts are refused. » fsockopen not open on port 25.

I asked my host. It seems they are set up to only accept fsockopen on port 80 and not 25. I am negotiating with them :)
Clearly the problem is on the host side, not the module.

I really don't know how we could check for this.
At the very least, we could add a word of caution, both in the README, and within the admin interface (but there is no configuration screen).
Admin would be encouraged to test with mail servers they know work (e.g. @drupal.org).

beginner’s picture

We could add a test on hook_insall() and test with @drupal.org: we know this one works.
When the module is enabled, one test is performed, and if it fails, the module is disabled again and a warning given to the admin.
?

dbr’s picture

That sounds reasonable :-)

beginner’s picture

Assigned: Unassigned » beginner
Status: Active » Needs review
FileSize
1.93 KB

We only need to add the attached email_verify.install.

I tested it on my local box, where the port is open,
and on my remote server, where it is not,
and I got the expected result.

See the comments in the file. I think I copied the right parts of the email_verify_check() function.
I post it here, for you to review, and if it's ok, I'll commit it tomorrow.

beginner’s picture

Status: Needs review » Fixed

Patch applied to HEAD and D5.

Anonymous’s picture

Status: Fixed » Closed (fixed)