- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- send error messages to my company email
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
05-18-2004 08:09 PM
05-18-2004 08:09 PM
Could anybody show me how to configure the HP-UX 11 sendmail to email me in my company email if there are errors in the HP server. We have a separate server for our email.
Your help is highly appreciated.
Thank you very much.
Karl
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:14 PM
05-18-2004 08:14 PM
Re: send error messages to my company email
Check this link for the latest support tools.
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6191AAE
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:18 PM
05-18-2004 08:18 PM
SolutionAdd the following to the /etc/mail/sendmail.cf file
# "Smart" relay host
DSmsexchange (msexchange is your exchange server name)
Save the file.
The domain name should be included in the /etc/resolv.conf file
domain mydomain.com
nameserver 192.168.1.2
nameserver 192.168.1.3
Sendmail daemon will forward the mail to the exchange server.
Then restart the sendmail daemon
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
Now, you can edit /etc/mail/aliases
# System Admistration aliases
root : youremail@domain.com
Re-initialize the alias database,
# sendmail -bi
Now all alert to root should be sent to your email box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:40 PM
05-18-2004 08:40 PM
Re: send error messages to my company email
We are using Lotus Notes Release 5.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:51 PM
05-18-2004 08:51 PM
Re: send error messages to my company email
# sendmail -v yourname@domain.com < /etc/hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 09:40 PM
05-18-2004 09:40 PM
Re: send error messages to my company email
I trued testing it using
sendmail -v yourname@domain.com < /etc/hosts
It worked. Now I'll just wait for an error to confirm if it would really send an error message to my company email.
Is there a way to simulate an error so that I will confirm if it really sends a report to my company email?
Thank you very much for your help.
Karl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 02:38 PM
05-19-2004 02:38 PM
Re: send error messages to my company email
Thanks for your reply. I have noticed an error in our mail.log:
=======================================================================================
May 20 04:16:55 oradev sendmail[17642]: EAB17642: to=root, delay=00:00:06, xdelay=00:00:00, mailer=relay, relay=celen.pasar.net.p
h.pasar.net.ph, stat=Host unknown (Name server: celen.pasar.net.ph.pasar.net.ph: host not found)
May 20 04:17:09 oradev sendmail[17642]: EAA17642: Saved message in /var/tmp/dead.letter
May 20 10:10:46 oradev sendmail[27199]: gethostbyaddr(192.168.42.237) failed: 1
=======================================================================================
As you may notice, the hostname has 2 domain name attached to it.. The hostname should only be celen.pasar.net.ph and not celen.pasar.net.ph.pasar.net.ph. Where do you think the problem came from?
Thanks again.
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 02:47 PM
05-19-2004 02:47 PM
Re: send error messages to my company email
To do a test to send the host file to root:
# mail root < /etc/hosts
Does it work?
regards tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 02:55 PM
05-19-2004 02:55 PM
Re: send error messages to my company email
==========================================
May 20 10:57:03 oradev sendmail[28698]: KAB28698: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=celen.pasar.net.ph.pasar.net.ph, stat=Host unknown (Name server: celen.pasar.net.ph.pasar.net.ph: host not found)
May 20 10:57:03 oradev sendmail[28698]: KAA28698: Saved message in /var/tmp/dead.letter
===========================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:01 PM
05-19-2004 03:01 PM
Re: send error messages to my company email
As you mentioned it works before, does it work now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:02 PM
05-19-2004 03:02 PM
Re: send error messages to my company email
may i know what is in /etc/resolv.conf, /etc/hosts and /etc/nsswitch.conf for your server?
if it is not convenient, u may like to extract to this post only the line where the affected dns, i.e. celen.pasar.net.ph.pasar.net.ph is found.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:05 PM
05-19-2004 03:05 PM
Re: send error messages to my company email
# nslookup celen.pasar.net.ph.pasar.net.ph
# nslookup celen.pasar.net.ph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:07 PM
05-19-2004 03:07 PM
Re: send error messages to my company email
Yes it works. Here is the output of the comand.
===================================
[root@oradev] /etc/rc.config.d # sendmail -v kmareyes@pasar.net.ph kmareyes@pasar.net.ph... Connecting to mail.pasar.net.ph. via esmtp...
220 celen.pasar.net.ph ESMTP Service (Lotus Domino Build 166.1) ready at Thu, 20 May 2004 11:10:54 +0800
>>> EHLO oradev.pasar.net.ph
250-celen.pasar.net.ph Hello oradev.pasar.net.ph ([192.xxx.xx.xxx]), pleased to meet you
250-HELP
250-SIZE
250 PIPELINING
>>> MAIL From:
250 root@oradev.pasar.net.ph... Sender OK
>>> RCPT To:
250 kmareyes@pasar.net.ph... Recipient OK
>>> DATA
354 Enter message, end with "." on a line by itself
>>> .
250 Message accepted for delivery
kmareyes@pasar.net.ph... Sent (Message accepted for delivery)
Closing connection to mail.pasar.net.ph.
>>> QUIT
221 celen.pasar.net.ph SMTP Service closing transmission channel
=====================================
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:12 PM
05-19-2004 03:12 PM
Re: send error messages to my company email
Here are the result of the commands
# nslookup celen.pasar.net.ph.pasar.net.ph
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "celen.pasar.net.ph.pasar.net.ph"
# nslookup celen.pasar.net.ph
Trying DNS
Name: mail.pasar.net.ph
Address: 192.xxx.xxx.xxx
Aliases: celen.pasar.net.ph
thanks again,
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:19 PM
05-19-2004 03:19 PM
Re: send error messages to my company email
Im sorry i cant show you the ip address. I just replaced it with xxx.
/etc/resolv.conf,
domain pasar.net.ph
nameserver <192.xxx.xxx.xxx>
/etc/hosts
127.0.0.1 localhost loopback
192.xxx.xxx.xxx celen celen.pasar.net.ph
/etc/nsswitch.conf
We do not have nsswitch.conf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:20 PM
05-19-2004 03:20 PM
Re: send error messages to my company email
# nslookup yourdomain.com
or
# nslookup
>set type=mx
>yourdomain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:32 PM
05-19-2004 03:32 PM
Re: send error messages to my company email
# nslookup pasar.net.ph
Name Server: ns.pasar.net.ph
Address: 192.xxx.xxx.xxx
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "pasar.net.ph"
# nslookup
Default Name Server: ns.pasar.net.ph
Address: 192.xxx.xxx.xxx
> set type=mx
> pasar.net.ph
Name Server: ns.pasar.net.ph
Address: 192.xxx.xxx.xxx
Trying DNS
pasar.net.ph preference = 10, mail exchanger = mail.pasar.net.ph
pasar.net.ph nameserver = ns.pasar.net.ph
mail.pasar.net.ph internet address = 192.xxx.xxx.xxx
ns.pasar.net.ph internet address = 192.xxx.xxx.xxx (different from the ip address above).
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:37 PM
05-19-2004 03:37 PM
Re: send error messages to my company email
now, let us look at your /etc/mail/sendmail.cf file.
search for Dj$w.Foo.COM, it should be either be commented or replace by (in your case),
Dj$w.pasar.net.ph
and for DS, it should be
DScelen.pasar.net.ph
now for /etc/mail/sendmail.cw file. do you have the following:
localhost
oradev
oradev.pasar
oradev.pasar.net
oradev.pasar.net.ph
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:50 PM
05-19-2004 03:50 PM
Re: send error messages to my company email
I have already updated the sendmail.cf file. Below is the content of the sendmail.cw file
==============================
localhost
loopback
localhost
oradev
oradev.pasar
oradev.pasar.net
oradev.pasar.net.ph
===============================
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 05:11 PM
05-19-2004 05:11 PM
Re: send error messages to my company email
afterwhich, do this to restart:
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
regards.