1849269 Members
5280 Online
104042 Solutions
New Discussion

HP-UX Mail Use

 
SOLVED
Go to solution
VICBUR1507
Frequent Advisor

HP-UX Mail Use

Hi Guys,
I trying to test mi hp ux system email but i not sure that I doing ok i tiping:
mail xxxx@xxx.com
subject TEST
Test email

¿How Send the email?
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: HP-UX Mail Use

Shalom,

Perhaps first configure sendmail, the default MTA, Mail Tranport Agent on HP-UX.

In a corporate environment you need to configure sendmail.cf to relay mail to a mail relay server.

DShostname_of_mail_relay_server

or

DS
[192.168.0.10]
# IP address of the mail relay server.

The second configuration does not require DNS to work to get mail moving.

/sbin/init.d/sendmail start
#starts the sendmail daemon
Starting this daemon is not strictly necessary.

Diagnosis:
tail -f /var/adm/syslog/mail.log

See whats happening with the mail

Mail script:
http://www.hpux.ws/mailfile2

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: HP-UX Mail Use

HI:

Now type CTL_D to single an eof (end-of-file).

You can also do:

# mailx -s "TEST" xxx@yyy.com "Test Email"

Regards!

...JRF...
Robert-Jan Goossens_1
Honored Contributor

Re: HP-UX Mail Use

Hi,

vi /tmp/test
test mail
wq

# mailx -s "Test mail" xxxx@xxx.com < /tmp/test

Regards,
Robert-Jan
Ganesan R
Honored Contributor

Re: HP-UX Mail Use

Hi,

Just following the below simple steps is not enough for the mail to reach receipient.

You should have relay server to send out the mail.

#mailx username@abc.com
Subject:Test mail
This is a test mail
.
EOT
Best wishes,

Ganesh.
VICBUR1507
Frequent Advisor

Re: HP-UX Mail Use

thanks guys