LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-03-2006, 03:49 PM   #1
frankd99
LQ Newbie
 
Registered: Dec 2003
Location: Ballston Lake, NY
Distribution: Fedora 5.0
Posts: 24

Rep: Reputation: 15
Question 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
 
Old 11-04-2006, 01:17 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
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
 
Old 11-05-2006, 07:03 AM   #3
frankd99
LQ Newbie
 
Registered: Dec 2003
Location: Ballston Lake, NY
Distribution: Fedora 5.0
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
Old 11-05-2006, 08:40 AM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
No problem man, I'm glad it worked out for you!

Peace,
JimBass
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
Few questions about postfix!!! subhankar Linux - Newbie 0 05-08-2006 09:36 AM
Postfix Questions aratis Linux - Software 3 02-04-2006 11:36 AM
Postfix Questions tomle Linux - Software 1 12-14-2005 11:10 AM
Questions about PostFix? bigdogg Linux - Software 5 12-01-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration