Hello,
My linux machine have two domain names:
1. a bogus domain name: lion.mydomain.home, and
2. a real domain name: mydomain.com.
I created zone files for both of the domains, and they both have
entries in named.conf, so they all work well. My headache is about
Apache. When submit a form mail from any of the web sites hosted on my
machine, Apache will always pick up the "apache@lion.mydomain.home" as
the sender's address, though in my script I did put in a "From:
user<user.TakeThisOut@website.com>" field in mail header, and in sent message it
does have such a field in the header. If a mail was sent to a local
user, that's OK no error. If sent to an address outside of the
machine, it will be refused. The refused mail can be found at
/var/spool/mqueue, and in the top line of the mail there's a error msg
saying "MDeferred: 450 <apache.TakeThisOut@lion.mydomain.home>: Sender address
rejected: Domain not found".
So I am thinking that if there's a way to have Apache to pick up the
real domain for sender's address, or just change the machine's default
name. My skill is more on the development side rather than admin side,
so I need help to get rid of such a headache. Please give me a hand.
Thanks in advance!
Alex Shi
>> Stay informed about: Help - apache don't use right domain name form mail sender..