<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3527" name=GENERATOR>
<STYLE>
<!--
                       
 font-face
        {font-family:"Cambria Math";}
font-face
        {font-family:Calibri;}
font-face
        {font-family:Tahoma;}
font-face
        {font-family:"Trebuchet MS";}
font-face
        {font-family:Verdana;}
                        
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
p
        {
        margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {
        font-family:"Trebuchet MS","sans-serif";
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {
        font-size:10.0pt;}

div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-ZA vLink=purple link=blue>
<DIV id=idOWAReplyText48296 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>HI</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Thanks allot I will try options.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Rgds</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>nitin</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> redhat-sysadmin-list-bounces@redhat.com on behalf of Colin van Niekerk<BR><B>Sent:</B> Thu 5/7/2009 6:43 PM<BR><B>To:</B> redhat-sysadmin-list@redhat.com<BR><B>Subject:</B> RE: from address using maill command<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi there,</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">You can use sendmail options when using the mail command by adding a ‘--’ after the normal mail command options and then adding the sendmail options you need, as follows:</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">echo “body of the mail” | mail -s “subject” destination@address.com -- -f source@address.com -F “Sender’s Full Name”</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Cheers</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Colin</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> redhat-sysadmin-list-bounces@redhat.com [mailto:redhat-sysadmin-list-bounces@redhat.com] <B>On Behalf Of </B>nitin.gizare@wipro.com<BR><B>Sent:</B> 07 May 2009 02:42 PM<BR><B>To:</B> redhat-sysadmin-list@redhat.com<BR><B>Subject:</B> from address using maill command</SPAN></P></DIV></DIV>
<P class=MsoNormal> </P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS','sans-serif'">HI</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS','sans-serif'"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS','sans-serif'">We have requirement of sending automated warning mail with from address option using  “mail “ command </SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS','sans-serif'">By default it comes with user@hostname.</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Can some body help? .</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS','sans-serif'"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Verdana','sans-serif'">Rgds</SPAN><SPAN lang=EN-US style="COLOR: navy"></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Verdana','sans-serif'">Nitin</SPAN><SPAN lang=EN-US></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US></SPAN> </P></DIV></DIV></BODY></HTML>