Page 1 of 2

Unable to send emails to Company network

Posted: Thu Sep 27, 2012 2:19 pm
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,

Re: Unable to send emails to Company network

Posted: Thu Sep 27, 2012 5:16 pm
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

Re: Unable to send emails to Company network

Posted: Mon Oct 01, 2012 11:40 am
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

Re: Unable to send emails to Company network

Posted: Mon Oct 01, 2012 12:00 pm
by scottwilkerson
You can set the domain name with the domainname command from the commandline
eg

Code: Select all

domainname yourdomain.com

Re: Unable to send emails to Company network

Posted: Mon Oct 01, 2012 12:59 pm
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.

Re: Unable to send emails to Company network

Posted: Mon Oct 01, 2012 4:38 pm
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.

Re: Unable to send emails to Company network

Posted: Thu Oct 04, 2012 11:21 am
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,

Re: Unable to send emails to Company network

Posted: Thu Oct 04, 2012 12:07 pm
by scottwilkerson
You are setting this is Admin -> Manage Email Settings correct?

If so can you post your notifications report.

Thanks

Re: Unable to send emails to Company network

Posted: Thu Oct 04, 2012 12:15 pm
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,

Re: Unable to send emails to Company network

Posted: Thu Oct 04, 2012 12:36 pm
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