Arieh
Verified User
Well your client receives from your server, where your server receives from the public. The public checks for MX records.
To clarify: Exim is used for receiving e-mails. From both public, as from your client. Dovecot is only being used for letting clients read their mail from your server.
e.g. a gmail to your server:
- gmail.com using MX to get your server
- Exim receives the e-mail, puts it in /home/$user/Maildir
- Client wants to know if there's new mail, asks Dovecot
- Dovecot checks /home/$user/Maildir, sends e-mail to your client
e.g. a mail from your server to gmail
- Client sends using the SMTProtocol the e-mail to your Exim
- Exim querying gmail's MX records to get the gmails mailservers
- (In case you use imap, client may also put the e-mail in Sent items in Maildir)
- Done
So your client contacts Exim for sending e-mails out, you need to configure a cert for that (SMTP). And you contact dovecot for reading the mails, cert for that (IMAP/POP)
So your client is only talking to your server, which only uses simple A records to resolve the name it connects to. MX is only something between mailservers.
So you can just configure the cert and name of your server.hostname.com in exim/dovecot and all customers should be able to connect to it. You can also use mail.server.hostname.com if you want, but its only longer and it would save you a certificate to just use the same.
To clarify: Exim is used for receiving e-mails. From both public, as from your client. Dovecot is only being used for letting clients read their mail from your server.
e.g. a gmail to your server:
- gmail.com using MX to get your server
- Exim receives the e-mail, puts it in /home/$user/Maildir
- Client wants to know if there's new mail, asks Dovecot
- Dovecot checks /home/$user/Maildir, sends e-mail to your client
e.g. a mail from your server to gmail
- Client sends using the SMTProtocol the e-mail to your Exim
- Exim querying gmail's MX records to get the gmails mailservers
- (In case you use imap, client may also put the e-mail in Sent items in Maildir)
- Done
So your client contacts Exim for sending e-mails out, you need to configure a cert for that (SMTP). And you contact dovecot for reading the mails, cert for that (IMAP/POP)
So your client is only talking to your server, which only uses simple A records to resolve the name it connects to. MX is only something between mailservers.
So you can just configure the cert and name of your server.hostname.com in exim/dovecot and all customers should be able to connect to it. You can also use mail.server.hostname.com if you want, but its only longer and it would save you a certificate to just use the same.