SMTP Fails - need help

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
tfrench01
Posts: 27
Joined: Fri Dec 06, 2024 4:31 pm

SMTP Fails - need help

Post by tfrench01 »

We copied the exact settings from our enterprise networked copier, this is a new install.
We are able ping the smtp server 192.168.1.252 from the DOS desktop.
We are not able to ping the smtp server from the cacti url.
I even turned off Defender, with no good pings.

From the Cacti LOG;
2025-01-07 15:22:30 - CMDPHP SMTP error: Authentication failed: 250-MSGEAST2.fmaitland.local Hello [192.168.1.127] 250-SIZE 37748736 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-X-ANONYMOUSTLS 250-AUTH NTLM 250-X-EXPS GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 XRDST
2025-01-07 15:21:51 - CMDPHP SMTP error: Authentication failed: 250-MSGEAST2.maitland.local Hello [192.168.1.127] 250-SIZE 37748736 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-X-ANONYMOUSTLS 250-AUTH NTLM 250-X-EXPS GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 XRDST

Attaching some pics.
Attachments
smtp fail.PNG
smtp fail.PNG (93.71 KiB) Viewed 180 times
ping worked.PNG
ping worked.PNG (19.33 KiB) Viewed 183 times
User avatar
macan
Cacti Guru User
Posts: 1159
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: SMTP Fails - need help

Post by macan »

Authentication failed - it seems that you have incorrect auth settings (username,password, security, ...)
Is it allowed on your mailserver to send email from cacti's IP address?
Let the Cacti grow!
tfrench01
Posts: 27
Joined: Fri Dec 06, 2024 4:31 pm

Re: SMTP Fails - need help

Post by tfrench01 »

macan,

I noticed that as well, but when we put correct password for the account, it still fails ping.
And of course the message does not get send.
Any other thoughts?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SMTP Fails - need help

Post by TheWitness »

Check to see if your web server is in safe mode where web pages are unable to open tcp connections. With IIS, and Microsoft in general, they are constantly breaking things from a security perspective. It could also be PHP doing it too. You can use sys internals to track tcp port activity to confirm.
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?
tfrench01
Posts: 27
Joined: Fri Dec 06, 2024 4:31 pm

Re: SMTP Fails - need help - RESOLVED

Post by tfrench01 »

Thanks TheWitness
I loaded the tcpview sys internal but never saw a port 25 event.
I may not be using the app correctly, but it does populate with activity, just no port 25.
Running Windows 10 Enterprise LTSC, still looking to see what may be the issue.

LOG Snippet.

2025-01-13 09:34:00 - CMDPHP WARNING Backtrace: (C:\Apache24\htdocs\cacti\settings.php[308]:email_test(), C:\Apache24\htdocs\cacti\lib\functions.php[5352]:send_mail(), C:\Apache24\htdocs\cacti\lib\functions.php[4746]:mailer(), C:\Apache24\htdocs\cacti\lib\functions.php[5101]:cacti_debug_backtrace())
2025-01-13 09:34:00 - MAILER WARNING: Mail failed via SMTP from 'Administrator <tfrench@maitland.com>', to 'tfrench@maitland.com', cc '', bcc '', and took 10.02 seconds, Subject 'Cacti Test Message', Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting


Used smtp2go.com and setup with port 80 as the transport.
Attachments
sys internals tcp view.PNG
sys internals tcp view.PNG (73.93 KiB) Viewed 125 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests