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

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: MAILER WARNING: Mail failed from...
PostPosted: Tue Jan 22, 2019 11:23 am 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
Since installing 1.2.1, I am recieving the following error:

Quote:
22/Jan/2019 08:15:04 - REPORTS generate_report, Problems sending Report 'pfSense Interface Report'. Problem with e-mail Subsystem Error is 'You must provide at least one recipient email address.'
22/Jan/2019 08:15:04 - MAILER WARNING: Mail failed from 'Cacti Graphics Systems <[email protected]********.***>', to '', cc '', Subject 'pfSense Weekly Interface Report', Message: You must provide at least one recipient email address.


In settings, section Mail/Reporting/DNS, I have mail services set to SMTP. SMTP settings configured, etc... STMP on the target server works, tested numerous ways. As such, I've set mail services to Sendmail and my report is mailed to the specified recipient email address.

Please note, I had this specific report enabled since version 1.2.0 and it worked fine. Other than the actions performed by Cacti updating my DB, configuration has not changed.

Perhaps I'm missing a hard coded option somehwere? maybe in config.php? While I'm perfectly fine with leaving the option set to sendmail, i think i'd like help in resolving this.

Thanks!

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Tue Jan 22, 2019 12:25 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
I spoke too soon. After switching from STMP to sendmail, the mailer worked once w/o error, then the MAILER WARNING appeared again.

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Tue Jan 22, 2019 12:51 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
The error is quite simple, it believes you are attempting to send an email to no recipients. Check the report has some defined.

_________________
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: MAILER WARNING: Mail failed from...
PostPosted: Tue Jan 22, 2019 12:55 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
I realize what the error message means. I have a recipient configured. Like I said, it worked once, then quit.

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Tue Jan 22, 2019 3:27 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
can someone else confirm this for me...

Cacti is failing to send email when there is a plus sign in the recipient email address, in my case, [email protected]. If that's the only recipient defined, mail will not be sent out. If there are more than one recipients defined, mail is sent out only to recipients without the plus sign in the email address.

Thanks

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Wed Jan 23, 2019 2:21 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
That would be a bug if true but often +'s are converted to spaces if including in URL's. Can you check your database to see if the recipient is actually saved with the + not a space?

_________________
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: MAILER WARNING: Mail failed from...
PostPosted: Wed Jan 23, 2019 3:55 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
Yes, both email addresses, settings_test_email in the settings table and email in the reports table, are saved with plus sign.

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Wed Jan 23, 2019 4:54 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
OK, I'll see if I can replicate. If you want to open a bug for this, feel free to do so on GitHub https://github.com/cacti/cacti/issues

Be sure to include all the details you've found so far including the saved values containing the correct info.

_________________
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: MAILER WARNING: Mail failed from...
PostPosted: Wed Jan 23, 2019 5:00 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
very well then. i'll do that momentarily. thank you for your help.

as a side note, if the Test Email setting, in Cacti Settings (Mail/Reporting/DNS), is set to email with plus sign, "send a test email" fails as well.

I opened this issue: https://github.com/Cacti/cacti/issues/2339

If i've left out any details, please let me know.

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Sun Apr 21, 2019 12:21 pm 
Offline

Joined: Sun Apr 21, 2019 12:15 pm
Posts: 4
Hello everyone

I'm still facing this issue. I'm using version 1.2.3 and the message In the log once a threshold is triggered the notification cannot be sent due to "You must provide at least one recipient email address" However, the test email works. I also figured out that notification doesn't work with php7.3-fpm so I had to downgraded it to php7.0-fpm.

I'm not a noob in Cacti, I've been using it since version 0.82. Does someone has a solution for it?

Thank you very much in advance, best regards.

Oswaldo.


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Mon Apr 22, 2019 7:10 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
On the threshold, do you have either a notification list or a specific email address setup against the threshold? If not, that would account for the error. If you do, then it may be that the validation matching for the email address isn't working but that is less likely.

_________________
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: MAILER WARNING: Mail failed from...
PostPosted: Mon Apr 22, 2019 10:57 am 
Offline

Joined: Sun Apr 21, 2019 12:15 pm
Posts: 4
netniV wrote:
On the threshold, do you have either a notification list or a specific email address setup against the threshold? If not, that would account for the error. If you do, then it may be that the validation matching for the email address isn't working but that is less likely.


Hi, I only have specific email address, I don't have any notification list because is useless for me. I'm the only one who should receive an alert.


Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Mon Apr 22, 2019 11:14 am 
Offline

Joined: Sun Apr 21, 2019 12:15 pm
Posts: 4
I just created "just in case" a Notification List in order to discard a problem with the specific mail address field and the result is exactly the same. Please look at the log screenshot.


Attachments:
Capture.PNG
Capture.PNG [ 15.43 KiB | Viewed 13 times ]
Top
 Profile  
 
 Post subject: Re: MAILER WARNING: Mail failed from...
PostPosted: Tue Apr 23, 2019 5:52 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2401
Which version of thold are you using? What are your email settings configured to? Can you provide a screenshot of that specific threshold's email settings too? Also, make sure you don't have more than one threshold for the same alert, as that could be confusing things if there is.

_________________
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: MAILER WARNING: Mail failed from...
PostPosted: Tue Apr 23, 2019 2:51 pm 
Offline

Joined: Sun Apr 21, 2019 12:15 pm
Posts: 4
netniV wrote:
Which version of thold are you using? What are your email settings configured to? Can you provide a screenshot of that specific threshold's email settings too? Also, make sure you don't have more than one threshold for the same alert, as that could be confusing things if there is.


Hi

I'm using thold version 1.2.4 which I guess is the latest one.

Attachment:
Thold.PNG
Thold.PNG [ 13.88 KiB | Viewed 2 times ]


Herein my smtp settings. Related with this, I know that the parameters are OK because I receive the test message without problem.

Attachment:
SMTP.PNG
SMTP.PNG [ 29.24 KiB | Viewed 2 times ]


And the threhold's email settings. As you can see, I'm using notification list. In the notification list there is only one email address.

Attachment:
emailAlert.PNG
emailAlert.PNG [ 28.34 KiB | Viewed 2 times ]


I don't have more than one threshold for the same alert.

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 9 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