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
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
What MTA are you using? Sendmail? Postfix? Exim? Qmail? Courier?
# alternatives --config mta
There are 2 programs which provide 'mta'.
Selection Command ----------------------------------------------- *+ 1 /usr/sbin/sendmail.sendmail 2 /usr/sbin/sendmail.postfix
but I shutdown both them, I install kerio mailserver system as MTA, and listen on port 25.
----- Original Message ----- From: "Barry Brimer" lists@brimer.org To: "CentOS mailing list" centos@centos.org Sent: Tuesday, February 24, 2009 2:17 PM Subject: Re: [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
What MTA are you using? Sendmail? Postfix? Exim? Qmail? Courier? _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Kerio has it's own admin interface that deals with these sort of problems, did you install it?
Per
On 2/24/09 8:07 AM, "Xia Guowen" xiagw@51poi.com wrote:
# alternatives --config mta
There are 2 programs which provide 'mta'.
Selection Command
*+ 1 /usr/sbin/sendmail.sendmail 2 /usr/sbin/sendmail.postfix
but I shutdown both them, I install kerio mailserver system as MTA, and listen on port 25.
----- Original Message ----- From: "Barry Brimer" lists@brimer.org To: "CentOS mailing list" centos@centos.org Sent: Tuesday, February 24, 2009 2:17 PM Subject: Re: [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
What MTA are you using? Sendmail? Postfix? Exim? Qmail? Courier? _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
But, I shutdown Kerio and config MTA = sendmail. Then # service sendmail start # hostname mail.domain11.com # echo "test " | mail -s "test mail" someone@domain22.com
I received is root@mail.domain11.com
HOW?
regards
----- Original Message ----- From: "John R Pierce" pierce@hogranch.com To: "CentOS mailing list" centos@centos.org Sent: Tuesday, February 24, 2009 3:29 PM Subject: Re: [CentOS] Mail from domain problem
Per Qvindesland wrote:
Kerio has it's own admin interface that deals with these sort of problems, did you install it?
and, this is a Kerio configuration problem, not a CentOS problem. Take it up with Kerio. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Xia Guowen wrote:
But, I shutdown Kerio and config MTA = sendmail. Then # service sendmail start # hostname mail.domain11.com # echo "test " | mail -s "test mail" someone@domain22.com
I received is root@mail.domain11.com
with sendmail, you need to set some configuration options to masquerade the host if you want locally submitted mail to be 'from' the domain name.
typically, in /etc/mail/sendmail.mc, the line...
MASQUERADE_AS(`mydomain.com')
then run `make` in that directory. for this to work correctly, you need to install the sendmail-cf package
with any other mail client, its similar.
Thanks for the information,
I have tried, but still "hostname" not "domain"
# cd /etc/mail # grep MASQUERADE senmail.mc MASQUERADE_AS(`domain11.com') # make # service sendmail restart # echo test | mail -s "test mail" someone@domain22.com # tailf /var/log/maillog
Feb 24 15:56:44 centos4 sendmail[5742]: n1O7uigw005742: from=root@centos4.domain11.com, size=378, class=0, nrcpts=1, msgid=200902240756.n1O7uiuZ005741@centos4.domain11.com, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
regards
----- Original Message ----- From: "John R Pierce" pierce@hogranch.com To: "CentOS mailing list" centos@centos.org Sent: Tuesday, February 24, 2009 4:19 PM Subject: Re: [CentOS] Mail from domain problem
Xia Guowen wrote:
But, I shutdown Kerio and config MTA = sendmail. Then # service sendmail start # hostname mail.domain11.com # echo "test " | mail -s "test mail" someone@domain22.com
I received is root@mail.domain11.com
with sendmail, you need to set some configuration options to masquerade the host if you want locally submitted mail to be 'from' the domain name.
typically, in /etc/mail/sendmail.mc, the line...
MASQUERADE_AS(`mydomain.com')
then run `make` in that directory. for this to work correctly, you need to install the sendmail-cf package
with any other mail client, its similar. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Good, Solution:
# vi /etc/mail/sendmail.mc
add this line : EXPOSED_USER(`Mailer-Daemon')
# cd /etc/mail # make # service sendmail restart
Thanks John R Pierce , A. Kirillov
----- Original Message ----- From: "John R Pierce" pierce@hogranch.com To: "CentOS mailing list" centos@centos.org Sent: Tuesday, February 24, 2009 4:19 PM Subject: Re: [CentOS] Mail from domain problem
Xia Guowen wrote:
But, I shutdown Kerio and config MTA = sendmail. Then # service sendmail start # hostname mail.domain11.com # echo "test " | mail -s "test mail" someone@domain22.com
I received is root@mail.domain11.com
with sendmail, you need to set some configuration options to masquerade the host if you want locally submitted mail to be 'from' the domain name.
typically, in /etc/mail/sendmail.mc, the line...
MASQUERADE_AS(`mydomain.com')
then run `make` in that directory. for this to work correctly, you need to install the sendmail-cf package
with any other mail client, its similar. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Yes,but fail.
# grep 'EXPOSED_USER' /etc/mail/sendmail.mc EXPOSED_USER(`')dnl # cd /etc/mail # make # service sendmail restart # echo "test" | mail -s "test mail" someone@domain22.com # tail /var/log/maillog Feb 24 16:42:24 centos4 sendmail[6013]: n1O8gOYq006013: from=root@centos4.domain11.com, size=378, class=0, nrcpts=1, msgid=200902240842.n1O8gOCH006012@centos4.domain11.com, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
----- Original Message ----- From: "A. Kirillov" nevis2us@infoline.su To: "CentOS mailing list" centos@centos.org Sent: Tuesday, February 24, 2009 5:20 PM Subject: Re: [CentOS] Mail from domain problem
But, I shutdown Kerio and config MTA = sendmail. Then # service sendmail start # hostname mail.domain11.com # echo "test " | mail -s "test mail" someone@domain22.com
I received is root@mail.domain11.com
HOW?
With sendmail try to remove root from EXPOSED_USER list.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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