From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Zimmerman Subject: [PATCH] opensmtpd: Fix crash during authentication Date: Tue, 12 Jun 2018 10:13:15 -0700 Message-ID: <4a2a1997-163a-1944-1130-ecae82bec731@digitalpirate.ca> References: <8736xs8jvx.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSmrF-0001LR-Qr for guix-devel@gnu.org; Tue, 12 Jun 2018 13:13:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSmrC-0005js-LW for guix-devel@gnu.org; Tue, 12 Jun 2018 13:13:25 -0400 Received: from dusk.digitalpirate.ca ([104.37.196.77]:60886) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fSmrC-0005gq-C2 for guix-devel@gnu.org; Tue, 12 Jun 2018 13:13:22 -0400 In-Reply-To: <8736xs8jvx.fsf@lassieur.org> Content-Language: en-GB 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: =?UTF-8?Q?Cl=c3=a9ment_Lassieur?= Cc: guix-devel@gnu.org Hi Clément, On 2018-06-12 01:54 AM, Clément Lassieur wrote: > I run OpenSMTPD 6.0.3p1 on GuixSD, I use authentication from a table, > and none of the issues you described happened to me. Strange, since the bug report I found in the opensmtpd github repo seemed to suggest it happened for everyone. > > 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? I have essentially the same config settings on the submission port: listen on eth0 port 587 tls-require pki dusk auth hostname $host mask-source I wonder if it's related to which specific hash you use. My file uses sha512crypt (hash starts with $6$). - Adam > > Clément >