LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Postfix questions (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-questions-498383/)

frankd99 11-03-2006 03:49 PM

Postfix questions
 
Hi Everyone,

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.

Thanks,
Frank

JimBass 11-04-2006 01:17 PM

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.

Peace,
JimBass

frankd99 11-05-2006 07:03 AM

Postfix Questions
 
Jim,

Thanks for the clear and very helpful reply. I made the changes you suggested in ZoneEdit and now I am able to send and receive mail from my FC4 box.

Thanks again,
Frank Descisciolo

JimBass 11-05-2006 08:40 AM

No problem man, I'm glad it worked out for you!

Peace,
JimBass


All times are GMT -5. The time now is 12:31 AM.