LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-16-2014, 04:30 PM   #1
charlweed
Member
 
Registered: Jan 2005
Posts: 46

Rep: Reputation: 15
Need tutorial on routing mail to postfix server from minimal host, through dynamic al


After years of using POP from my ISP, I now need to route email from my external site, through a dynamic alias, to my internal network. I do not know how to do this, and I would really appreciate some detailed help.

For years, my external ISP has maintained a publicly accessible domain, and a host that runs a defined set of services. The important service for this discussion is POP. Let’s call this mydomain.com. mydomain.com is actually just an alias for my ISP’s server, called ortcloud.fireserver.net. My ISP will let me create MX records for my domain, and define email forwarders. Other than that, I have limited control of the software running directly on mydomain.com.

I have complete control of the servers on my internal network. I have postfix installed, but idle on a server we can call fedora20.internalnet.org. This server also runs BIND 9.9.4. My internal network has a dynamic external IP address assigned by my evil, internal ISP. For this discussion, let’s say the dynamic address is c-60-190-42-156.hsd7.ca.greedyjerks.net. I currently use dyn.com to redirect some external traffic to my internal network, so I have used dyn.com to create the alias cutealias.dyndns.net. I have put in a ticket for my ISP of mydomain.com to tell me if there is a practical way to configure mydomain.com to redirect to my dynamic address. If that cannot be done, then I will need to configure mydomain.com to redirect to the stable cutealias.dyndns.net, which is the external alias for fedora20.internalnet.org.

In summary, here are the names involved:
External domain and host = mydomain.com = ortcloud.fireserver.net
Dynamic name of private network = c-60-190-42-156.hsd7.ca.greedyjerks.net
Dynamic alias = cutealias.dyndns.net
Internal mail server = fedora20.internalnet.org

So how do I proceed? I looked up “MX record” on Wikipedia, and the web control panel for mydomain.com looks pretty simple. So do I create an MX record with a destination of cutealias.dyndns.net, and open port 25 on my internal firewall? What else must I do fedora20.internalnet.org? What about outbound mail? Also, mydomain.com, which currently gets all my mail, is configured to run the SPF (Sender Policy Framework) system. Do I leave that as is? Do I need to set up SPF on fedora20.internalnet.org as well?

Thanks again for any help.
 
Old 03-16-2014, 04:41 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
The standard mandates that the MX record point to an address (A or AAAA) record, not a CNAME alias. That's not a problem, since the MX record can point to any name, inside or outside the domain. You can point it directly at cutealias.dyndns.net.

SPF is all about creating additional records validating the server used for outgoing mail, and if you use the ISP's Smart Host as a relay, no changes are needed.

Last edited by Ser Olmy; 03-16-2014 at 04:43 PM.
 
  


Reply

Tags
email


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix Mail Server with Dynamic IP Address by DSL turiyain Linux - Server 8 11-02-2009 07:04 AM
Postfix Mail server to relay mail for dynamic IP clients seventy-7 Linux - Server 2 01-28-2009 02:59 AM
LXer: Tutorial: Simple Dynamic Routing With RIP LXer Syndicated Linux News 0 10-16-2008 01:50 AM
Postfix: How to configure postfix to process mail from another host m1ckey78 Linux - Server 3 10-15-2008 10:59 AM

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

All times are GMT -5. The time now is 11:21 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