- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Postfix or Nagios issue?
Operating System - HP-UX
1752777
Members
6136
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 05:59 PM
тАО04-04-2011 05:59 PM
Hi!
I am using postfix(sendmail) to send alerts from Nagios. Currently the box has a local account through which Nagios sends an alert(email) and it sends to the same userid(nagios), from nagiosuser---email-to--->nagiosuser.
nagiosuser has an alias which forwards mails to my personal company email account.
Going through the Nagios logs I am able to see that Nagios sent the alert but I havent been getting email alerts at all.
From commandline the mail is sent and also through Nagios sometimes I do get the email but not always.
How do I debug this issue and I am thinking of asking my email admin to see if they are filtering my emails in anyway from the nagiosuer. Is this a correct route?
Thanks,
Allan.
I am using postfix(sendmail) to send alerts from Nagios. Currently the box has a local account through which Nagios sends an alert(email) and it sends to the same userid(nagios), from nagiosuser---email-to--->nagiosuser.
nagiosuser has an alias which forwards mails to my personal company email account.
Going through the Nagios logs I am able to see that Nagios sent the alert but I havent been getting email alerts at all.
From commandline the mail is sent and also through Nagios sometimes I do get the email but not always.
How do I debug this issue and I am thinking of asking my email admin to see if they are filtering my emails in anyway from the nagiosuer. Is this a correct route?
Thanks,
Allan.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 09:44 PM
тАО04-04-2011 09:44 PM
Solution
First, when you see Nagios has sent an alert but you haven't received it, run "mailq" on the Nagios/Postfix box to see if the message is still in Postfix's outbound queue.
Possible reasons for not sending the message immediately could be:
- problems resolving the destination server name using DNS
- problems connecting to the destination server
Look in /var/mail/ and /var/mail/root. Are there delivery failure messages from MAILER-DAEMON? If so, these usually describe the problem rather thoroughly.
You should also read the mail logs (normally /var/adm/syslog/mail.log in HP-UX) to see where Postfix attempted to deliver the message and what was the result.
Has your Nagios/Postfix box been registered to your local DNS properly? For example, if you run "nslookup IP.of.Nagios.box" on any other system, do you get back the name of the Nagios box? Many spam filters will summarily discard any messages coming from mail servers that don't have a proper DNS registration.
When you successfully send a message from command line, look at the headers of the message (the "Internet headers" option in Outlook). The chain of "Received:" headers should tell you exactly which servers the message passed through on the way to your company email account. Sometimes mail servers add other information too: notifications like "(may be forged)" are not too good.
When you have all this information, you can make it easier for the mail administrator to track down what is happening to your messages.
MK
Possible reasons for not sending the message immediately could be:
- problems resolving the destination server name using DNS
- problems connecting to the destination server
Look in /var/mail/
You should also read the mail logs (normally /var/adm/syslog/mail.log in HP-UX) to see where Postfix attempted to deliver the message and what was the result.
Has your Nagios/Postfix box been registered to your local DNS properly? For example, if you run "nslookup IP.of.Nagios.box" on any other system, do you get back the name of the Nagios box? Many spam filters will summarily discard any messages coming from mail servers that don't have a proper DNS registration.
When you successfully send a message from command line, look at the headers of the message (the "Internet headers" option in Outlook). The chain of "Received:" headers should tell you exactly which servers the message passed through on the way to your company email account. Sometimes mail servers add other information too: notifications like "(may be forged)" are not too good.
When you have all this information, you can make it easier for the mail administrator to track down what is happening to your messages.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2011 08:27 PM
тАО04-06-2011 08:27 PM
Re: Postfix or Nagios issue?
Thanks MK for the detailed reply.
The issue is fixed as it turned out to be that I had to make postfix aware of the fact that the email was being sent locally so that it does not go out to the relay servers to find out that information which wasn't available.
The issue is fixed as it turned out to be that I had to make postfix aware of the fact that the email was being sent locally so that it does not go out to the relay servers to find out that information which wasn't available.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP