LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2012, 04:51 AM   #1
trungmv
Member
 
Registered: Apr 2012
Posts: 36

Rep: Reputation: 0
Use sendmail in Cacti to sending email


Hi all,

I install cacti on CentOS 5.7, and everything seem to fine.
Now, i want to use sendmail to sending email instead of PhP Mail or SMTP.
How to configure sendmail to do that?
what i need to do? what account will be used to sending email when threshold is breach?
How to change email account local on Cacti when sending email?
Any help is appreciated,

Best regards,

Last edited by trungmv; 04-26-2012 at 04:56 AM.
 
Old 04-26-2012, 01:04 PM   #2
raj47
Member
 
Registered: Jan 2011
Posts: 47

Rep: Reputation: 2
Wink

Hi,

Never heard of Cacti with sendmail or postfix

How do you configure the Php mail or SMTP with Cacti

thanks
Raj
 
Old 04-26-2012, 11:15 PM   #3
trungmv
Member
 
Registered: Apr 2012
Posts: 36

Original Poster
Rep: Reputation: 0
Hi,

With Cacti, i has 3 function to sending email:
http://nl5.upanh.com/b4.s26.d2/e2168...5.function.jpg
With each function i met each issue.

Case1: Using PhP mail() Function.
- only sending to gmail, yahoo mail account, without user@abc.com(my email account Exchange)
- I checking the mail log on server:
Code:
q3N8jEPs024087: to=<user@abc.com>, ctladdr=<cactiuser@localmachine.domain> (502/502), delay=00:00:11, xdelay=00:00:02, mailer=esmtp, pri=214885, relay=mail.domain. [IP address's Email server], dsn=2.0.0, stat=Sent (Message accepted for delivery)
--> never received.

Case2:SMTP function
- Setting: http://nl8.upanh.com/b2.s29.d1/a0364...77518.smtp.jpg
- Testing: http://nl9.upanh.com/b3.s26.d1/e7bbc...9.smtptest.jpg --> Seem to fine and received email from press "Send a Test Email" on right top.
- But when breach threshold is never received any email

Case3:Sendmail Function
- Do not know how to configure to sending mail when threshold.

This is all log from my mail log:
Code:
q3R4PDPD001914: from=cactiuser, size=45264, class=0, nrcpts=2, gid=<201204270425.q3R4PDPD001914@machine.localdomain>, relay=cactiuser@localhost

q3R4PDVV001917: from=<cactiuser@machine.localdomain>, size=45480, class=0, nrcpts=2, msgid=<201204270425.q3R4PDPD001914@machine.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

q3R4PDPD001914: to=user@abc.com,user@gmail.com, ctladdr=cactiuser (502/502), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=105264, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q3R4PDVV001917 Message accepted for delivery)

STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128

q3R4PDVV001917: to=<account@gmail.com>, ctladdr=<cactiuser@machine.localdomain> (502/502), delay=00:00:08, xdelay=00:00:08, mailer=esmtp, pri=195480, relay=gmail-smtp-in.l.google.com. [173.194.79.26], dsn=2.0.0, stat=Sent (OK 1335500721 j10si5544796pbd.354)

q3R4PDVV001917: to=<user@abc.com>, ctladdr=<cactiuser@machine.localdomain> (502/502), delay=00:00:11, xdelay=00:00:03, mailer=esmtp, pri=195480, relay=relay=mail.domain. [IP address's Email server], dsn=2.0.0, stat=Sent (Message accepted for delivery)
Any help is appreciated


Best regards,

Last edited by trungmv; 04-26-2012 at 11:35 PM.
 
Old 04-28-2012, 01:57 AM   #4
raj47
Member
 
Registered: Jan 2011
Posts: 47

Rep: Reputation: 2
STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL

please check this tell me what you feel

thanks
Raj
 
Old 04-28-2012, 02:22 AM   #5
trungmv
Member
 
Registered: Apr 2012
Posts: 36

Original Poster
Rep: Reputation: 0
Hi,

I still received email via account gmail.
But email will be stored on Spam folder,

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail - not sending email to outside. Blash Linux - Networking 2 05-03-2007 05:09 AM
sendmail not sending or receiving email kaplan71 Linux - Software 1 12-20-2005 08:26 AM
sending email from a script without sendmail tangle Linux - Networking 1 12-06-2005 01:32 AM
Sending email to a smtp address through sendmail guilmetrp Linux - General 0 02-27-2004 08:02 PM
Automatic email sending with sendmail? Stingreen Linux - General 10 04-15-2002 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration