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 recently taken ownership of a sever which hosts multiple websites.

For some reason, when the websites send notification emails (i.e - when a contact form is submitted) the email received comes from a personal Gmail account.

I am trying to get to the bottom of this, but am having difficulty. How do I find out which email mosdule is installed on my server? How do I stop the emails being routed through the Gamil account? Which is the best email module I need to install to send php emails?

Interestingly, when I SSH into my server I see the following message:

No mail.
The program 'mailx' is currently not installed.  You can install it by typing:
sudo apt-get install mailutils


share|improve this question
Are you sure that e-mails really "come from" that gmail account? Check the headers of the e-mail to see where the mail is really coming from. – Christoph Eicke Aug 1 '13 at 19:05

If the email is being sent when a form is submitted from a web page, then the FROM address is most likely set in the code of the web page.

Begin your investigation in the websites code.

share|improve this answer

How to detect which email/MTA server is installed?

Check your SMTP server greeting message.

telnet 25 
share|improve this answer

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.