Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
My Linux operating system is Ubuntu 10.10. I have a website with an online store developed in PHP ready to go into Production with the exception of being able to automatically send an email with the details of the order to the customer. The default and recommended send mail program for Ubuntu 10.10 is Postfix. According to the Postfix online manual, when Postfix is installed, it should work without changing any of the configuration files. But it hasn't worked even once for me, not even after uninstalling it, and re-installing it. I used the command 'sudo apt-get install postfix' in the Terminal window to install it initially, and that is a standard and correct syntax for Ubuntu 10.10. There was a display on the screen saying that Postfix was successfully installed. Also I successfully installed Apache2 successfully, and is working quite well for my test website. I have uninstalled postfix and re-installed it via the Synaptic Package Manager (SPM). I get the same result. The output in the /var/log/apache2/error.log file is 'sh: usr/sbin/postfix: not found'. To see what output I would get when I uninstalled Postfix, the output was the same. So, I am thinking that Postfix isn't working at all, even when it is properly and successfully installed.
The only other possible cause of this problem that I can think of is if some of the configuration values in etc/postfix/main.cf may need to be changed. I have searched the Internet extensively for help with this problem. Also I have spent about $50 on two books that have only a few pages each on Postfix, and they have not been any help. I simply can't seem to find enough information to help me resolve this problem.
Another possible factor of this problem is that I am not trying to set up a full-fledged server environment, such as example.com; my host provider will furnish the server. I am using 'localhost' as a test environment, and I have some confusion about how I need to use that in the Postfix configuration file. When initially installing Postfix, it asked for the domain name and hostname. Upon subsequent re-installations of Postfix, those values were not requested again, so I assume they remained the same. I think the domain name defaulted to '127.0.0.1', and I left it that way. The hostname originally defaulted to 'user-System-Product-Name', but I changed it to 'PC1HostName' for brevity, and to have a more meaningful name. If you know how to make Postfix work, I would immensely appreciate your help. I have copied and pasted the /etc/postfix/main.cf below since that is a very important file for Postfix.
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
Basically the postfix must have 'server name' and domain configured in main.cf, otherwise every mail server receiving emails from your server will 'defer' incoming emails from you. It has to be FQDN name properly set.