Into my 15th year here on/with DA. I rarely post as I am not lazy and am willing to search 100's of posts to find what I need; I do not want to add unnecessary noise. But here I must go, making my first post in probably nine or ten years. I'm sorry to drag up an old thread, but this thread still seems like it is the appropriate place for me to post this.
I am search/googled whipped and weary. Trying to find my answer here at DA on my issue makes me feel as if I'm like a dog chasing its tail: Old answers that point to new answers that point to older answers that point to newer older answers that point to older older answers, etc, ad nauseum. .
End of bitch - Let's Begin: I have a current server on which I am running an older version of DA. (As background info - I am not going to update it for a while for My reasons). Three weeks ago, I added a new virgin box, installed with DA 1.55, to which I added three users for testing purposes. DNS is correct for all domains, including mx, PTRs, DKIM, etc. For the most part, all has gone well. Except: Exim and Dovecot. I cannot get exim/dovecot to pull the appropriate certificates for mail for the domains; only the server certificate is being used, whether inbound or outbound.
Let's Encrypt certificates are installed for all users.
DA conf contains value of mail_sni=1.
Files /etc/virtual/snidomains, /etc/virtual/domainowners, and /etc/virtual/domains exist and contain all the proper information, owner/grp is mail, permissions 640 (rw-r).
Folder /etc/dovecot/conf/sni/ list all the domains (all owned by root, fwiw).
All user certificate information seems to be in order in each /usr/local/directadmin/data/users/USERNAME/domains/.
Exim and exim conf are the latest versions.
My only change to exim.conf was to replace "tls_on_connect_ports = 465" with: tls_on_connect_ports = 465:587
and to the file /etc/exim.variables.conf.custom, I added these lines:
Code:
auth_advertise_hosts = ${if or { {eq {$received_port}{465}} {eq {$received_port}{587}} } {*}{}}
tls_certificate=${lookup{$tls_in_sni}nwildlsearch{/etc/virtual/snidomains}{/usr/local/directadmin/data/users/${extract{1}{:}{$value}}/domains/${extract{2}{:}{$value}}.cert.combined}{/etc/exim.cert}}
tls_privatekey=${lookup{$tls_in_sni}nwildlsearch{/etc/virtual/snidomains}{/usr/local/directadmin/data/users/${extract{1}{:}{$value}}/domains/${extract{2}{:}{$value}}.key}{/etc/exim.key}}message_size_limit=50M
Even though the DA install was done only three weeks ago, I know I needed to use CB2: /usr/local/directadmin/custombuild/build exim and dovecot confs, which, of course, incorporated my custom variables into /etc/exim.variables.conf .
Restart exim, restart dovecot. Nothing different.
I am at my wit's end. I am asking for a
simple yet
detailed answer -> as of DA 1.55, Just what does it take to get DA's versions of exim/dovecot to make use the domain certificate and NOT the server certificate. It really should not be this hard. What have I missed? What am I missing? And rhetorically speaking, Why isn't this a part of DA?
Thanks in advance to any of you who help without clutter.
Mike Brown