From owner-freebsd-ports@freebsd.org Mon Mar 11 16:04:26 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C326F1524AE1 for ; Mon, 11 Mar 2019 16:04:26 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 424A26DA57 for ; Mon, 11 Mar 2019 16:04:26 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id F3B721524AE0; Mon, 11 Mar 2019 16:04:25 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B91AE1524ADF for ; Mon, 11 Mar 2019 16:04:25 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "slim.berklix.org", Issuer "slim.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C5E0D6DA54; Mon, 11 Mar 2019 16:04:24 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p2E52C2D5.dip0.t-ipconnect.de [46.82.194.213]) (authenticated bits=128) by slim.berklix.org (8.15.2/8.15.2) with ESMTPSA id x2BG4EZo019871 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Mar 2019 17:04:22 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id x2BG4DWA015393; Mon, 11 Mar 2019 17:04:13 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id x2BG42a6009516; Mon, 11 Mar 2019 17:04:13 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201903111604.x2BG42a6009516@fire.js.berklix.net> To: Larry Rosenman cc: ports@FreeBSD.org Subject: Re: ./dovecot start Can't open file /etc/ssl/certs/dovecot.pem From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Aachen Kent User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Mon, 11 Mar 2019 10:54:44 -0500." <8b138bd6cc344514e842cf7e4ebbf65a@FreeBSD.org> Date: Mon, 11 Mar 2019 17:04:02 +0100 X-Rspamd-Queue-Id: C5E0D6DA54 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [0.86 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.94)[-0.943,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[berklix.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.79)[0.794,0]; NEURAL_SPAM_SHORT(0.33)[0.328,0]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-0.21)[asn: 33824(-1.05), country: DE(-0.01)]; MX_GOOD(-0.01)[cached: slim.berklix.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[68.90.185.94.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:33824, ipnet:94.185.88.0/22, country:DE]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[213.194.82.46.zen.spamhaus.org : 127.0.0.10] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2019 16:04:27 -0000 Hi, Reference: > From: Larry Rosenman > Date: Mon, 11 Mar 2019 10:54:44 -0500 Larry Rosenman wrote: > On 03/11/2019 10:46 am, Julian H. Stacey wrote: > > Hi ports@ > > Anyone else seen this or got ideas please: > > cd /usr/local/etc/rc.d; ./dovecot start > > Can't open file /etc/ssl/certs/dovecot.pem > > /usr/ports/mail/dovecot MAINTAINER= ler@FreeBSD.org cc'd > > pkg info dovecot-2.3.4.1 Secure, fast and powerful IMAP and POP3 > > server > > > > I'm happily running dovecot-1.2.17_6 K on another 10.3-STABLE with no > > ssl. > > > > This host is 12.0-RELEASE-p3 (was previously much older , but I > > upgraded & moved the conf file which it hints at below) > > I have tried adding ssl=no but it still errors > > doveconf: Fatal: Error in configuration file > > /usr/local/etc/dovecot/conf.d/10-ssl.conf line 12: ssl_cert: Can't > > open file /etc/ssl/certs/dovecot.pem: No such file or directory > > > > Commenting them out in /usr/local/etc/dovecot/conf.d/10-ssl.conf : > > ##JHS## ssl_cert = > ##JHS## ssl_key = > > > do those files exist? No they dont exist. Host only has /etc/ssl/ cert.pem@ -> /usr/local/share/certs/ca-root-nss.crt 11002 Feb 28 15:29 openssl.cnf openssl.cnf is not from me, same date as some other /etc/ files from when jail was created before I received it (ive since done cd src;make install) > You need either a self-signed certificate or a Let's Encrypt > (or other public CA signed certificate). Thanks, how do I generate a self signed certficate ? Cheers, Julian -- Julian Stacey, Consultant Systems Engineer, BSD Linux Unix, Munich Aachen Kent Brexit now minority: 2.1 M now over 18, More Remainers; 1.5 M died, less Leavers; 700 K votes Stolen from British Remainers in EU; + 3 M globaly dis- franchised; + drift to Remain + avoid chaos. MPs should urge Queen: Dismiss May, appoint new PM for unity government & 2nd Referendum. Revoke Art. 50, plan better, refile Art.50 later? http://ExitBrexit.UK/#email_an_mp