From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 1PxUI80QmF85XgAA0tVLHw (envelope-from ) for ; Tue, 27 Oct 2020 12:21:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GICtHs0QmF8iQwAA1q6Kng (envelope-from ) for ; Tue, 27 Oct 2020 12:21:33 +0000 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 ECD8C940111 for ; Tue, 27 Oct 2020 12:21:32 +0000 (UTC) Received: from localhost ([::1]:37472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXNyl-0001hz-Ts for larch@yhetil.org; Tue, 27 Oct 2020 08:21:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXN1B-0002J5-3j for help-guix@gnu.org; Tue, 27 Oct 2020 07:19:57 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:36714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXN16-00040F-Bg; Tue, 27 Oct 2020 07:19:55 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id d2e6726c; Tue, 27 Oct 2020 11:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=3LS8YCdM5Qa4NrBW1IQC2TGIyq/NyLnGN7/EzM5fg0E=; b=Dif58im8DbUt CKV6s8id/MKZNZLrZd4UUO0jyRPcxT6s4nh8ctQfm0ccp4KjdTh+xaR1Zw7Secuk sO56ZARTtXsAupFByYUGjcaSzCtoY07m/2iw6nG+7iiogn6Ww3OPTbKaVDZ/8ILD C1IvHkL2DzHAkvuaKeLCbcU7lr041TUP7Y4E+3lmFNkw2TbTCruDs6+5OL/dWlrp xZ4PcBBb6P/kw4radUMfv/Hu5SFd82U4F7guS1uf0IeMwsZZ9vuBSCuAgu9x6ewg 0/wnRVAmWp0ej5qJK396hrmjoL2XsVmYH0Hdts2dGWKaRqw2c/xd8vi6iSGqouXh 4nTvj9Lzsw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 99f41859 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 27 Oct 2020 11:19:45 +0000 (UTC) Date: Tue, 27 Oct 2020 07:19:37 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <875z6w88t9.fsf@dismail.de> References: <875z6w88t9.fsf@dismail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Troubles with opensmtpd To: Joshua Branson , Joshua Branson via , help-guix@gnu.org From: Julien Lepiller Message-ID: Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=Dif58im8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: OoGk/ZBVRcmp Le 27 octobre 2020 02:46:58 GMT-04:00, Joshua Branson via a =C3=A9crit : >Hello! > >(define %smtpd=2Econf > (mixed-text-file "smtpd=2Econf" > " ># This is the smtpd server system-wide configuration file=2E ># See smtpd=2Econf(5) for more information=2E ># borrowed from the archlinux guix ># >https://wiki=2Earchlinux=2Eorg/index=2Ephp/OpenSMTPD#Simple_OpenSMTPD/mbo= x_configuration > ># My TLS certificate and key >table aliases file:/etc/aliases >pki mail=2Egnucode=2Eme cert >\"/etc/letsencrypt/live/gnucode=2Eme/fullchain=2Epem\" >pki mail=2Egnucode=2Eme key >\"/etc/letsencrypt/live/gnucode=2Eme/privkey=2Epem\" > ># for now I am NOT using the virtual credentials >#table creds \"" creds "\" >table vdoms \"" vdoms "\" >table vusers \"" vusers "\" > ># listen on eth0, fairly explainatory >listen on eth0 tls pki mail=2Egnucode=2Eme ># if I uncomment this next line, smtpd will break=2E=2E=2Ewhat's wrong wi= th >it? >listen on eth0 port 465 smtps pki mail=2Egnucode=2Eme # auth >listen on eth0 port 587 tls-require pki mail=2Egnucode=2Eme # auth > >action \"receive\" maildir virtual >action \"send\" relay > >match from any for domain action \"receive\" >match for any action \"send\"")) > This looks correct, but for the last line I have instead match for any fro= m any auth action send=2E Not sure if that makes a difference though=2E My understanding is that if = you don't specify from where, it's local by default, and authenticated mess= ages are supposed to be treated as local=2E > >I define the opensmtpd service this way: > >#+BEGIN_SRC scheme >(service mail-aliases-service-type > '(("webmaster" "root") > ("postmaster" "root") > ("abuse" "root"))) > >;; I can test send an email from my ssh machine via: >;; cat test-email=2Etxt | msmtp -- jbranso@dismail=2Ede >(service opensmtpd-service-type > (opensmtpd-configuration > (config-file %smtpd=2Econf))) >#+END_SRC > >Currently when I try to send an email, via msmtp, I get this error: > >#+BEGIN_SRC sh :results output :exports both >cat testmail=2Etxt | msmtp -- jbranso@dismail=2Ede >#+END_SRC > >#+RESULTS: >: msmtp: the server does not support authentication >: msmtp: could not send mail (account default from >/home/joshua/=2Emsmtprc) > I think the message is pretty clear: your server doesn't ask for a passwor= d, but msmtp tries to send one=2E You'll have to uncomment the auth table = and the auth argument on the listen on directives=2E Maybe you could try and use openssl to test and see what the server answer= s exactly=2E >Any help would be awesome! > >Thanks, > >Joshua >