|
|
 |
« on: April 14, 2009, 11:51:12 AM » |
|
Hey again!
Now that things have been cooking, I've been running through the process necessary to setup alerts and other fun things! I've been having a lot of fun with it - and it's really easy to get up and going...
But I am (as I've said before) really new to a lot of this.
I am having trouble getting e-mails setup to work. I've got the alerts setup, and it tells me it's firing and e-mail off when the alert hits, but I receive nothing in my e-mail I have it sending to.
I have looked at the documentation and can't find anywhere that I'm going wrong...
Is there anywhere in particular I should check? Or anywhere that might help me in order to get these working?
Again - this is a very 'default' type install...
|
|
|
|
« Last Edit: November 11, 2009, 09:40:36 AM by raul »
|
Logged
|
|
|
|
|
|
|
 |
« Reply #1 on: April 14, 2009, 11:59:25 AM » |
|
Did you fill out the MTA parameters in /etc/pandora/pandora_server.conf ?
In the alert setup in the webconsole...did you put your email at the "field1"? Remember: field1 -> email field2 -> subject of the email field3 -> email's body
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #2 on: April 14, 2009, 12:55:33 PM » |
|
I filled out some of the MTA parameters:
I left: mta_address localhost and entered an e-mail in mta_from
I also put the appropriate information in the webconsole fields.
I installed sendmail on the server, and have left it with default settings. Is there further configuration needed there in order to work with pandora?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #3 on: April 14, 2009, 01:24:04 PM » |
|
What do you get if you do: echo "test" | mail -s "test subject" your@email.com
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #4 on: April 14, 2009, 02:00:15 PM » |
|
The first time I got:
The program 'mail' can be found in the following packages: *heirloom-mailx *mailutils Try: apt-get install
So I added both of them.
When I did it again after installing the packages - I got received no error, but the e-mail did not go anywhere (that I could see)
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #5 on: April 14, 2009, 10:40:53 PM » |
|
Cool, now take a look at /var/log/mail.log (or similar) to see if the email is being sent. Are you sure your ISP or your mail server is not blocking it? Can be a relay issue?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #6 on: April 16, 2009, 07:31:08 AM » |
|
Apr 16 09:48:16 ubuntu2 sm-mta[24645]: n3GEmGT5024645: from= , size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Apr 16 09:53:21 ubuntu2 sm-mta[24736]: n3GErLkK024736: ruleset=check_rcpt, arg1=, relay=localhost [127.0.0.1], reject=553 5.1.8 ... Domain of sender address xxxx@recyclingit.com does not exist Apr 16 09:53:21 ubuntu2 sm-mta[24736]: n3GErLkK024736: lost input channel from localhost [127.0.0.1] to MTA-v4 after rcpt Apr 16 09:53:21 ubuntu2 sm-mta[24736]: n3GErLkK024736: from=, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Apr 16 09:57:43 ubuntu2 sm-mta[24788]: n3EMCEm1007808: to=, ctladdr= (0/0), delay=1+16:45:29, xdelay=00:00:00, mailer=esmtp, pri=22170494, relay=recyclingit.com, dsn=4.0.0, stat=Deferred: Connection timed out with recyclingit.com Apr 16 09:57:43 ubuntu2 sm-mta[24788]: n3ELvtn8007471: to=, ctladdr= (0/0), delay=1+16:59:48, xdelay=00:00:00, mailer=esmtp, pri=22260494, relay=recyclingit.com, dsn=4.0.0, stat=Deferred: Connection timed out with recyclingit.com
This is the what I see in the mail.log file. I think it probably is what you said about the relay issue somehow...
I imagine there's probably a config file or something that I need to update with corrected information or something in order to resolve some of the setup of the mail server (I installed it, but have not run any config for it, nor do I know where to find it).
If you know where I could look to see the configs of it - that'd be helpfull, otherwise I'll be digging around and will report back :-D
Thanks again for continuing to work with a newb such as myself :-D
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #7 on: April 16, 2009, 08:27:55 AM » |
|
I'm working my way through this tutorial now to setup a mail server properly: http://flurdy.com/docs/postfix/
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #8 on: April 17, 2009, 02:53:41 AM » |
|
Add this in the pandora_server.conf mta_from email@yourdomain.comThis parameter lets you specify the sender of the emails sent by Pandora Server Try to put an email an domain that might not be rejected by your mail server Do not forget to restart the server after adding it.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #9 on: April 17, 2009, 11:02:36 AM » |
|
I had added that already to the pandora_server.conf
I'm sure it's something going on here that I simply lack the knowledge to understand or see. I have done some of the tests on the postfix install page and it generates an e-mail on the localhost machine, so I can tell it's working.
It's getting it to integrate with our network I think that's causing the rub somewhere... i'm not sure how or why at this point...
But again - I appreciate your helping me on this issue. I'll keep on diggin :-D
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #10 on: April 17, 2009, 11:49:28 AM » |
|
Not that this has anything to do with the e-mails - but...
I have noticed that for some reason the agents have stopped sending information to the server - I now have unknown monitors. The monitor that uses SSH has been down for a few days, the others (tentacle) have went down in the past day and have yet to come back up.
This has happened before and after a while they automatically come back to life, but this time the outage seems to be taking some time - is there something I can check to see what might be going on?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #11 on: April 17, 2009, 11:59:36 AM » |
|
The email issue: The alert is actually being fired right? You can see it in the webconsole? Put the pandora_agent.conf verbosity 10, validate the alert and wait till the alert is fired again, go to /var/log/pandora/pandora_agent.log Can you see there a line saying the alert has been fired and "Executing command..."?
The agents stuff: Windows agents?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #12 on: April 17, 2009, 12:08:16 PM » |
|
I'm sorry - yes windows agents.
And with reference to the log - most recent thing in the pandora_server.log is: Alert executed for agent XXXXXX
The alerts are working - they are showing up in the webconsole, and they're stating the e-mail was sent. I'm sure it's something to do with the setup of my server somehow (again, i am still very new to linux)
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #13 on: April 17, 2009, 12:18:16 PM » |
|
Try to restart the windows agents Try to send an email using telnet, if you don't know how to do it, just do this: telnet IP_YOU_HAVE_IN_PANDORA_AGENT.CONF 25 you will get something like: 220 servername do: ehlo servername once the server replies write exactly what I wrote here (hit enter at the end of each sentence: mail from: pandora@whatever.comrcpt to: youremail@domain.comdata (hit enter) test . (write this ".") and hit enter, this means you're finishing the email and the server can try to send it Take a look at your inbox, did you get it?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #14 on: April 17, 2009, 12:28:36 PM » |
|
I was wondering...if you already have a mail server, why don't you use it to send the emails? Just complete: mta_user, mta_pass and mta_auth with your server data and Pandora will use that server to send emails
|
|
|
|
|
Logged
|
|
|
|
|
|