Unable to send emails to Company network
-
manish2tiwari
- Posts: 31
- Joined: Thu Sep 13, 2012 12:48 pm
Unable to send emails to Company network
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,
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
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
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-
manish2tiwari
- Posts: 31
- Joined: Thu Sep 13, 2012 12:48 pm
Re: Unable to send emails to Company network
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
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
You can set the domain name with the domainname command from the commandline
eg
eg
Code: Select all
domainname yourdomain.com-
manish2tiwari
- Posts: 31
- Joined: Thu Sep 13, 2012 12:48 pm
Re: Unable to send emails to Company network
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.
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
Generally using authenticated SMTP is the best method but you do need to make sure that you have the correct credentials and SMTP port.
-
manish2tiwari
- Posts: 31
- Joined: Thu Sep 13, 2012 12:48 pm
Re: Unable to send emails to Company network
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.
Thanks,
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.
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
You are setting this is Admin -> Manage Email Settings correct?
If so can you post your notifications report.
Thanks
If so can you post your notifications report.
Thanks
-
manish2tiwari
- Posts: 31
- Joined: Thu Sep 13, 2012 12:48 pm
Re: Unable to send emails to Company network
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,
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
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
Can you run the following on your Nagios XI machine
Code: Select all
nslookup adidas-group.com
dig adidas-group.com mx