Operating System - HP-UX
1825775 Members
2127 Online
109687 Solutions
New Discussion

howto send a mail from shell using local installed postfix ?

 
SOLVED
Go to solution
'chris'
Super Advisor

howto send a mail from shell using local installed postfix ?

hi

howto send a test mail from shell (Konsole) using local installed postfix ?

kind regards
chris
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: howto send a mail from shell using local installed postfix ?

echo "Message" mailx -s "important maail" someone@your.netowrk

elm will do just fine and has an easier to use interface.

X Windows has additional tools, but these are merely front ends.

sendmail/postfix is the default email transmport for HP-UX.

You need connectivity to get the mail through.

/etc/resolv.conf
/etc/nsswitch.conf

host resolution is key unless you use mail relay.

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
Steven E. Protter
Exalted Contributor

Re: howto send a mail from shell using local installed postfix ?

0 for this, Seriously Chris.

Correcting my post

echo "Message" | mailx -s "important maail"
someone@your.netowrk

Missed the pipe command.

Duh. Sunday, too much time spent splitting wood like Paul Bunyan.

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
'chris'
Super Advisor

Re: howto send a mail from shell using local installed postfix ?

thanks SEP

it works perfectly !

greetings
chris
'chris'
Super Advisor

Re: howto send a mail from shell using local installed postfix ?

knows someone, howto put from to change the sender address
using this command:

echo "Message" | mailx -s "important mail" someone@your.netowrk