LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2004, 05:27 PM   #1
mikeindo
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
web-based email from home with dyndns


trying to set up a webmail server for home. have DSL connection with router doing port-fwd'ing and dyndns set up. also have domain name of example.com and have MX record already pointing to mail.example.com but machine is named "homer". is that ok? how do i configure postfix to work? and will there be any other configuration needed for, say, Courier-imap (or any other components) regarding dyndns? thanks.
 
Old 06-03-2004, 10:04 PM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Points to consider:

* Set up dynamic DNS for the machine that actually connects to the Internet.
* Set up an MX record for your domain that points to the NAME of the machine that you just defined
* If your mail server is not your router and you are running masquerading, you will need to port forward incoming packets on TCP port 25 (smtp) to the internal IP address of your mail server.
* If your mail server is the one running your Webmail, you will need to port forward incoming packets on TCP 80 (http - unless you use something different) to the internal IP address of your mail server.

CAVEAT:

Changeover of dynamic DNS is not instantaneous - the minimum time will be the TTL (time to live) of the record, which may be a few minutes.

This means that should your connection go down and come up again with another IP address and someone else gets your old IP address, mail traffic could attempt to go to their machine, not yours. If their system is configured to accept mail for any address, they could get your mail.

PREFERRED SOLUTION:

I assume that your ISP gives you a mailbox? Use this, or another external mailbox to receive mail. Then, on your machine, run fetchmail to pick that mail up and deliver it to your internal mail server. Then use dynamic DNS to get you to your system so you can use the Webmail facility.

CONCLUSION:

Dynamic DNS is OK for most things, but a bit risky for mail.
 
Old 06-03-2004, 10:09 PM   #3
e_larkin
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
I Use fetchmail with a 10 min crontab to run it.
then i set up Horde and IMP as my web mail so that I can view my 2 different emails accounts from anywhere I go.
 
Old 06-03-2004, 10:18 PM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Great - you're nearly there!

All you really need to do is, on our routing box, to forward the port that your Webmail runs on (80 for normal http) to the box running it, set up your dynamic DNS and test...
 
Old 06-04-2004, 09:51 AM   #5
mikeindo
Member
 
Registered: May 2004
Posts: 43

Original Poster
Rep: Reputation: 15
kbcnetau and e_larkin, thanks for your replies, although i still dont really have an answer to my question! i understand the issue of mail with dyndns, and i may use fetchmail before long anyway, but i just wanted to get it rolling this way first.

kbcnetau, i'm confused by your second post. did you think what e_larkin posted was instead a reply of mine?

so, again, do you (or anyone else) know how to set postfix for use with dyndns?
 
Old 06-04-2004, 11:43 AM   #6
e_larkin
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
yourdomain.com points to your router, dyndns just hosts yourdomain.com and assigns an IP address to yourdomain.com, If your router has the right ports open like 143 for imap and pop 110 then it will be able to listen on those ports.

I dont think you need to set up a mail exchanger or anything like that, once you have the actual domain setup and working any traffic that come to yourdomain.com will go straight to your router or DSL/Cable. If the appropriate port is open say 110 for pop and somone send you email to you@yourdomain.com then it will know to use port 110 when it gets to your router. From there it connects to the mail server and says hey mail server do you have a user called "you", the mail server will reply yes if the account is configured and then accept the email and place it in the appropriate mailbox.

As far as configuring postfix all I think you would need to do is set the "Internet host name of this mail system", unfortunetly I'm not sure what file that is casue I use webmin to administer postfix.

You dont need an MX record so you can get rid of that, as far the machine name homer that is just fine that is only an internal machine name not a domain name.

for IMAP and POP just edit the config files and tell them the name of your domain www.yourdomain.com.

In order to setup up a mail client to get mail like outlook or evelution you would just simply point them to "Homer" if you are in your house. If you are not on your internal network then just point it to yourdomain.com and again if the appropriate ports are open it will send your email to you.

hope this helps atleast a little =)

Last edited by e_larkin; 06-04-2004 at 11:50 AM.
 
Old 06-05-2004, 01:32 AM   #7
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Quote:
kbcnetau, i'm confused by your second post. did you think what e_larkin posted was instead a reply of mine?
Yep, I did. I've always used mailing lists and find forums confusing...
 
Old 06-05-2004, 09:55 AM   #8
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Rep: Reputation: 15
Hi,
I think that you should use Qmail for your mail server. www.qmailrocks.org has a great package and install instructions. You can even use a dyndns address! Also you may want to use uebimiau for your webmail! http://www.uebimiau.org/
 
Old 06-07-2004, 11:20 AM   #9
mikeindo
Member
 
Registered: May 2004
Posts: 43

Original Poster
Rep: Reputation: 15
hmm, interesting...
 
Old 06-08-2004, 11:42 AM   #10
mikeindo
Member
 
Registered: May 2004
Posts: 43

Original Poster
Rep: Reputation: 15
back the part about using dynamic dns, where is that in the process? i looked around a bit online (including the qmailrocks site) and didnt find anything. how does one set qmail to work with dynamic dns?
 
  


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
Recieve web-based email in CLI? PhoenixofMT Linux - Software 1 10-21-2004 03:22 PM
which web-based email interace kubicon Linux - Networking 2 02-01-2004 11:57 PM
Linux and Web Based Email rioch Linux - General 3 10-01-2003 09:52 PM
web based email thesnaggle Linux - Newbie 4 09-26-2003 12:06 PM
web-based email filter (sendmail) johnpayback Linux - General 0 08-19-2002 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:40 AM.

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