Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have server which is hosting few websites. When user fills form on a website I get it from root@webserver instead from mail which belongs to the hosted website. How can I check why is this happening?
Webserver is running RedHat 5 linux.

share|improve this question
Give us a clue - what is sending the mail - Java? PHP? Perl? Is it invoked over CGI? FastCGI? What is the MTA? How is it configured? – symcbean May 3 '12 at 9:34
@symcbean I'm using php script and MTA being used is Qmail – Celestin May 3 '12 at 10:10

You need to configure the mail server (which is the software actually doing the delivery) to re-write the mail headers for you. The default mail program for Red Hat 5 is Sendmail but you can easily use Postfix instead (I find postfix easier to configure especially if you are new to mail servers).

To change the name after the @ you need to use the masquerading configuration options. See the documentation for how to do this (or do some Google-ing) but I recommend reading up on how mail servers work a little first.

share|improve this answer
I have just checked other sites and it seems that they are working fine, only one is still showing root@servername instead of e-mail which user provided when filling web form. – Celestin May 3 '12 at 10:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.