From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: [PATCH] opensmtpd: Fix crash during authentication Date: Tue, 12 Jun 2018 10:54:42 +0200 Message-ID: <8736xs8jvx.fsf@lassieur.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSf4k-0000jN-1y for guix-devel@gnu.org; Tue, 12 Jun 2018 04:54:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSf4f-0006RC-GV for guix-devel@gnu.org; Tue, 12 Jun 2018 04:54:50 -0400 Received: from mail.lassieur.org ([83.152.10.219]:49650) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fSf4f-0006Q7-85 for guix-devel@gnu.org; Tue, 12 Jun 2018 04:54:45 -0400 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Adam Zimmerman Cc: guix-devel@gnu.org Hi Adam, Adam Zimmerman writes: > Hi all, > > I'm running a mail server that I recently migrated to GuixSD, and I > found this issue when trying to get opensmtpd set up. > > When using authentication from a table, opensmtpd would crash whenever I > tried to authenticate. I found this patch which fixes the issue. It's > already been merged into the opensmtpd master branch[1], and will be > fixed in the next release which apparently will be around > October/November this year. > > [1] https://github.com/OpenSMTPD/OpenSMTPD/pull/835 > > I also noticed another issue which I'm not 100% sure how to solve > properly. When rebooting the server, opensmtpd fails to start. I think > the reason is that the shepherd service only has '(loopback) listed in > its requirements, and I think it might be trying to start the server > before the network comes up. When I ssh into the server and start it > manually, it works fine. > > My first thought was to change the requirements to '(networking), but > could that cause issues for people who only use opensmtpd as a local > delivery server? I run OpenSMTPD 6.0.3p1 on GuixSD, I use authentication from a table, and none of the issues you described happened to me. Here is its configuration: --8<---------------cut here---------------start------------->8--- pki mail.lassieur.org certificate "/etc/smtpd/certs/fullchain.pem" pki mail.lassieur.org key "/etc/smtpd/certs/privkey.pem" table passwd file:/etc/mail/passwd listen on 0.0.0.0 port 25 tls pki mail.lassieur.org listen on 0.0.0.0 port 587 tls-require pki mail.lassieur.org auth limit mta for domain gmail.com inet4 accept from local for any relay reject sender "@lassieur.org" for any accept from any for any relay via smtp://mail2.lassieur.org --8<---------------cut here---------------end--------------->8--- I don't understand why your setup would behave differently. Could you share a bit more of your configuration? Cl=C3=A9ment