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 am trying to setup a mail server in my home as a learning tool. I have registered a domain name called compunerdedev.com. I signed up with ZoneEdit to add DNS and mail server info. In ZoneEdit the mail server is set as mail.compunerdedev.com handels mail for www.compunerdsdev.com.
I switched sendmail off and turned on postfix in my FC4 server and changed myhostname to mail.compunerdsdev.com in main.cf.
If I type hostname at a terminal prompt it returns linuxserver which I typed during the FC4 install. Should the postfix myhostname be linuxserver or should it match what is stored in ZoneEdit?
After changing some other lines in Postfix I stopped and then started Postfix.
As a test I typed echo Test | mail -v frank@compunerdsdev.com. I checked and the user Frank did receive an email. So Postfix appears to be able to send to an existing FC4 user.
What I can't seem to figure out is how to setup the FC4 server to store mail sent to it from outside my LAN, and use Outlook etc. to download the mail from the FC4 server.
Any suggestions or links to a straight forward HowTo would be much appreciated.
The hostname is of no concern whatsoever. Hostname is a local issue, and you are looking at an internet issue to get mail to the box. Your computer can be localhost.localdomain (the default), and as long as the DNS is set to direct email to your IP address, it will receive it regardless of the hostname.
How is this computer connected to the internet? Is it through a cable modem with DHCP, through a DSL with DHCP, or does it have a static address?
You need to create an A record for mail.compunerdedev.com in Zone edit, and the A record should point to the real world IP of your mail server. Then the MX in zone edit should point to mail.compunerdedev.com.
Other issues to consider - you probably don't have a static real world address at your place. Anytime your connection changes its address, you would need to update the zone edit to the new address. Doing that can be a pain, and if you are in that situation, you would probably want to use a dynamic dns (dyndns) service, to always keep track of your real world IP, and report changes. If that is the case, there is a work around, basically using the CNAME instead of an A record for mail.compunerdedev.com, and pointing the CNAME at your dyndns name.
If you have a router or firewall, you'll need to configure them to pass traffic at port 25 (SMTP) to this computer in question. Also, to read the mail, you'll either want 110 open for POP3, or 143 for IMAP. It can also allow both, if you have services running on both. If the computer has a private IP address (192.168, 172., 10.) then you have to port forward from the router/firewall to this address, and you should make certain that private address is either static, or that the DHCP by the router has the MAC address of the machine, so it always gets the same address.
Once you have the DNS resolved, pointing the machines at it either by its LAN address or pointing them at mail.compunerdedev.com will work fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.