From nobody Wed Jun 30 12:37:13 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C149311F1FA2 for ; Wed, 30 Jun 2021 12:37:29 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2560 bits) client-digest SHA256) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GFLTM6QQhz3mRf for ; Wed, 30 Jun 2021 12:37:27 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0) by heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id 15UCbIR0076189 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 30 Jun 2021 22:37:19 +1000 (AEST) (envelope-from dewayne@heuristicsystems.com.au) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1625056639; x=1625661440; bh=kQYT21Vy0nEbDXQV+T02ft/a52wMj38dIA/OxcimJo0=; h=Subject:To:From:Message-ID:Date; b=RAPVI5Xdzh0TiFE30v4/fUvH9YtmsKslEqO3bqqSp8zYBL1xMTj1CyA4yRfdClfIK HfE5fN2lAMogEBTYa8M5Dzmkw5FijYmyOs0sIHhaPLPQHlFOp/M2WznB5pppuTJZxk GubKRmyicAQzRWdaZryC30cFLmSl5E5dchnmJMUCBEFNEljGtkzm5 X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: dma crashes with simple configuration? To: Oscar Carlsson via freebsd-stable References: <87lf6zdk9i.fsf@prutt.party> From: Dewayne Geraghty Message-ID: <19635912-3de4-3fda-d7f8-cd9d64e99ef3@heuristicsystems.com.au> Date: Wed, 30 Jun 2021 22:37:13 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 In-Reply-To: <87lf6zdk9i.fsf@prutt.party> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GFLTM6QQhz3mRf X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=heuristicsystems.com.au header.s=hsa header.b=RAPVI5Xd; dmarc=none; spf=pass (mx1.freebsd.org: domain of dewayne@heuristicsystems.com.au designates 203.41.22.115 as permitted sender) smtp.mailfrom=dewayne@heuristicsystems.com.au X-Spamd-Result: default: False [-5.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; HAS_XAW(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from]; DKIM_TRACE(0.00)[heuristicsystems.com.au:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[heuristicsystems.com.au:s=hsa]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[heuristicsystems.com.au:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[heuristicsystems.com.au]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable] X-ThisMailContainsUnwantedMimeParts: N On 25/06/2021 7:29 am, Oscar Carlsson via freebsd-stable wrote: > Hi, > > I've tried to configure dma(8) to use a smarthost (hosted by migadu.com) > with a simple setup, but it just consumes 100% CPU before crashing. I've > seen this on two FreeBSD systems on different major versions (13 and 12) > so I'm not sure if it's my configuration, my mailing provider or dma is > acting up. > > Any obvious ideas? > > Here's a log: > > Jun 24 23:17:02 hilda dma[1800f][846]: new mail from user=root uid=26 envelope_from= > Jun 24 23:17:02 hilda dma[1800f][846]: mail to= queued as 1800f.800e48050 > Jun 24 23:17:02 hilda dma[1800f.800e48050][1203]: trying delivery > Jun 24 23:17:02 hilda dma[1800f.800e48050][1203]: using smarthost (smtp.migadu.com:465) > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: trying remote delivery to smtp.migadu.com [2001:41d0:2:863f::] pref 0 > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: connect to smtp.migadu.com [2001:41d0:2:863f::] failed: No route to host > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: trying remote delivery to smtp.migadu.com [2001:41d0:2:aacc::] pref 0 > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: connect to smtp.migadu.com [2001:41d0:2:aacc::] failed: No route to host > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: trying remote delivery to smtp.migadu.com [2001:41d0:2:267::] pref 0 > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: connect to smtp.migadu.com [2001:41d0:2:267::] failed: No route to host > Jun 24 23:17:03 hilda dma[1800f.800e48050][1203]: trying remote delivery to smtp.migadu.com [91.121.223.63] pref 0 > Jun 24 23:22:03 hilda dma[1800f.800e48050][1203]: stack overflow detected; terminated > > My /etc/dma/dma.conf > > SMARTHOST smtp.migadu.com > PORT 465 > AUTHPATH /etc/dma/auth.conf > SECURETRANSFER > STARTTLS > > My /etc/dma/auth.conf > > username@prutt.party|smtp.migadu.com:supersecretpassword > > My /usr/local/etc/mail/mailer.conf: > > sendmail /usr/libexec/dma > mailq /usr/libexec/dma > newaliases /usr/libexec/dma > rmail /usr/libexec/dma > > > Regards, > Oscar > Oscar, I think port 465 requires TLS and doesn't negotiate via STARTTLS, perhaps remove STARTTLS from your config? (I have DAEMON_OPTIONS for port 465 with M=Eaps, which I think is normal for that port - I did this like 15 years ago ;) ) If it works, please share so other dma users that experience a similar issue, may benefit. :) Kind regards, Dewayne