From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KLqcCDyXXmXKawEA9RJhRA:P1 (envelope-from ) for ; Thu, 23 Nov 2023 01:05:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KLqcCDyXXmXKawEA9RJhRA (envelope-from ) for ; Thu, 23 Nov 2023 01:05:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D1919553CD for ; Thu, 23 Nov 2023 01:05:15 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=timmydouglas.com header.s=key1 header.b=iH3lld2F; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700697916; a=rsa-sha256; cv=none; b=ofwc/mRuSThbORXae/+FFJiGlPmH/Bvsk1E7jVxCL+S/9UEELnZ4+cRrKGbQQnDjlX7Qlk ZHxQA43Y6DJu7BMNjYhY3omNOxBy2sIvMpSGhcfbyEuaBLkXvHTC5aFUOdkHTMObWixF3B bbF/MzZ+tYOSldOy0KtnBUNmNgvVSLaszPhxIpM9lTHzIIo/FsqlZ1ANK8SEnUFmP5tsJQ Kc0onSgH37pNvf2mJhpiZlY6eNpBqNJ1XagybBqsWuFOiflDNbbHmrHITiJ5p7F3ykWNhS 46hUr5viMbfmMgEXRqhQvTYG+YvBRS4JgUrOvwzPxPbx2PRUVv0gwvi3vCgUHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700697916; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=LjNXfWQOpqY8ijsUyhCCMnTx1BAWmrRAMGiONSgDHkQ=; b=adROuO58nnZdZZDVwW5ceo6526NWjShySu5aEkTnNsHANZlnA/TDZ2tfF1av4mc94b12fb v0IJOa5HYM1cjzzV/wtLi3/kBXTLgphz49keeLwkFBMUPj8RhO6VDUI2f24aL1TvEse02y rbhB9IeiskaxEwQh3coVx5nL0agGOgSs2809hUGOcr4Bm8oARYpNm6jAgQfYYYSn72luaG tQVsO8lBvbEQFJ5crl0R0IpqpNiUZYnRb4T3r0eCxHXYh57lDnyTajVDhb80mB5s078HFV F3R6lzslOiMRYlQrJrzQRmKjqJzAfpJ/4t4yj+30ea30iIS1si3CPvKDtWDewA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=timmydouglas.com header.s=key1 header.b=iH3lld2F; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5xDH-0000EL-Vp; Wed, 22 Nov 2023 19:05:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5xDG-00009z-MO for bug-guix@gnu.org; Wed, 22 Nov 2023 19:04:58 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r5xDG-0004p5-DS for bug-guix@gnu.org; Wed, 22 Nov 2023 19:04:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r5xDJ-00063S-Mi for bug-guix@gnu.org; Wed, 22 Nov 2023 19:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53547: Error sending email with OpenSMTPD, fatal: time_to_text: bsnprintf Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 23 Nov 2023 00:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53547 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: nathan_mail@nborghese.com, 53547@debbugs.gnu.org X-Debbugs-Original-To: Nathan , bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170069784423208 (code B ref -1); Thu, 23 Nov 2023 00:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Nov 2023 00:04:04 +0000 Received: from localhost ([127.0.0.1]:60067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5xCN-00062F-UE for submit@debbugs.gnu.org; Wed, 22 Nov 2023 19:04:04 -0500 Received: from lists.gnu.org ([2001:470:142::17]:51594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5xCL-00061k-ES for submit@debbugs.gnu.org; Wed, 22 Nov 2023 19:04:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5xCA-0007l9-PN for bug-guix@gnu.org; Wed, 22 Nov 2023 19:03:51 -0500 Received: from out-173.mta0.migadu.com ([91.218.175.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5xC8-0004an-DG for bug-guix@gnu.org; Wed, 22 Nov 2023 19:03:50 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1700697824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LjNXfWQOpqY8ijsUyhCCMnTx1BAWmrRAMGiONSgDHkQ=; b=iH3lld2FMP7GHQTYJ6bJNbk1pXPjDnFzyzA+/HuovP9VV7fD1RvR0HXLTcQ8u5I2ESUvra g6IJHUbYUmSKmdiyr/icu2d3xjhwWoZEM7NG9Iwb7wIwvNN4YO3uAlDOe5KUm1rBNX+u9x p5EUpFdIgWmiE/v3DWtliDxMhsMS988= In-Reply-To: <87r0khis2j.fsf@nborghese.com> References: <87r0khis2j.fsf@nborghese.com> Date: Wed, 22 Nov 2023 16:03:40 -0800 Message-ID: <87h6ld9vz7.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=91.218.175.173; envelope-from=mail@timmydouglas.com; helo=out-173.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Timmy Douglas From: Timmy Douglas via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -6.62 X-Migadu-Queue-Id: D1919553CD X-Migadu-Spam-Score: -6.62 X-TUID: s67i8HAroq/j Nathan writes: > I don't have this problem on my server. > > I looked at your github issue page. > Those macros are defined by the `configure' script. > I can see that guix's `configure' output defines HAVE_STRUCT_TM_TM_GMTOFF in config.h. > (if neither of the #if match, then the `tz' pointer is likely garbage and the program will crash.) > > A problem with your time zone configuration seems like a reasonable guess. > I'd check it with a simple C program like the one attached. your app prints my timezone as expected. if you run something like this does it work for you? cat << EOF | /run/setuid-programs/sendmail $(whoami) To: $(whoami) Subject: test blah EOF for me, it prints: sendmail: time_to_text: bsnprintf my config.scm: (operating-system ... (setuid-programs (append (list (setuid-program (program (file-append opensmtpd "/sbin/smtpctl")) (setuid? #f) (setgid? #t) (user "root") (group "smtpq")) (setuid-program (program (file-append opensmtpd "/sbin/sendmail")) (setuid? #f) (setgid? #t) (user "root") (group "smtpq"))) %setuid-programs))