Aug 9, 2011
tom

Linux Postfix Setup on a fresh VPS

Question

I’ve launched a new VPS with CentOS 5. It’s pretty skeletal, nothing setup.

I’m trying to configure my mail server to handle my email: contact@domainname.com

My DNS settings live on GoDaddy.com. I have set up a contact name under the MX settings (not sure if that is correct) that points to the mail server (mail.domainname.com). Is that correct? or should it point to smtp.secureserver.com?

So that’s the first thing, the second is setting up my server to handle mail.

Should I be using postfix for my mail server? At that, I’m a bit confused on setting this up. I’ve set myhostname and mydomain but still no luck.

I’d appreciate any tutorials and help, thanks!

Answer

First off, the MX record should point to whatever server is listening for incoming SMTP traffic. If you’re planning to have your VPS handle mail traffic, then the MX record should point to it.

Second, the job that you’re considering using postfix for is called a Message Transport Agent (MTA). There are lots of options listed at that link; postfix is perfectly valid but may be a bit overwhelming for a first-timer.

I wonder though; are you trying to run a mail server for production use, or to learn how to set one up? There are lots of tutorials for setting up postfix if you’re trying to build knowledge, but if you’re planning to use this in production, you’re probably better off going with a hosted solution like Google Apps or GoDaddy’s email service. Mail is tricky and hard to do right.

Related posts:

  1. Relay Access Denied with virtual_alias_maps in postfix
  2. How to setup a fake SMTP server to catch all mails?
  3. Scaling server cluster setup
  4. How to setup alerts for printers, toner low, etc? IPSwitch-What’s Up?
  5. is it possible to forge the amount of memory available on a VPS?

Leave a comment