MAILER WARNING: Mail failed from...

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

Moderators: Moderators, Developers

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

MAILER WARNING: Mail failed from...

#1 Post by xdracco » Tue Jan 22, 2019 11:23 am

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 <[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() { return 42; }

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

Re: MAILER WARNING: Mail failed from...

#2 Post by xdracco » Tue Jan 22, 2019 12:25 pm

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: 3048
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

#3 Post by netniV » Tue Jan 22, 2019 12:51 pm

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

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

Re: MAILER WARNING: Mail failed from...

#4 Post by xdracco » Tue Jan 22, 2019 12:55 pm

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: 38
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: MAILER WARNING: Mail failed from...

#5 Post by xdracco » Tue Jan 22, 2019 3:27 pm

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() { return 42; }

netniV
Cacti Guru User
Posts: 3048
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

#6 Post by netniV » Wed Jan 23, 2019 2:21 pm

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?

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

Re: MAILER WARNING: Mail failed from...

#7 Post by xdracco » Wed Jan 23, 2019 3:55 pm

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: 3048
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

#8 Post by netniV » Wed Jan 23, 2019 4:54 pm

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.

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

Re: MAILER WARNING: Mail failed from...

#9 Post by xdracco » Wed Jan 23, 2019 5:00 pm

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...

#10 Post by osaumet » Sun Apr 21, 2019 12:21 pm

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: 3048
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

#11 Post by netniV » Mon Apr 22, 2019 7:10 am

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.

osaumet
Posts: 7
Joined: Sun Apr 21, 2019 12:15 pm

Re: MAILER WARNING: Mail failed from...

#12 Post by osaumet » Mon Apr 22, 2019 10:57 am

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...

#13 Post by osaumet » Mon Apr 22, 2019 11:14 am

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 739 times

netniV
Cacti Guru User
Posts: 3048
Joined: Sun Aug 27, 2017 12:05 am

Re: MAILER WARNING: Mail failed from...

#14 Post by netniV » Tue Apr 23, 2019 5:52 am

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.

osaumet
Posts: 7
Joined: Sun Apr 21, 2019 12:15 pm

Re: MAILER WARNING: Mail failed from...

#15 Post by osaumet » Tue Apr 23, 2019 2:51 pm

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 728 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 728 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 728 times
I don't have more than one threshold for the same alert.

Thank you

Post Reply