SMTP Error.

diazluna - November 22, 2008 - 02:21
Project:SMTP Authentication Support
Version:6.x-1.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:bynana
Status:active
Description

This was already reported in some other issue but it is clolsed as fixed. I've installed the latest and greatest version of SMTP for drupal 6.x.

I am getting an error message when sending a test email from my drupal smtp section. I have tried for several hours with different smtp servers, including gmail.

I always have the same error message:

SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: RSET failed:

I don't know what else to try. I even tried accessing my smtp server using telnet with success, but still can't reach it through drupal.

I am at a loss here and don't know what else to do. I have a hosted server on a windows platform.

Thank you!

#1

bynana - December 5, 2008 - 03:46
Version:6.x-1.x-dev» 6.x-1.0-beta3
Assigned to:Anonymous» bynana

I have The same problem.anyone can tell me what can I do?
thanks!

#2

open-keywords - December 5, 2008 - 07:37

Try to use the IP address of your smtp server instead of its name
What version of PHP do you have ?
What says phpinfo about SMTP ? http://yourserver/admin/logs/status/php

#3

bynana - December 9, 2008 - 01:10

PHP Version 4.3.9
on Virtual Server
Linux System
anyone can help me?thank you!

#4

NickFranceschina - December 8, 2008 - 04:19

exact same thing here...

SMTP localhost localhost
smtp_port 25

I can also telnet and "HELO" to localhost just fine, and I can send mail through ASP... don't know what is missing with drupal/php

#5

Sohodojo Jim - December 9, 2008 - 01:14

Same here when trying to use the D6 version (released and dev) from my intranet sandbox (not a deployed server). The D5 version on the same box works for other sites. Plus, if I pop the connection settings from the failed D6 installation into the D5 sandbox site, it works. So there is definitely something awry with the D6 version using the stock phpmailer (2.3) rather than the tweaked version "hard-coded" into the D5 version.

This is more a convenience thing for working on my Windows sandbox than a showstopper on a deployed CentOS box, so I'll just move on at the moment, monitor this report and maybe see if I can spot the hiccup in a spare moment.

--Sohodojo Jim--

#6

cowboysdude - December 28, 2008 - 07:03

Same problem here too... Anyone have an answer yet? I have tried port 25 and 80... using the smtp server I have set up in another program [for joomla which works with no problems].

I'm trying to convert to drupal but until I get the mail working I will not convert... why isn't this built in? The module should work with phpmailer but alas not working..

#7

cowboysdude - December 28, 2008 - 07:12

I FOUND MY PROBLEM!! Awesome... if you just go to the config for the plugin and REMOVE the email address from:

SMTP Authentication
Leave blank if your SMTP server does not require authentication.
Username:

BUT put in your password it sends just fine.. I got the test email... now to test user emails...

YEAP system email is sent ok...

YEAP can email other users and CC myself..

SO there you go...try that out...

#8

akolahi - January 7, 2009 - 19:44

oddly enough #7 worked for me too :D

#9

snohio - January 7, 2009 - 21:25

Put me out there to with this issue. I tried the "work around" of not having anything in SMTP Authentication name and putting in the password. I've been looking at this issue for a week or two (hour here and there) and have yet to come up with the solution.

I am running on Win2k3 with MS SMTP and IIS.

I get the "SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: RSET failed:" error messages. I've tried using the "examples" from PHPMailer and the results are the same, so I am guessing it is something within that application truthfully.

Yes, the TELNET method works. What I find most odd about the whole issue is that looking at the SMTP log file, the server is receiving all of the commands and returning the 250 OK that it needs. It is almost as if the PHPMailer is not recognizing the response from the mail server..

#10

snohio - January 7, 2009 - 21:39

RESOLUTION (of sorts.)

Ok.. I think I have it figured out, and did so while typing the previous comment, but wanted to get it out there as well. There is probably more than one solution, but the most simple resolution is to use PHPMailer 2.2.1 (http://sourceforge.net/project/showfiles.php?group_id=26031&package_id=2...)

I'm not sure what they changed, but I'll be dropping by their site to let them know of the issue. I've already spend too much "work" time playing with this when it is for a personal site and feature that I use maybe 6 times a year.

#11

snohio - January 13, 2009 - 16:17

PHPMailer 2.2.1 Solution:

I got a response on the PHPMailer SourceForge Help forum as to the solution to the problem. Here is what he said:

The problem is in the 'get_lines' function in class.smtp.php on line 1041, where it reads the response of the server in this way:

"while($str == @fgets($this->smtp_conn,515)) {"

As you might expect it shall be

"while($str = @fgets($this->smtp_conn,515)) {"

with a single equal mark between $str and @fgets($this->smtp_conn,515) because we are reading the server's response! Believe it or not that was my whole frustrating problem!!!

Here is a link to that thread:
https://sourceforge.net/forum/forum.php?thread_id=2817806&forum_id=81620

It worked for me so I am now running the latest version of PHPMailer. I think it might only be a problem with certain versions of PHP, I am running PHP 5.2.4 on Windows with IIS and MS SMTP.. Good luck and I hope that solves your problem.

#12

bitsize - January 29, 2009 - 21:41

For those of you using php4, download PHPMailer_v2.0.2.tar.gz and use it instead. This solved my issue.

#13

wilkenw - September 1, 2009 - 13:26

Using the class files from PHPMailer 2.2.1 downloadable from http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6... solved my inability to authenticate with Siteground's mail server which demands EHLO, not HELO. Thanks for the tip in #10 above.

 
 

Drupal is a registered trademark of Dries Buytaert.