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.
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
#mydomain = domain.tld
root@slackserver is the name of my server
but i have hhh.hopto.org that points to my ip on my server
what do i put in for these values?????
specifially the mydomain and myhostname
If you have to make additions to your post
before someone replied please use the edit-
button, otherwise I'll assume that you're just
Per the LQ Rules, please do not bump your own thread until at least 24 hours have elapsed without a reply. Because the LQ membership is global, people in other time zones may not have seen this post yet, and thus it may take some time before a response is received.
A couple of things I can help you out with. I don't use postfix specifically, but I do run and have configured several mail servers at work.
Host/domain name - the name of your box usually matches whatever you named the mailserver as in your DNS for yoursite.com. For example, we usually name our mailservers mail.sitename.com. It can be anything, but I don't think it can have any chars in the name except alpha-numeric, so you can't actually be "root@slackserver". You could be root.slackserver.com, or mail.slackserver.net, or ju27sgh2bn.slackserver.org, etc., etc., but you must end in .com/net/biz/us/ any of those tags, and it should match EXACTLY whatever your dns is calling your mail server. If you didn't create the DNS file yourself and aren't sure, you should issue the command dig sitename.???, or nslookup -sil, set type=mx, sitename.??? (those commas are the return key, then continue with the next line). You should get the mailservers name, and IP.
The domain name should be yoursite.???, and the hostname.domainname.tld should be (whateverthe DNSsays).sitename.???
From your earlier questions, I get the strong impression that you don't know in detail what the DNS does, and what the mailserver does, and that may cause you some problems, but will probably be a good learning experience. Both the pop3 and smtp server for the window$ boxes should be the same name that you put into the hostname.domainname.tld field, I'd assume mail.sitename.com, but whatever you set is fine. Your address would NOT be firstname.lastname@example.org , you have no control over hhh.hopto.org, and they would not pass mail to that address to you. You would be email@example.com, or firstname.lastname@example.org is easiest.
On to much less pleasant subjects, you are going to have HUGE problems with a mail server on a dynamic address. For people to run websites off of dynamic IP means that whenever their box gets a new IP, there will be a period of downtime where the DNS take time to catch up, propagating the new address. Downtime isn't great, but it isn't a problem for websites. Mail is not that clean and easy. What if I try to email you, and my DNS looks for your mail address, and finds you at 184.108.40.206 according to your DNS. Problem is, your ISP moved you, and you are now 220.127.116.11. Some mail servers will try and continue to send the mail until it gets through, or fails a given number of times. Some will give up after failing only a few times, and I'd get my email bounced back to me, telling me your server couldn't be reached. To send email, not many, but a few places demand that you have a PTR record. A PTR is basically a reverse lookup, that says "IP 18.104.22.168 is mail.yoursite.com". You cannot have that, as your IP is flexible, and can be changed. You may run across people who simply can't receive mail from you, because their mail servers only accept mail from machines with PTR records. Also, much of what you send out will look to spam filters like spam. No PTR, chance you are spam goes up. So you'll lose emails intended for you, and some of the stuff you send out won't be received, because you look like spam. If you really want to run a mail server out of your house, then you will be MUCH better off spending the extra money for a staic IP. With a static, you can get the PTR record for your server, and you don't have to worry about losing incoming email, becasue your IP won't change.
When you have other problems, please post and somebody can help you through.
Yes, if you want to both send and receive email, you'll need a domain name registered. You can simply send without registering a name, but that makes it super-spam, and any type of spam checker will flag you in a millisecond. You won't be able to receive anything from outside your LAN without a registered name.
It's great that your IP hasn't changed in months, but that doesn't change what I said - when you get changed, it will mess with you, and the PTR issue remains. By the way, do you have a real-world address from your ISP? If you aren't aware of how that works, if the address sent to your machine starts 192.168.x.x, 172.0.x.x -> 172.16.x.x, 169.254.x.x, or 10.x.x.x, you don't have a "Real world" address that can be reached by the public. If yor IP starts with any of those numbers, your server will only be able to send out, and not receive unless you talk to your ISP, and get IP or port forwarding set to your machine, and that is VERY unlikely.
You can register domain names for around $10 a year, and any of them allow you to send out email. When registrars charge extra for email, it is because they run your email off of their servers. You have your own mail server, so all you need is an A and MX record in your dns. You can't run DNS without a ststic IP, so you'll have to keep using that DNS service you mentioned before. Just make sure at some place in the DNS, they have an MX record, and the IP of your mail server. They should look something like this:
7200 IN MX 10 mail.yoursite.com
(then further down the form)
mail 7200 IN A xxx.xxx.xxx.xxx
the xxx.xxx.xxx.xxx should be whatever the IP your box gets from the ISP.
I used godaddy.com to register my domain for like $25 for 2 years, I'm sure you can find an equal or better deal without trying too hard. The big name registers (bulkregister, netsol) are usually more expensive.
Yes, the only person that can create a PTR for you is your ISP. Basically, the PTR has to come from whomever "owns" or leases the public IP that your server sits on. That is usually your ISP.
Sorry! I just reread your eariler posts, under less influence of weekend celebration, and see that I made a mistake. If hhh.hopto.org is your registered domain name, then your email address WOULD be email@example.com. I thought hopto.org was the DNS services that you had, my fault for not reading correctly. Why in the world would you register it as hhh.hopto? If you follow my suggestion of making your mail server mail.hopto.org, then set mail.hhh.hopto.org as an alias. The part before the domain name isn't necessary, but hhh is just odd. You can put anything you want infront of the domain name. You can have say hhh.hopto.org point to one IP, and www.hopto.org point to another. Not a problem, just very very odd.