Solved

Cahnging to Localhost

Posted on 2003-12-03
3
353 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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 …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now