Need some help configuring Postfix with a FreeDNS domain name

Discussion in 'Server Operation' started by PatrickDickey, Jun 3, 2014.

  1. PatrickDickey

    PatrickDickey New Member

    Hi everyone,

    I have postfix set up on an Amahi Home Server, which relays mail from root through my gmail account to me (sends me logwatch messages and other messages from the server). I set up a domain at FreeDNS, and want to add that to my postfix setup.

    In the interest of full disclosure, for now I only need this so I can receive an email from for their certification. At this time, I'll only be sending emails from the server, and probably only from the root account. After I get through their certification process, I may switch back to my current setup, and drop the FreeDNS domain altogether--or I may decide to use it for one of my mail accounts.

    One issue that I have is that my server's hostname is localhost.localdomain (required by Amahi), and it's friendly name is hda.local.lan (how I reach it in my LAN) or hda.

    I've looked at some of the tutorials on here, about how to set up postfix, but I don't think any of them really apply to me. I don't need Courier (at least I don't think I do), and I don't need Quota. The server is a Fedora 19 x86_64 system, running Amahi 7. What I need is the most basic (secure) setup that will send/receive mail over both IPv4 and IPv6.

    I'm attaching my current as main-cf.txt, to make it easier to configure. The domain that I'm going to use is (actual domain is, but I'm assuming I'll have to create the mail. version for the MX record).

    As for the relay information at the bottom, I'll probably just comment it all out. That way it's there, if I choose to go back to it. Unless I can leave it in, and use it for sending the logwatch and other system messages out.

    Any help is greatly appreciated.

    Have a great day.:)

    P.S. At the most, I'd like to be able to send mail from my local network only. NOTHING outside of my router. After I've got it set up, I'll look at the Hardening Postfix for ISPConfig 3, AVG Antivirus and maybe the Securing your ISPConfig 3 installation with SSL tutorials.

    Attached Files:

  2. PatrickDickey

    PatrickDickey New Member

    I'm posting this as a reply so it doesn't get lost in my original post. From some of the things I'm reading, it seems like all I need to do is this:

    Modify my /etc/hosts file and add entries for my IP Address with mailserver

    Specify as myhost, and as mydomain in

    Then even though "hostname" shows localhost.localdomain as my hostname, everything should be right with the mailserver.

    If this is correct, my questions are in /etc/hosts, do I need to make two entries? One for the IPv4 address ( and one for my IPv6 address? And if so, do I use the exact same information on both entries?

    Have a great day.:)
  3. srijan

    srijan New Member HowtoForge Supporter

    Yes you can use /etc/hosts for that.

Share This Page