From nobody Wed Jun 30 11:18:35 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 D166B11E27B2 for ; Wed, 30 Jun 2021 11:18:52 +0000 (UTC) (envelope-from oscar@prutt.party) Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GFJkh4p2sz3MyY for ; Wed, 30 Jun 2021 11:18:52 +0000 (UTC) (envelope-from oscar@prutt.party) References: <87lf6zdk9i.fsf@prutt.party> <1865118700.131.1625046381777@localhost> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prutt.party; s=key1; t=1625051929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lPAHpJwiNfCkH6C8butQKa0GmPdXF5Fs7E4Y8eplOD8=; b=DFLSFnJ9xj2kLcebDlArqO92JFUmXMDYzU05RwW+l3/oSSpHi8yQR+PRuIquW/Vxnm0cvA en+GEidz7nmk8BBvCgK/sL54zg8Xw1a3Mtj8SZmKOJtVl4Iat6yHhvJyuaHX3xWZfF5p1u nvIayve7gsotgpVZWLbNkzGwgcpJ6Uh6yji0faKJ2g+Dak5VBhyvW0z02/CcptheO181BY wTausgsHwbpXNrVjS9TbB3vdddI/aHtxWh9mihqpCSCEeKSHhq/ovjG9fVcj58zCMaO/To f74iF9e5ArhmeVN4h8ttzSceLBWgjRGdG9SAvT0/GtMcNSMrnGR0OQBlAtAX7A== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. To: Ronald Klop Cc: freebsd-stable@freebsd.org Subject: Re: dma crashes with simple configuration? In-reply-to: <1865118700.131.1625046381777@localhost> Message-ID: <87fswz7g8k.fsf@prutt.party> Date: Wed, 30 Jun 2021 13:18:35 +0200 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 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: oscar@prutt.party X-Rspamd-Queue-Id: 4GFJkh4p2sz3MyY X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: oscar@prutt.party From: Oscar Carlsson via freebsd-stable X-Original-From: Oscar Carlsson X-ThisMailContainsUnwantedMimeParts: N Hi, I've tried with dma(8) from ports, and it doesn't crash. Jun 30 13:13:50 hilda dma[181e2][60585]: new mail from user=root uid=26 envelope_from= Jun 30 13:13:50 hilda dma[181e2][60585]: mail to= queued as 181e2.800e48050 Jun 30 13:13:50 hilda dma[181e2.800e48050][61054]: trying delivery Jun 30 13:13:50 hilda dma[181e2.800e48050][61054]: using smarthost (smtp.migadu.com:465) Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: trying remote delivery to smtp.migadu.com [2001:41d0:2:863f::] pref 0 Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: connect to smtp.migadu.com [2001:41d0:2:863f::] failed: No route to host Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: trying remote delivery to smtp.migadu.com [2001:41d0:2:aacc::] pref 0 Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: connect to smtp.migadu.com [2001:41d0:2:aacc::] failed: No route to host Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: trying remote delivery to smtp.migadu.com [2001:41d0:2:267::] pref 0 Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: connect to smtp.migadu.com [2001:41d0:2:267::] failed: No route to host Jun 30 13:13:51 hilda dma[181e2.800e48050][61054]: trying remote delivery to smtp.migadu.com [94.23.1.103] pref 0 ...but it doesn't deliver the mail, and it consumes 100% CPU. # ps aux | grep dma mailnull 61054 100.0 0.1 16824 5896 - Rs 13:13 1:15.54 sendmail -i -v oscar@prutt.party (dma) mailnull 47735 0.0 0.1 16824 5940 - Is Sun20 0:00.29 sendmail -i -v oscar@prutt.party (dma) (PID 47735 is an older mail which dma is retrying to send) I'll write up a bug for dma, thanks for the pointer! BR Oscar Ronald Klop writes: > Hi, > > Interesting problem. The message "stack overflow" indicates something going wrong in dma. > Do you have the same issue when you use dma from ports? (mail/dma -> pkg install dma) > The ports version is a little closer to the upstream version. > > If the port has the same issue I think it is valuable to create an issue upstream: https://github.com/corecode/dma . > > Regards, > Ronald. > > > Van: Oscar Carlsson via freebsd-stable > Datum: donderdag, 24 juni 2021 23:29 > Aan: freebsd-stable@freebsd.org > Onderwerp: dma crashes with simple configuration? >> 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 >> >>