- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mail from one hp server to another ....
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
Discussions
Discussions
Forums
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
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
тАО04-29-2009 01:54 AM
тАО04-29-2009 01:54 AM
How can i set in hpuxserver such that if any problem occured in database a mail should be send from that server to another hpserver which is connected with that server.
For example how can i mail the mail automatically from /var/mail/root to another server when it created.
Thanking in advance.
waiting for your response.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 02:26 AM
тАО04-29-2009 02:26 AM
SolutionFirst thing you need to check is that the servers sendmail daemon is up and running. A server can send mail without sendmail running. It can not receive it.
vi /etc/rc.config.d/mailsvrs
See that the SENDMAIL start parameter is set to 1 for auto start. In general it is not these days.
/sbin/init.d/sendmail start
That manually starts the daemon.
Next you need simple name resolution at a minimum which can be /etc/hosts so that sendmail knows that mail addressed to server2 is supposed to go.
echo "Mail message | mailx -s "Subject" user@server2
This will be processed by sendmail and sent to the ip address that resolves server2 shortname on port 25. It will then be accepted by the server2 in this example if that resolves.
/etc/hosts resolution
192.168.0.20 server2
If /etc/resolv.conf has files as a resolution method, then the mail will travel this way.
nslookup server2
ping server2
If both tests work and the sendmail daemon is running on server2, you are in business.
Most IT shops have a mail relay server so that mail from unix servers can be routed into the actual mail system of the company, which often times is a Microsoft Exchange server.
sendmail is a demanding topic, but very fun to work with once mastered. For more information http://www.sendmail.org
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 08:42 PM
тАО04-29-2009 08:42 PM
Re: Mail from one hp server to another ....
Actually my question is,
"Is it possible to do that as if WHENEVER THE MAIL IS GENERATED in first server it should be transferred to the second one through the mail system?
If it possible what can i do for that?
Thanking in advance
vaishakh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 09:38 PM
тАО04-29-2009 09:38 PM
Re: Mail from one hp server to another ....
"Is it possible to do that as if WHENEVER THE MAIL IS GENERATED in first server it should be transferred to the second one through the mail system?
Which part are you having problems with? The detection of the problem or sending the mail?
Sending mail is as SEP said:
echo "Mail message | mailx -s "Subject" user@server2
Detection of the error is left to your DBA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 11:12 PM
тАО04-30-2009 11:12 PM
Re: Mail from one hp server to another ....
By usuing
echo "Mail message | mailx -s "Subject" user@server2
I send the mail to my second server (hostname=edb1). But after login to the second server i will not see the mail ..
can u please tell me in which path the mail will save.
After typing echo "Mail message | mailx -s "Subject" user@server2... it is showing area for message typing like,
>hai
>
>
after that how the mail will send "by clicking crtl+c"
Thanking in advance,
vaishakh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 08:21 AM
тАО05-01-2009 08:21 AM
Re: Mail from one hp server to another ....
Oops, sorry I copied a quoting problem:
echo "Mail message" | mailx -s "Subject" user@server2
You can either echo a short message.
Otherwise you can have it read from the stdin or a file:
mailx -s "Subject" user@server2 < file
mailx -s "Subject" user@server2
message
...
.
(A single "." to terminate.)
Or a here document:
mailx -s "Subject" user@server2 <
...
EOF
There are various interactive mailx commands.