Unable to send emails to Company network

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
manish2tiwari
Posts: 31
Joined: Thu Sep 13, 2012 12:48 pm

Unable to send emails to Company network

Post by manish2tiwari »

Hi Friends,

When i am trying to send email to my company's email address i am unable to receive the mails, but it is working when i am trying to send the mail alerts to gmail.

My company's outlook uses normal internet proxy to get the mails and i am able to access it using any internet connection.

I have checked my junk mails also but there also i am not receiving anything.

Do i have to make any configuration change so that i can receive the emails in my outlook.

thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to send emails to Company network

Post by scottwilkerson »

Do you have your hostname specified on the Nagios XI server?

Often mail server will reject mail with a hostname of "localhost"

Outside of this I would look at the maillog to see if you can see the rejection

Code: Select all

tail -f /var/log/maillog
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
manish2tiwari
Posts: 31
Joined: Thu Sep 13, 2012 12:48 pm

Re: Unable to send emails to Company network

Post by manish2tiwari »

hi Scott,

Is there anyway i can set a domain name for my nagios XI server in VMware machine.

I can see some settings by system-config-network command but not sure if that is the place to update smtp domain.

By using tail -f /var/log/maillog command, i can see the rejection as HOst or domain name not found.

thanks
Manish
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to send emails to Company network

Post by scottwilkerson »

You can set the domain name with the domainname command from the commandline
eg

Code: Select all

domainname yourdomain.com
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
manish2tiwari
Posts: 31
Joined: Thu Sep 13, 2012 12:48 pm

Re: Unable to send emails to Company network

Post by manish2tiwari »

can i use any domain name in command line and then use that name only as the smtp host? or i have to provide proper smtp host in the email settings.

I have tried both but it didnt work.

also is there any preference to use between sendmail or smtp technique.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to send emails to Company network

Post by scottwilkerson »

Generally using authenticated SMTP is the best method but you do need to make sure that you have the correct credentials and SMTP port.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
manish2tiwari
Posts: 31
Joined: Thu Sep 13, 2012 12:48 pm

Re: Unable to send emails to Company network

Post by manish2tiwari »

Hi All,

I have tried giving smtp server names and authentication but still not able to break it. Do i need to do any other configuration in .cfg files or sendmail.mc files.

I have tried them also but something i am missing here. :roll:

Thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to send emails to Company network

Post by scottwilkerson »

You are setting this is Admin -> Manage Email Settings correct?

If so can you post your notifications report.

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
manish2tiwari
Posts: 31
Joined: Thu Sep 13, 2012 12:48 pm

Re: Unable to send emails to Company network

Post by manish2tiwari »

yes i am using Amin> manage Email settings option.

As soon as i send a test mail it says: Sent successfull.

Attached is my maillog.

Thanks,
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to send emails to Company network

Post by scottwilkerson »

Ok, this error looks like the DNS server on the Nagios XI machine doesn't know how to resolve your domain...

Can you run the following on your Nagios XI machine

Code: Select all

nslookup adidas-group.com
dig adidas-group.com mx
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked