MAILER WARNING: Mail failed from...

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

Moderators: Developers, Moderators

xdracco
Posts: 42
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

MAILER WARNING: Mail failed from...

Post by xdracco »

Since installing 1.2.1, I am recieving the following error:
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 <cacti+reports@********.***>', 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() { return 42; }
xdracco
Posts: 42
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: MAILER WARNING: Mail failed from...

Post by xdracco »

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() { return 42; }
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

Post by netniV »

The error is quite simple, it believes you are attempting to send an email to no recipients. Check the report has some defined.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
xdracco
Posts: 42
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: MAILER WARNING: Mail failed from...

Post by xdracco »

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() { return 42; }
xdracco
Posts: 42
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: MAILER WARNING: Mail failed from...

Post by xdracco »

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, ubuntusv+orion@mydomain.com. 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() { return 42; }
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

Post by netniV »

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?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
xdracco
Posts: 42
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: MAILER WARNING: Mail failed from...

Post by xdracco »

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() { return 42; }
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
xdracco
Posts: 42
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: MAILER WARNING: Mail failed from...

Post by xdracco »

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() { return 42; }
osaumet
Posts: 7
Joined: Sun Apr 21, 2019 12:15 pm

Re: MAILER WARNING: Mail failed from...

Post by osaumet »

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.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
osaumet
Posts: 7
Joined: Sun Apr 21, 2019 12:15 pm

Re: MAILER WARNING: Mail failed from...

Post by osaumet »

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.
osaumet
Posts: 7
Joined: Sun Apr 21, 2019 12:15 pm

Re: MAILER WARNING: Mail failed from...

Post by osaumet »

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 7501 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
osaumet
Posts: 7
Joined: Sun Apr 21, 2019 12:15 pm

Re: MAILER WARNING: Mail failed from...

Post by osaumet »

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.
Thold.PNG
Thold.PNG (13.88 KiB) Viewed 7490 times
Herein my smtp settings. Related with this, I know that the parameters are OK because I receive the test message without problem.
SMTP.PNG
SMTP.PNG (29.24 KiB) Viewed 7490 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.
emailAlert.PNG
emailAlert.PNG (28.34 KiB) Viewed 7490 times
I don't have more than one threshold for the same alert.

Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests