[SOVLED] Test Email Issue in Thold

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
aaron0801
Posts: 11
Joined: Mon Dec 22, 2008 10:21 pm

[SOVLED] Test Email Issue in Thold

Post by aaron0801 »

Hi all,

When I send a test mail, I will receive the below error message.
Sending Message...

ERROR: SMTP Host does not appear to support authenication: 503 5.5.2 Send hello first.
SMTP Host does not appear to support authenication: 503 5.5.2 Send hello first.
I think Thold only supports HELO authentication but not EHLO which my mail system authentication. If so, what should I do to make Thold support EHLO?

My environment:
Windows Server 2003
Cacti 0.8.7b
PA 2.1
PHP 5.2.6

Thank you
Last edited by aaron0801 on Wed Mar 11, 2009 4:21 am, edited 1 time in total.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I could easily add the configuration in to do both, but I believe according to the RFC (its been a while since I was working on the Squirrelmail project), that the HELO command is mandatory. The EHLO command is used to show extended services, but the server must be able to fall back to the HELO command if no EHLO command is given.
aaron0801
Posts: 11
Joined: Mon Dec 22, 2008 10:21 pm

Post by aaron0801 »

cigamit wrote:I could easily add the configuration in to do both, but I believe according to the RFC (its been a while since I was working on the Squirrelmail project), that the HELO command is mandatory. The EHLO command is used to show extended services, but the server must be able to fall back to the HELO command if no EHLO command is given.
Thank you for your reply

If as you said, how can I fix my issue?

BTW, my mail system is Exchange 2003
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

If you are using Exchange 2003:

1. Remove SMTP authentication, as this is not necessary
2. Ensure that your Cacti box is allowed to relay through the Virtual SMTP Server on Exchange
3. If you make any changes to the Virtual SMTP Server, you need to stop and restart it.

Hope this helps.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
aaron0801
Posts: 11
Joined: Mon Dec 22, 2008 10:21 pm

Post by aaron0801 »

mcutting wrote:If you are using Exchange 2003:

1. Remove SMTP authentication, as this is not necessary
2. Ensure that your Cacti box is allowed to relay through the Virtual SMTP Server on Exchange
3. If you make any changes to the Virtual SMTP Server, you need to stop and restart it.

Hope this helps.
Hi mcutting

Thank you for your relay.

I'm not our company Email system administrator, so I can't configure it....But I can do some test to give you some information.

I telnet my-email-server port 25 from cacti box, and enter HELO sucessfully as below

220 ****** Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 rea
dy at Wed, 4 Feb 2009 19:13:10 -0700
HELO
250 ****** Hello [***.***.***.***]

It seems that my email server supports HELO authentication, and I can also send mail by SMTP command line without EHLO authentication from cacti box sucessfully.

However, why I can't send mail from Cacti?

Thank you
aaron0801
Posts: 11
Joined: Mon Dec 22, 2008 10:21 pm

Post by aaron0801 »

Can anyone help me to fix this issue?

Any help or advice is appreciate


Thank you
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Contact your exchange administrator.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
aaron0801
Posts: 11
Joined: Mon Dec 22, 2008 10:21 pm

Post by aaron0801 »

Hi all,

My issue still exist......

I also did some test later. I installed SolarWinds V9 on my Cacti box, and sent test mail by SolarWinds sucessfully....... So I think the issue is on my Cacti not on my Exchange

Is there anyone can help me to fix this issue?

Any help or advice is appreciate

-------------------------
Cacti Version - 0.8.7c
Plugin Architecture - 2.3
Poller Type - Cactid v
Server Info - Windows NT 5.2
Web Server - Apache/2.2.8 (Win32) PHP/5.2.6
PHP - 5.2.6
Plugins
  • Global Plugin Settings (settings - v0.5)
    Thresholds (thold - v0.3.9)
    PHP Network Weathermap (weathermap - v0.95b)
    Syslog Monitoring (syslog - v0.5.2)
    Network Tools (tools - v0.3)
    Host Info (hostinfo - v0.2)
    SNMPTT and SYSLOG viewer for cacti (snmptt - v1.4.1)
    Device Tracking (mactrack - v1.1)
    Configuration manager (configmanager - v0.76)
    local Syslog update (Syslogupd - v0.42)
abdullahteke
Posts: 12
Joined: Thu Mar 05, 2009 7:55 am

Test Mail Issue

Post by abdullahteke »

Hello i have same error today. But i did something.

First use telnet command to mail sever which you entered in settings screen

xxx@xxx:~$ telnet smtp.xxx.com 25
Trying xxx.xxx.xxx.xxx...
Connected to smtp.xxx.com.
Escape character is '^]'.
220 STT1EXF09.TTHMC.LOCAL xxx Mail Server Thu, 5 Mar 2009 15:08:47 +0200

[b]helo xxx.com[/b]

250 STT1EXF09.TTHMC.LOCAL Hello [xx.xx.xx.xx]

ehlo

250-STT1EXF09.TTHMC.LOCAL Hello [xx.xx.xx.xx]
250-DSN
250-8bitmime
250-AUTH GSSAPI NTLM LOGIN
250 AUTH=LOGIN

auth login

334 VXNlcm5hbWU6


Afte these edit <cacti_path>/plugins/settings/include/mailer.php file and find Start SMTP conversation line and add lines with rows that written bold. You şhould add "fgets($smtp_sock,4096);" as many as number of lines after insert ehlo command in telnet command.

/* Start SMTP conversation */
fputs($smtp_sock, "HELO " . $this->Config["Hostname"] . "\r\n");

$smtp_response = fgets($smtp_sock, 4096);
if (substr($smtp_response,0,3) != "250") {
$this->Error = "Error returned by SMTP host: " . $smtp_response;
fclose($smtp_sock);
return false;
}



fputs($smtp_sock, "EHLO\r\n");
fgets($smtp_sock,4096);
fgets($smtp_sock,4096);
fgets($smtp_sock,4096);
fgets($smtp_sock,4096);
fgets($smtp_sock,4096);



it worked for me. I hop it solved your problem.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I sent a note to Cigamit.
TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

aaron0801 wrote:Can anyone help me to fix this issue?

Any help or advice is appreciate


Thank you
Just looked at this again. Judging by the output of the telnet command, and the evidence of several ******** where the name of the host should be, it may well be that you are running a PIX with MailGuard on it ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Again... I believe HELO is mandatory by the SMTP RFC. If your server does not properly support it, then A. you should contact the vendor to fix it or B you should contact your system administrator.

I may add a patch in (the one above certainly is not ideal) but more likely I will add some more debug messages to the class to show exactly what the issue is.
aaron0801
Posts: 11
Joined: Mon Dec 22, 2008 10:21 pm

Post by aaron0801 »

Hi all,

I'm sorry for reply late.

I left the SMTP Username and password blank, then my issue was fixed....


Thanks all of you
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok, no patch required PEBKAC!

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests