- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sending Mail from HP Server
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
тАО05-26-2005 07:20 PM
тАО05-26-2005 07:20 PM
Sending Mail from HP Server
I need a samm help. I am having two HP servers running 11.11. I want to know how can I send the mail to a perticular email the reports which generated thru scripts.
Can any body give me the step for configuring the same.
Consider the fllowing
server name: PRD
email id : user@testltd.com
Rgds
Dinu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 07:58 PM
тАО05-26-2005 07:58 PM
Re: Sending Mail from HP Server
Stf ;-)
- Tags:
- sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 09:20 PM
тАО05-26-2005 09:20 PM
Re: Sending Mail from HP Server
Am getting the following error.
#echo test|sendmail -v user@testltd.com
WARNING: local host name (PRD) is not qualified; fix $j in config file
testltd.com: Name server timeout
user@testltd.com... Transient parse error -- message queued for future delivery
user@testltd.com... queued
Rgds
Dinu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 09:29 PM
тАО05-26-2005 09:29 PM
Re: Sending Mail from HP Server
Edit the /etc/mail/sendmail.cf file and put your host name after Dj with no spaces.you should specify the fqdn here.
Djprd.xyz.com
Also don't forget to include the Smart Relay host in the configuration file. It should specified in the DS macro., like
DSrelayhost.com
Make sure that these host names are getting resolved (either through /etc/hosts or through the DNS).
Regards,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 09:31 PM
тАО05-26-2005 09:31 PM
Re: Sending Mail from HP Server
After you make changes in the sendmail configuration file, don't forget to restart sendmail.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Regards,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 11:37 PM
тАО05-26-2005 11:37 PM
Re: Sending Mail from HP Server
Here are some examples:
Mail No attachment, body only -
mailx -m -s "Some Subject" somone@somewhere.com < file_for_email_body
Mail with attachement, no body -
ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com
Mail with attachment and body -
ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com < file_for_email_body
Mail with carbon and blind carbon -
mailx -m -s "Some Subject" somone@somewhere.com < file_for_email_body
(the file_for_email_body should look like this - )
~c someone_to_cc@somewhere.com
~b someone_to_bc@somewhere.com
The remainder of this file is the text body of the email.
Mail as another sender
echo "Hello" | mailx -m -s "Greeting" -r Santa.Claus@north_pole.com someone@somewhere.com
Mail with multiple attachments (The sentence "This is all you get." will appear as the body.)
mailx -m -s "Hello" someone@somewhere.com << END
`ux2dos /home/some_file | uuencode some_file.txt`
`ux2dos /home/some_other_file | uuencode some_other_file.txt`
This is all you get.
END
Is this enough? If you need more info, jut give some more input.
Cheerio,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 02:02 AM
тАО05-27-2005 02:02 AM
Re: Sending Mail from HP Server
There a a few ways you can mail attachments from the host. But some methods will cause your attachment to become part of the body of the email, and often that is not the desired result.
Here is url and within are pointers to others that give you a variety to choose from.
For myself....I'm a big fan of using the 'include' statement. We find it scripts up so nicely to send any kind of file as a true attachment (free).
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=198775
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 02:12 AM
тАО05-27-2005 02:12 AM
Re: Sending Mail from HP Server
Many tools can do this 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
тАО06-03-2005 01:53 AM
тАО06-03-2005 01:53 AM
Re: Sending Mail from HP Server
See whether it is using the local delivery agent or a relaying delivery agent . Check whether testltd.com is resolving in the server from where u r sending the mail . Do u have dns configured in the server from which u r sending the mail ?