- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to setup to send emails from HP/UX 11 to w...
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
10-11-2004 03:00 PM
10-11-2004 03:00 PM
How to setup to send emails from HP/UX 11 to windows 2000
I'm just new to HP/UX . Can you help me how to setup an emails in HP/UX 11. What I want to know is that everytime I backup my files in tape, i want the unix notify me if its successful or not thru emails.
Thanks In advance,
Ferdie Banu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 03:10 PM
10-11-2004 03:10 PM
Re: How to setup to send emails from HP/UX 11 to windows 2000
backupscript | mailx -s "backup report" youremail@your.net
That will email the output
Same thing works great in cron.
On a basic level, mailx will do the job.
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
10-11-2004 06:35 PM
10-11-2004 06:35 PM
Re: How to setup to send emails from HP/UX 11 to windows 2000
also have a look at the following thread to get idea of what configuration tasks that you also have to perform...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=348576
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=70999
hope this helps too!
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 08:18 PM
10-11-2004 08:18 PM
Re: How to setup to send emails from HP/UX 11 to windows 2000
Here's what I do...
Firstly check out the script (I'm sure there's loads of improvements that could be made, but it works for me).
Firstly, add area5.cgs.com (this is the domain for my Exchange server) to /etc/mail/sendmail.cf:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
Changed to:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.area5.cgs.com
The following lines were added to /etc/mail/aliases:
# Local aliases
gcooper : gcooper@ntserver.area5.cgs.com
hdavies : hdavies@ntserver.area5.cgs.com
arazieh : arazieh@ntserver.area5.cgs.com
Rebuild the alias database:
# newaliases
/etc/mail/aliases: 10 aliases, longest 30 bytes, 199 bytes total
#
(Ntserver is my exchange server)
(Note the above e-mail addresses are fabricated, so they won't work if you try to use them).
Regards,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 09:09 PM
10-11-2004 09:09 PM
Re: How to setup to send emails from HP/UX 11 to windows 2000
-- /etc/resolv.conf ----
domain test.com
nameserver xx.xx.xx.xx
nameserver xx.xx.xx.xx
------------------------
xx.xx.xx.xx --> ip-address of nameserver 1,2
Change resolvation order on /etc/nsswitch.conf as,
hosts: dns files
Try to resolve hostname as,
nslookup hostname.domainname.domainextension
Example:
nslookup test.test.com
It has to resolved there.
If you are having an account named as banu then,
echo "hai" | mailx -s "Testmail from `hostname`" banu@test.com
It will send mails to your banu account mail client there.
Check backup results with their results / log files and with the success send mails there.
if [[ result success ]]
then
echo "Filename $file get backuped" | mailx -s "Backup Success on`hostname`" banu@test.com
elif [[ result failure ]]
then
echo "Filename $file did not get backuped" | mailx -s "Backup failure on`hostname`" banu@test.com
fi
Put this script on cron to automate or execute during your execution of backup there.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 09:14 PM
10-11-2004 09:14 PM
Re: How to setup to send emails from HP/UX 11 to windows 2000
just use mailx to get the desired output
Your_backup_script
.
.
.
output | mailx -s "Message"
Regards
Franky