Configuring CACTI email alerts on Ubuntu 15.04

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
prodigy1984
Posts: 5
Joined: Mon Jul 04, 2016 9:14 am

Configuring CACTI email alerts on Ubuntu 15.04

Post by prodigy1984 »

Hi all,

Im a newbie to Cacti & Ubuntu. just finished installing cacti and trying to get the email alerts to work.
so far ive tried both the PHP Mail() Function & SMTP but both fail at the test.

SMTP throws the following error;
SMTP Host does not appear to support authenication: 503 5.5.1 Error: authentication not enabled

PHP gives me this error;
Unable to send email with php mail function, check your system logs

i am using an external email provider that uses port 587 for outgoing emails.

Really appreciate your help in trying to get this to work.
i'm attaching my settings page.

thanks,
Kevin
Attachments
settings page
settings page
Settings.JPG (141.2 KiB) Viewed 1898 times
prodigy1984
Posts: 5
Joined: Mon Jul 04, 2016 9:14 am

Re: Configuring CACTI email alerts on Ubuntu 15.04

Post by prodigy1984 »

Hi Guys,

i managed to fix this so here's what i did in case anyone else has the same problem.

sudo apt-get install postfix

if you want to use gmail with php mailer add the following lines;

sudo nano /etc/postfix/main.cf

relayhost = [smtp.gmail.com]:587
# enable SASL authentication
smtp_sasl_auth_enable = yes
# disallow methods that allow anonymous authentication.
smtp_sasl_security_options =
# where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# Enable STARTTLS encryption
smtp_use_tls = yes
smtp_always_send_ehlo = yes
# where to find CA certificates
#smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt


sudo nano /etc/postfix/sasl_passwd
smtp.gmail.com myaddress@gmail.com:password

sudo postmap /etc/postfix/sasl_passwd

sudo /etc/init.d/postfix restart

to stop the email going into spam do the following;
sudo nano /etc/php5/apache2/php.ini and set
sendmail_path = '/usr/sbin/sendmail -t -i -fmyemail@mydomain -Fno-reply'
sudo service apache2 restart
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest