Unable to send Test mail

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

Moderators: Developers, Moderators

Post Reply
samtos
Posts: 5
Joined: Mon May 07, 2018 10:59 am

Unable to send Test mail

Post by samtos »

Please help. This is the error I get when trying to send Test Email. Thank you so much.
Sending Message...

ERROR: Unable to connect to SMTP Host 'smtp.gmail.com': (13) Permission denied
Unable to connect to SMTP Host 'smtp.gmail.com': (13) Permission denied
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Unable to send Test mail

Post by camerabob »

I have Verizon for an ISP. They block using any other mail service but their own (via AOL mail) from sending SMTP traffic. Many other carriers have adopted this approach to email, even though it has been secured. Look at your ISP's terms and conditions to see if this too is the case with your service.

See this thread: viewtopic.php?f=21&t=58573
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
samtos
Posts: 5
Joined: Mon May 07, 2018 10:59 am

Re: Unable to send Test mail

Post by samtos »

Thanks for your reply. Everything is fine from my ISP. I have changed and used several providers same error.
Please any further ides of how this can be resolved. Thank you so much
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Unable to send Test mail

Post by camerabob »

What are your Gmail settings? Erase the email address portion in the reply. Also, test from an email client. If it works there, it should work from Cacti. The test button may not work (if you saw my post), but trigger an error and see if you get the email alert. I did.
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

Re: Unable to send Test mail

Post by netniV »

samtos wrote:Thanks for your reply. Everything is fine from my ISP. I have changed and used several providers same error.
Please any further ides of how this can be resolved. Thank you so much
Please clarify how you know/believe everything to be fine with your ISP. Simply saying it should be fine doesn't make it so and even if they haven't notified you directly of the SMTP block/redirection, it can still be occurring. In addition to that, if you have any form of firewall or AV between the cacti process and SMTP server, you should ensure that they are allowing SMTP through as well. A lot don't because they class it as spam used by malicious people.
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
samtos
Posts: 5
Joined: Mon May 07, 2018 10:59 am

Re: Unable to send Test mail

Post by samtos »

Ok, thank you so much. I will have them check this again.
samtos
Posts: 5
Joined: Mon May 07, 2018 10:59 am

Re: Unable to send Test mail

Post by samtos »

So, confirmed, the IP obtained is valid and ok. I sent a test from CLI: "python3 sendmail.py" and it came through but from the GUI..web browser > setting > Mail/DNS , I am unable to send a test mail.
Thank you.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Unable to send Test mail

Post by netniV »

Aside from the username/password what settings did you use in the python mail?
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
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Unable to send Test mail

Post by camerabob »

samtos wrote:So, confirmed, the IP obtained is valid and ok. I sent a test from CLI: "python3 sendmail.py" and it came through but from the GUI..web browser > setting > Mail/DNS , I am unable to send a test mail.
Thank you.
I have two Cacti installs. The test email works on one system and fails in the second. The second (my primary of course) also is unable to PING any devices in the setup, where it had some time back. I don't know what changed, but when a device fails due to the inability to pull SNMP data, I still get the notification, I just am unable to use the test email button. The script Netniv wrote and posted at the end of the linked thread above DID work. Same script, just with some debugging enabled. Go figure. Like I said earlier, change an IP in a device to cause it to fail, wait the polling time and see if you do get notifications. Chances are it will work.
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
samtos
Posts: 5
Joined: Mon May 07, 2018 10:59 am

Re: Unable to send Test mail

Post by samtos »

Ok thank you so much.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests