Page 1 of 1

Email Settings nuisance

Posted: Tue Aug 20, 2013 2:15 pm
by waydms
Hey everyone!

New to this system and have some novice Linux experience. My manager proposed that we look into Nagios for our network monitoring and here I am!
I've already gotten a virtual PC running of the latest NagiosXI (standard). Created a couple of users, checked around some settings, etc. Before adding devices, I would like to setup email for my notifications.

I've tried some settings on my own with no luck. Continues to tell me "SMTP Error: Could not connect to SMTP host.".
Mail log states the same. I believe it's attempting to search for an MX that doesn't exist.

We do not host our own mail servers and use Office 365 for that. Attempted the server pod******.outlook.com, port 587, TLS with proper user/pwd with no luck and same error. Kind of blind as to what to try next. Any thoughts?

Thank you for your efforts on this! :D

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 2:28 pm
by sreinhardt
First things first, are you using contacts or users within XI? Secondly can you confirm that your ISP allows you to send outbound on 587? Something like "nmap -p 587 pod******.outlook.com" Should show as Open for you. Thirdly, please run an "nslookup pod******.outlook.com" and verify that the IP address is resolving and returning correctly.

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 2:43 pm
by waydms
Alrighty, let's go down the list...

1. Users. Checked the contacts.cfg and they were properly set to my knowledge and review.
2. It should be allowed. Detailed in About section of OWA server settings.
4. Ran both commands in the terminal and received the following...

[root@localhost /]# nmap -p 587 pod*****.outlook.com

Starting Nmap 5.51 ( http://nmap.org ) at 2013-08-20 15:25 EDT
Failed to resolve given hostname/IP: pod*****.outlook.com. Note that you can't
use '/mask' AND '1-4,7,100-' style IP ranges.
WARNING: No targets were specified, so 0 hosts scanned.
[root@localhost /]# nslookup pod*****.outlook.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached

Ran the same commands from my Windows machine and received that the port is open, multiple server addresses and all the lovely information as usual.

Thought on this for a second and it never dawned on me to attempt to just ping Google or something familiar. Did so and it cannot find the host at all. Checked my resolv.conf and it is pulling all correct DNS servers, internal and external.
It is talking perfectly fine internal so thinking that Virtual PC is causing some problems for it to talk to the outside?
Please tell me I'm not just going on and on, Hah!
Will check into some settings in the meantime while this reply sits.

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 3:37 pm
by abrist
Definitely looks like dns or route issues. Try pinging the ip of an external site like google (as pinging the dns name is not currently working):

Code: Select all

ping 173.194.46.39

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 4:08 pm
by waydms
Now can access the interwebz.
Just receiving those Dave errors, Hah.
Checked the network and ifcfg-eth0 files and corrected any mistakes or missing info.
Doing some timezone work now.
Will let everyone know once I've verified the email settings!

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 4:17 pm
by sreinhardt
Cool, for a second I wasn't sure if you actually ran the commands with *** glad to see you are progressing forward, and definitely let us know if issues arise!

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 4:42 pm
by waydms
Don't worry sreinhardt 8-)
Used the suggested ntp command in the Nagios FAQ/Wiki to correct Dave errors.
Everything is working with the pod*****.outlook.com settings.
Appreciate the quick responses from everyone.

Re: Email Settings nuisance

Posted: Tue Aug 20, 2013 4:45 pm
by sreinhardt
Awesome, I will close this up then and you are most welcome!