Solved

Cahnging to Localhost

Posted on 2003-12-03
3
358 Views
Last Modified: 2010-04-21
Hello,

THanks for reading our question.  We need to change the location of our mailserver from mail.domain.com to what we are being told is localhost.  How should we syntax this?  These are the lines of code we have:

$mail_program = "smtp";
$location_of_mail_program = "mail.doamin.com";

We were told to:

do a simple search for the mail server name in the script, and then change it to localhost.

But, we really don't know where to look or how to write it.  If these lines of code look like the likely ones, PLEASE would one of you help us to chage it to localhost.  If this is the wrong section, please indulge us this one time... our site has gone down.

Many thanks,

Yunkaa
0
Comment
Question by:yunkaa
3 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 9871364
It's hard to answer without having a little more information. What system are you running (which Linux distribution)? Which mail server software are you running on your machine? Where did you find the two lines that you quoted (which file)?

In order to change your mail server to "localhost", you have to run a server on your machine. This mail server needs to be configured correctly. If you do have a mailserver on your machine, you can try to change the mail.domain.com in the file you quoted to localhost:
$location_of_mail_program = "localhost";

But be prepared that this may not be all you need to change.
0
 

Author Comment

by:yunkaa
ID: 9871462
Seems like that did it!  Ha, ha... if ONLY life was so easy, too!  All we did was put localhost in the field, and... there it went.  MANY thanks.  That only took 12 hours of going back and forth with the admins at the hosting company who then... went HOME... grrrrr.... but not without leaving that little crumb, localhost.  So... we turned to YOU to confirm.  Lifesaving... thanks... :)))))
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9871690
khkremer is right can you provide more info for us?

what mail service you are using? sendmail? postfix? qmail? etc....

difference mail servic will have difference config file.

sendmail - /etc/mail/sendmail.cf or /etc/sendmail.cf

you need to change the mail.domain.com to localhost

etc...

so give us more detail
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question