Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.
85.xx.93.xx
The program 'mailx' is currently not installed.  You can install it by typing:
sudo apt-get install mailutils

Thanks!

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

2 Answers 2

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 127.0.0.1 25 
share|improve this answer

Your Answer

 
discard

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.