Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
petercheunghk
Posts: 3 Joined: Wed Jan 16, 2019 4:17 am
Post
by petercheunghk » Fri Jan 18, 2019 5:08 am
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:
demo@idemo.com
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): Cacti@localhost
2019/01/18 15:15:07 - MAILER ERROR: Invalid address: (From): Cacti@localhost
Cacti Ver: 1.2.0
camerabob
Cacti User
Posts: 386 Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:
Post
by camerabob » Fri Jan 18, 2019 6:56 am
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.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4
Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3441 Joined: Sun Aug 27, 2017 12:05 am
Post
by netniV » Sun Jan 20, 2019 5:45 am
Office 365 will definitely not allow you send as Localhost. You need to properly define the systems sender address.
petercheunghk
Posts: 3 Joined: Wed Jan 16, 2019 4:17 am
Post
by petercheunghk » Sun Jan 20, 2019 8:07 pm
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 ?
petercheunghk
Posts: 3 Joined: Wed Jan 16, 2019 4:17 am
Post
by petercheunghk » Mon Jan 21, 2019 3:10 am
Edit thold_functions.php
Code: Select all
if ($from_email == '') {
if (isset($_SERVER['HOSTNAME'])) {
$from_email = 'Cacti@' . $_SERVER['HOSTNAME'];
} else {
$from_email = 'xxxx@xxxx.com';
}
}
Fix
netniV
Cacti Guru User
Posts: 3441 Joined: Sun Aug 27, 2017 12:05 am
Post
by netniV » Mon Jan 21, 2019 5:26 am
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).
Users browsing this forum: No registered users and 1 guest