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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've installed debian woody running as my web server and I've just installed Postfix to act as the mail server. I'm having problems sending and receiving mail from within my mail client Thunderbird. I am using an external SMTP server at the minute to send mail and get:
My main.cf looks like this:
# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.
# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
I'm still having a few problems with DNS though. I can send and receive mail to and from me@mydomain.com but that is because I have the pop and smtp servers set to my internal IP address. Has anyone got any pointers to getting the DNS piece sorted. Links to detailed HowTos or FAQs or a detailed explanation here for a struggling newbie will be much appreciated !!
I'm not sure if I'm asking the right question here ....
My broadband router is allowing NAT which is also my DNS server, so I don't really need to set my mail server up as a DNS server. My domain is pointing to my IP address fine. I am able to e-mail from a totally different e-mail account, which is outside of my network, and I receive that mail when the pop server is set to 192.168.4.10.
I suspect there are some simple config files settings that will allow me to use my router as it's primary DNS server.
I'm really having trouble understanding how this setup will resolve DNS.
the howto above is definitely a great reference, and thorough too. I put together my own (small) DNS about a month ago and documented it as simply as I could, (I'm trying to do this for everything I set up)
it just walks through the very minimum of steps i took to get my own DNS up and running from a fresh SuSE installation. If you want to take a look (I can't promise its perfect) its written from a newbie (my) point of view. You can read it here:
If i understand you correctly - you are not receiving email from the outside world on your new email server is that correct? Not sure I understand correctly what you're asking? If that's the case I think its likely you need to run named and set up an MX 10 record to indicate the location of your mailserver to the outside world? Do I mis-understand?
not quite ... I do receive mail if sent to my e-mail address me@mydomain.org. But at the moment the pop server within my e-mail client, Thunderbird, is set to 192.168.4.10. So mail is getting all the way through from outside of my domain. But, if I set the pop server name to mail.mydomain.org instead of 192.168.4.10, I get nada, nothing.
Like the HowTo ! It's making sense .. I don't have a named running anywhere or a named.conf or /var/lib/named directory. I feel as though I am missing something. I'm running Debian Woody with apt-get available if that is any help.
I am running 3 machines .. the webserver/e-mail server/192.168.4.10 is separate from my other 2 PCs. It is running Debian and my other 2 PCs are running XP [ssshhh].
I've tried what you have suggested but I get this error when I start postfix
warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
I've amended them both but still get the error, so I think there might be something wrong here.
I've checked /etc/nsswitch.conf and it does have the line :
Keeping in mind I'm new to this also (anyone feel free to jump in here). What I was doing with the /etc/hosts file was essentially telling your linux box that it is named "mail.domain.com". Since you're using other machines on your network I don't think the quick and dirty hosts file modification is going to do the trick. You can keep 192.168.4.10 as your mailserver if you want to -- (and it works right?)
but if you want your internal network to be able to resolve 192.168.4.10 as mail.domain.net I think you're going to have to set up a small dns. The reason why you can't find "named" or any of the directories i mentioned earlier i think is likely because you don't have BIND installed on your host machine. the BIND package comes with the DNS server (named) which you'll have to run and configure to do this (per my earlier post).
Since I'm not really knowledgable on Debian (I use RPM's on SuSE) I can't give you good instructions on how to install BIND.... but I think you can find them here:
So simply put - get BIND installed, configure named, and start the named server. That's the 3 things you need to do (i think). Anyone else feel free to contradict me!
looking at that page - it should get BIND installed and started --- remember you still have to configure named with your information (ie. add a forward and reverse lookup database)
everything seemed to restart OK ... I am getting the mail into my server and it is sitting in /var/mail/steve ... but it still seems to be the same as before ..
If I set my pop server to 192.168.4.10 it comes through ... but when it is set to mail.mydomain.org it just sits there until I go back to 192.168.4.10.
I can feel it's just a short step away ! ;-)
Anymore help will be gratefully received - just a shame I can't offer a beer as thanks !
So sounds like you have BIND installed which is good. You're getting there quickly. There are some more steps for you to complete to get everything working properly.
First - check to make sure that your installation is working and your booted up running the DNS server 'named'
to do so type the following in your shell:
ps -C named
Its should spit out what process named is running -- this is good and means it is running. if it comes back blank or without mentioning named then you don't have your named server running. If this is the case (named is not running) stop here and try to start it. In SuSE 9.2 the command is 'rcnamed start' which spits out some-on screen text confirming that named did begin. Reading through the article you installed from - you may have to type: '/etc/init.d/bind9 start' which should do the same thing. then do another 'ps -C named' and see if its running
Assuming you've got it going now you need to configure to your network entries. Right now, you see, your DNS is only running a 'cache' server which doesn't help you alot (it mirrors whats already out there on the internet). So you have to ADD your own records to make named work for you. So what do you do:
create a forward lookup database
create a rev lookup database
edit named.conf to refer to these databases (create your zones) which hold the name -- ip address information for your network
to do this follow step #2 at this site here. if the directory /var/lib/named doesn't exist go ahead and create it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.