Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Apr 23, 2019 5:14 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: unable to sent thold Alert Mail
PostPosted: Fri Jan 18, 2019 5:08 am 
Offline

Joined: Wed Jan 16, 2019 4:17 am
Posts: 3
Quote:
Test Email Results
Checking Configuration...
Method: SMTP
Creating Message Text...

This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.

Your email settings are currently set as follows

Method: SMTP
Device: smtp.office365.com
Port: 25
Authentication: true
Username: [email protected]
Password: (Not Shown for Security Reasons)
Security: tls
Ping Results: Bypassed


Sending Message...

Success!


The Text.Mail setting is ok


But the unable to sent thold Alert Mail
2019/01/18 15:15:07 - THOLD ERROR: Sending Email Failed. Error was Invalid address: (From): [email protected]
2019/01/18 15:15:07 - MAILER ERROR: Invalid address: (From): [email protected]




Cacti Ver: 1.2.0


Top
 Profile  
 
 Post subject: Re: unable to sent thold Alert Mail
PostPosted: Fri Jan 18, 2019 6:56 am 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 227
Location: Long Island, New York, USA
Try changing the sender email to the same one you used in the test email. It may be a mail server issue, rejecting the sender domain name.

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: unable to sent thold Alert Mail
PostPosted: Sun Jan 20, 2019 5:45 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
Office 365 will definitely not allow you send as Localhost. You need to properly define the systems sender address.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: unable to sent thold Alert Mail
PostPosted: Sun Jan 20, 2019 8:07 pm 
Offline

Joined: Wed Jan 16, 2019 4:17 am
Posts: 3
netniV wrote:
Office 365 will definitely not allow you send as Localhost. You need to properly define the systems sender address.



May i know how to define?

i haven't config postfix ?


Top
 Profile  
 
 Post subject: Re: unable to sent thold Alert Mail
PostPosted: Mon Jan 21, 2019 3:10 am 
Offline

Joined: Wed Jan 16, 2019 4:17 am
Posts: 3
Edit thold_functions.php

Code:
      if ($from_email == '') {
         if (isset($_SERVER['HOSTNAME'])) {
            $from_email = '[email protected]' . $_SERVER['HOSTNAME'];
         } else {
            $from_email = '[email protected]';
         }
      }


Fix


Top
 Profile  
 
 Post subject: Re: unable to sent thold Alert Mail
PostPosted: Mon Jan 21, 2019 5:26 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
If you are going to hard code it, there's not point having any of the IF statements. But there is a setting where that should be defined under Configuration -> Settings -> Thresholds (I think it is - not in front of my cacti install right now).

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group