<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>in /etc/postfix/main.cf , set myorigin=$mydomain and not as $myhostname.<br><br> <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Xia Guowen <xiagw@51poi.com><br><b><span style="font-weight: bold;">To:</span></b> centos@centos.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, February 24, 2009 2:07:38 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [CentOS] Mail from domain problem<br></font><br>

 
 
<style></style>

<div>
<div><br></div>
<div>Hi,</div>
<div> </div>
<div>
<div id="result_box" dir="ltr">    I installed a CentOS 4.7 server, 
the system information is:</div>
<div dir="ltr"> </div>
<div dir="ltr"># cat /etc/sysconfig/network</div>
<div dir="ltr"><font color="#0000ff">NETWORKING=yes<br>HOSTNAME=mail.domain11.com   
</font></div>
<div dir="ltr"> </div></div>
<div># hostname</div>
<div><font color="#0000ff">mail.domain11.com</font></div>
<div><font color="#0000ff"></font> </div>
<div>#echo "test " | mail -s "test mail" <a rel="nofollow">someone@domain22.com</a></div>
<div> </div>
<div>
<div id="result_box" dir="ltr" style="text-align: left;">
<div id="result_box" dir="ltr" style="text-align: left;">I would like to receive 
mail is <a rel="nofollow">root@domain11.com</a>, but I received is <a rel="nofollow">root@mail.domain11.com</a> </div>
<div dir="ltr" style="text-align: left;"> </div>
<div dir="ltr" style="text-align: left;">
<div id="result_box" dir="ltr" style="text-align: left;"> </div>
<div dir="ltr" style="text-align: left;"> </div>
<div dir="ltr" style="text-align: left;">How to correct it?</div>
<div dir="ltr" style="text-align: left;"> </div></div></div></div>
<div>(I've tested there is no problem in CentOS 5.2)</div>
<div> </div>
<div>Best regards</div>
<div> </div>
<div> </div></div></div></div></div><br>

      </body></html>