How do I set up Dovecot with Postfix without ssl?

December 11, 2014 2.7k views

I tried to follow this https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassasin tutorial about setting up a dovecot/postfix mailserver.

If I telnet 25 or 587 I get an "220 domain ESMTP Postfix (Ubuntu)" which to me seems fine. If I telnet 993 I won't get anything back. It just says: "Connected to Domain".

Problem is that I can't access a proper ssl certificate because they are being mailed to admin@domain.tld and I can't get the imap to work. The tutorial mentioned is WITH SSL cert.

If I add an account to a mail client it just hangs on the imap settings so there is nog way for me to receive emails.

I'm very new to this and I just can't figure out what is wrong.
I'm not sure which logs to post, as I don't know what is necessary or not. So please feel free to demand those logs! :D

Hope you guys can help me, because I'm at a loss. :(

8 comments
  • Erm, why don't you simply set the correct email address so you can receive the certificate and then install it?

  • That's the problem. My SSL certs can only be delivered to admin@domain.tld

  • That's never going to work then. You need to provide an email address that can receive mail.

  • Yeah I get that. But I can't set it up without ssl? Just login to the email account get the cert and than set it up with the ssl?

  • Why don't you instead get your certificate mailed to a domain that exists (like a gmail.com, hotmail.com, etc. account) and then install it? Even if you get SSL to work it's not going to change the fact that you're instructing your provider to send mail to a domain that can't be resolved.

  • For some weird reason my provider can't send it to me at another mail address. It;s the only email address they accept.

  • You need your provider to send mail to a domain that actually exists.

    admin@domain.tld is never going to get email, ever, no matter what you do.

    EDIT: Also, once you get them to mail you to a domain that exists, you can just use plain text IMAP temporarily to retrieve the certificate.

  • Just to rule this out: I can't, under no circumstance, get my provider to mail me to another email address (e.g. gmail or hotmail). The problem that I have is that I can't set up my mail server properly without SSL. So is there a way to set up dovecot and postfix without ssl or is this simply not possible?

    I can, or at least I think I can, set up mailboxes etc because telnet mails are being queued. So the problem is that my server won't send or receive without ssl.

    Can someone point me to the correct settings to set up postfix/dovecot without ssl? (if this is possible at all)

    EDIT: I might sound a bit irritated, but I'm really thankful for all the help you guys are giving. :)

Be the first one to answer this question.