- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to send mails
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
07-10-2002 11:28 AM
07-10-2002 11:28 AM
How to send mails
I want to send a mail from my server RP7410
to e-mail address.
What are the configuration files ?
I have up the sendmail daemon and HP-UX
version 11i.
Thank
Rolando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 11:51 AM
07-10-2002 11:51 AM
Re: How to send mails
TO send mail:
mail username@mailserver.com
message body here
more body here
and more
until you have a line with just a PERIOD on it
like below
.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 11:52 AM
07-10-2002 11:52 AM
Re: How to send mails
for i in `echo filename1 filename2 filename3 ...`
do
uuencode $i $i.txt
done|mailx -m -s "test" username@whereever.com
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 11:56 AM
07-10-2002 11:56 AM
Re: How to send mails
/etc/mail/aliases - raw data for alias names
/etc/mail/aliases.db - data base of alias names
/etc/mail/sendmail.cf - configuration file
/usr/share/lib/sendmail.hf - help file
/etc/mail/sendmail.st - collected statistics
/var/spool/mqueue/* - mail queue files
/etc/mail/sendmail.pid - The process id of the daemon
/etc/mail/sendmail.cw - The list of all hostnames that are recognized as local, which causes sendmail to accept mail for these hosts and attempt local delivery
/etc/nsswitch.conf - configuration file for the name-service switch
These are taken from the man page in case you were wondering. You may have further questions on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 11:57 AM
07-10-2002 11:57 AM
Re: How to send mails
#mailx -s
Type the message....
Once you have done enter dot (.)
#echo "
#mailx -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 11:58 AM
07-10-2002 11:58 AM
Re: How to send mails
the line that starts with DS in /etc/mail/sendmail.cf and restart sendmail to send mail to the outside of your domain.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 05:23 AM
07-11-2002 05:23 AM
Re: How to send mails
(Note: this is for 11.00 I assume it is the same for 11i)
1) vi /etc/mail/sendmail.cf
Change Dj$w.Foo.COM
To Dj$w.acme.com (or whatevery your domain name is)
2) get smtp access to your email server (e.g. mailsvr1) i.e. if there is a firewall between your HP box and the mail server open port 25
3) vi /etc/mail/sendmail.cf (same file as step 1)
Change DS
to DS mailsvr1.acme.com
4) stop and start sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
5) Send in body of e-mail
mailx -s 'Subject line' ron.gordon@bellnexxia.com
# To send as an attachment
#/usr/bin/uuencode /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 06:05 AM
07-11-2002 06:05 AM
Re: How to send mails
Best wishes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 06:11 AM
07-11-2002 06:11 AM
Re: How to send mails
First Configure sendmail on your system. Try this link from hp docs on basic steps on configuring sendmail,
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/35-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/35-toc.html&searchterms=sendmail&queryid=20020711-071933
To send an email from the system to an email address, if you have sendmail configured, try
cat some_file_name |mailx -s "email subject" your_internet_email_address
Hope this helps.
Regds