in /etc/postfix/main.cf , set myorigin=$mydomain and not as $myhostname.

 


From: Xia Guowen <xiagw@51poi.com>
To: centos@centos.org
Sent: Tuesday, February 24, 2009 2:07:38 PM
Subject: [CentOS] Mail from domain problem


Hi,
 
    I installed a CentOS 4.7 server, the system information is:
 
# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mail.domain11.com  
 
# hostname
mail.domain11.com
 
#echo "test " | mail -s "test mail" someone@domain22.com
 
I would like to receive mail is root@domain11.com, but I received is root@mail.domain11.com
 
 
 
How to correct it?
 
(I've tested there is no problem in CentOS 5.2)
 
Best regards