0

I managed to setup one physical server using postfix, dovecot with mysql server. I do plan to use virtual domains and users.

Current setup to send and receive emails.

SENDING smtp.example.com

RECEIVING pop.example.com

Now the question, will a regular wildcard ssl certificate work? Or I should just use one domain to simplify it like mail.example.com for sending and receiving?

masegaloeh
  • 18,236
  • 10
  • 57
  • 106
Louie Miranda
  • 121
  • 1
  • 1
  • 4

3 Answers3

3

Certificate validation will be done by the client. Use of wildcards is defined for POP, IMAP and SMTP, so a wildcard certificate should fit. But it might be that some older clients have problems, because the details for certificate handling in SMTP were only defined much later then for the other protocols so some old clients might not expect wildcards.

Steffen Ullrich
  • 13,227
  • 27
  • 39
3

Or I should just use one domain to simplify it like mail.example.com for sending and receiving?

Yes, I would advise it. In fact Google Apps using the same technique to handle the thousands domains pointing on it.

Some reason why you should use this technique is

  • Only few mail client who sent SNI header when performing SSL handshaking. So, the SNI certificate option won't work in major case.
  • For the wildcard certificate problem has been addressed by Steffen Ullrich in his answer.
masegaloeh
  • 18,236
  • 10
  • 57
  • 106
1

If you want to serve smtp/imap for subdomains then one dedicated subdomain is preferrable. IMHO you even shouldn't split your services into two or more separate subdomains like smtp.example.com and pop.example.com. Just use mail.example.com that can be used for smtp/pop/imap and even http if you plan to launch some webmail.

Kondybas
  • 6,964
  • 2
  • 20
  • 24