[Bug 284345] mail/opensmtpd tls_config_set_ca_file: failed to open CA file

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Jan 2025 16:49:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284345

            Bug ID: 284345
           Summary: mail/opensmtpd tls_config_set_ca_file: failed to open
                    CA file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: fluffy@FreeBSD.org
          Reporter: testcb00@gmail.com
          Assignee: fluffy@FreeBSD.org
             Flags: maintainer-feedback?(fluffy@FreeBSD.org)

Thank you for maintaining this port. Today, I tried to set up a mail server
following this guide:
https://www.davd.io/posts/2021-12-18-freebsd-mail-server-part-1/

However, when I start the service, I get the following error:


Jan 25 15:52:30 mail newsyslog[40886]: logfile first created
Jan 25 16:24:07 mail smtpd[87528]: info: OpenSMTPD 7.6.0-portable starting
Jan 25 16:24:08 mail smtpd[88847]: dispatcher: tls_config_set_ca_file: failed
to open CA file '/etc/ssl/cert.pem': No such file or directory
Jan 25 16:24:08 mail smtpd[87666]: smtpd: process dispatcher socket closed


With this error, I did some research that may relate to the issue:

https://lists.freebsd.org/archives/dev-commits-ports-main/2023-October/080175.html

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274322

It seems that the tls_default_ca_cert_file is searching for the SSL certificate
in the wrong path?

-- 
You are receiving this mail because:
You are the assignee for the bug.