Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th March 2009, 04:15
yngwie yngwie is offline
Junior Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting up MX record for static host for mail server

I don't understand how the MX record works. From what I read you have to point the MX record to your computer and has something to do with hostname? This is my first attempt at configuring a mail server using postfix on Mandriva 2009. I have a static host configured at dhs.org and an MX record. So if my web site or static host is blah.dhs.org do I make the MX record mail.blah.dhs.org or does it have to match my computer hostname or does it even matter what I name the MX record?

2nd question
My computer has two nics one is for lan 192.168.0.1 (eth1 ) hostname: pegasus and the other is for my internet connection 24.x.x.x.(eth0). My computer hostname is pegasus which points to 192.168.0.1

Trying to follow this guide but confused as to what hostname should be and MX record http://www.howtoforge.com/virtual-us...va-2009.0-i386 They use 192.x.x.x address and server1.example.com for the example. Doesn't it have to be FQDN or is that just the MX record has to be FQDN?

My guess is I use pegasus for hostname in postfix but where do I plug in the MX record in mail server configuration:
postconf -e 'myhostname = pegasus'
postconf -e 'mydestination = pegasus, localhost, localhost.localdomain'
postconf -e 'mynetworks = 127.0.0.0/8'
postconf -e 'virtual_alias_domains ='???
Reply With Quote
Sponsored Links
  #2  
Old 5th March 2009, 20:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by yngwie View Post
I don't understand how the MX record works. From what I read you have to point the MX record to your computer and has something to do with hostname? This is my first attempt at configuring a mail server using postfix on Mandriva 2009. I have a static host configured at dhs.org and an MX record. So if my web site or static host is blah.dhs.org do I make the MX record mail.blah.dhs.org or does it have to match my computer hostname or does it even matter what I name the MX record?
First you must create an A record, e.g. mail.blah.dhs.org or dhs.org
Then you create an MX record as follows:
Code:
dhs.org. MX 10 mail.blah.dhs.org (or blah.dhs.org)
This is if you want to receive emails for dhs.org (e.g. you@dhs.org).
If you want to receive emails for blah.dhs.org (e.g. you@blah.dhs.org), your MX record should look as follows:
Code:
blah.dhs.org. MX 10 mail.blah.dhs.org (or blah.dhs.org)
Take a look at this tutorial: http://www.howtoforge.com/traditional_dns_howto



Quote:
Originally Posted by yngwie View Post
2nd question
My computer has two nics one is for lan 192.168.0.1 (eth1 ) hostname: pegasus and the other is for my internet connection 24.x.x.x.(eth0). My computer hostname is pegasus which points to 192.168.0.1

Trying to follow this guide but confused as to what hostname should be and MX record http://www.howtoforge.com/virtual-us...va-2009.0-i386 They use 192.x.x.x address and server1.example.com for the example. Doesn't it have to be FQDN or is that just the MX record has to be FQDN?

My guess is I use pegasus for hostname in postfix but where do I plug in the MX record in mail server configuration:
postconf -e 'myhostname = pegasus'
postconf -e 'mydestination = pegasus, localhost, localhost.localdomain'
postconf -e 'mynetworks = 127.0.0.0/8'
postconf -e 'virtual_alias_domains ='???
I'd get a hostname at dyndns.org and use that one.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cacti problem - graphs have huge gaps Chip Installation/Configuration 7 8th February 2008 00:24
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 14:58
Help. Apache don't start payne Server Operation 3 17th August 2007 16:57
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 02:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.