Results 1 to 3 of 3

Thread: Creating Mail Server on Ubuntu 12.04 LTS Server on a VPS

  1. #1
    Join Date
    Apr 2013

    Creating Mail Server on Ubuntu 12.04 LTS Server on a VPS

    I've worked with ubuntu linux several times. I'm still a beginner for the most part I'd say. Long story short, I'm having difficulties creating a mailserver on my VPS.

    I have as my VPS address.
    I have domain as my website.
    I need to create a MX record that points to > which I assume will point to my VPS...

    I have WEBMIN installed. I was able to install dovecot and that is working fine?

    This is the dovecot imap test
    root@connect:~# telnet localhost imap
    Trying ::1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    This is the dovecot pop3 test
    root@connect:~# telnet localhost pop3
    Trying ::1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    +OK Dovecot ready.
    I have Sendmail and Postfix installed. I've tried multiple documentation and I'm still unable to get a mailserver to work. From within webmin I can send mail out no problem. I'm unable to receive any mail to any of the users.

    Please help!

    This is installing a mailserver on a VPS.

  2. #2
    Join Date
    Nov 2009
    Mataro, Spain
    Ubuntu 14.04 Trusty Tahr

    Re: Creating Mail Server on Ubuntu 12.04 LTS Server on a VPS

    If I'm not mistaken, the postfix file has an option for mynetworks or similar. You need to tell it it can receive main from all public IPs. Did you do that?

    To be able to receive mail directly from any mailserver in the world you would have to allow I think. Save and close the file. Restart postfix.

    Also, from another machine when you do ping does it show your server public IP? Did you make the mail A record in the registrar control panel where the domain is? You need to create it as A host, just putting mail doesn't mean anything. In fact, you can call it as you wish, people usually call it mail.

    PS. Also try
    telnet 25

    to see if postfix will respond. If it doesn't, the DNS is probably not configured right. No one can send you email if your DNS is not correctly configured or the mail server doesn't respond.

    Why did you install both sendmail and postfix, don't they clash? I'm not a mail expert myself, so I'm only asking. You only need one MTA which is postfix. And one MDA to allow pop3/imap connections, which is dovecot. Nothing else.
    Last edited by darkod; April 13th, 2013 at 08:44 PM.
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    Apr 2013

    Re: Creating Mail Server on Ubuntu 12.04 LTS Server on a VPS

    You're definitely right, it looks like once I installed courier it began working. I had sendmail uninstaled and used postfix, which wasn't working...

    I now have dovecot working with the above stats. I have sendmail working also...

    root@connect:~# telnet 25
    Connected to
    Escape character is '^]'.
    220 ESMTP Sendmail 8.14.4/8.14.4/Debian-2ubuntu2; Mon, 15 Apr 2013 01:07:17 +0400; (No UCE/UBE) logging access from: []
    So, all in all I'm able to use dovecot and sendmail.

    I'm able to send/receive emails from within webmin. So far that's it...

    Tried installing roundcube, kept coming up with a ton of error, might give another shot at a few things...

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts