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
тАО01-20-2003 01:48 AM
тАО01-20-2003 01:48 AM
I would like to create a script which send a mail to my Windows account.I have a workstation in Win2000 and the HP servers have no domain.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 02:36 AM
тАО01-20-2003 02:36 AM
Re: Sendmail
sendmail bob@bob.com
where /tmp/textfile is the text to be sent. Alternatively you can specify a "To:" address in the first line of the textfile, and use the '-f' option of sendmail.
if you have not yet set up mail relaying, here are some starter posts,...
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1d93107d277ad611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfefda12d6d27d5118fef0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa8b014a24fd1d4118fef0090279cd0f9,00.html
This is a very big area to look at.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 02:54 AM
тАО01-20-2003 02:54 AM
Re: Sendmail
If you installed unix, I think in all variants sendmail gets installed as well. The important thing to do is to set your mailserver.
Just change in the /etc/mail/sendmail.cf you mailhost :
# "Smart" relay host (may be null)
DS
So f.e.:
DSsmtp.intern.company.nl
If you use your Windows machine here (must be a smart relay !!) There is another way to use some more advantage of sendmail :
----------------------
echo "From: $sender" > $TMP/file.$$
echo "To: $recepient" | /usr/bin/tr -cd '[\040-\176]' >> $TMP/file.$$
echo "" >> $TMP/start-mail.$$
echo "Subject: $subject" | /usr/bin/tr -cd '[\040-\176]' >> $TMP/file.$$
echo "" >> $TMP/start-mail.$$
echo "$message" | /usr/bin/tr -cd '[\040-\176]' >>/$TMP/file.$$
echo "\n." >>/$TMP/file.$$
cat $TMP/file.$$ - | /usr/lib/sendmail -odq -t
/bin/rm -f $TMP/start-mail.$$
-------------------------
This script allowes you to set your own sender adres, To adres, subject and message. Make sure you use the 'echo "\n."' This means it is the end of the message, but must start at the beginning of the new line. It works very nice.
If you need any more help, please let us know.
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 03:03 AM
тАО01-20-2003 03:03 AM
Re: Sendmail
Made a couple mistakes here :
1) TMP=/tmp
2) $$ is a standard for current process, so should not be defined. Leave it as it is.
3) the tr command converts bad characters
4) /bin/rm -f $TMP/start-mail.$$ should be :
/bin/rm -f $TMP/file.$$
5) I think it is clear that you must add your windows machine behind the DS, or your smart relay server. I didn't finish my sentence before I started a new subject.
Must be monday morning :)
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 05:37 AM
тАО01-20-2003 05:37 AM
Re: Sendmail
NIS map mail.aliases specified,but NIS not running:Socket operation on non socket.
I don't want to use NIS.
My user is on a winNT domain perhaps should i notice the DNS server addrs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 08:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 08:52 AM
тАО01-24-2003 08:52 AM
Re: Sendmail
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
тАО01-24-2003 09:05 AM
тАО01-24-2003 09:05 AM
Re: Sendmail
So here is an example of a nsswitch.conf for files only, which could help hopefully.