From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 18694 invoked from network); 9 Aug 2022 18:13:17 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 9 Aug 2022 18:13:17 -0000 Received: from mail.chrisfroeschl.de ([5.252.227.212]) by 9front; Tue Aug 9 14:10:06 -0400 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisfroeschl.de; s=20210522; t=1660068601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=LbVSFt0K/7bWn0/C8s8nX35F5+4D5a9oFQzet3UgbR0=; b=mpHUkLVH0EBJ9dVrc3AUofNkxbw6/69eqb0a4uFYkcpSxQPIp6t7VNXVqBavI8ldRtPK8G kdT6Hdg4+SckjWGg65ZGB8KUlvLBrsRr9xOLuHq5bkl+PJp0cWnL57EHibUZsPpCOE3BP0 4kmOAZNlKloXYcUmzdViam3awVx4ZGo= Received: from cirno.fritz.box ( [82.207.245.18]) by chrisfroeschl.chrisfroeschl.de (OpenSMTPD) with ESMTPSA id aa15b12e (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Tue, 9 Aug 2022 20:10:01 +0200 (CEST) Message-ID: <14CB1CAB59F653E34676395E9100D074@chrisfroeschl.de> Date: Tue, 09 Aug 2022 20:09:30 +0200 From: chris@chrisfroeschl.de To: 9front@9front.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: extension replication software framework Subject: Re: [9front] Mail server setup Reply-To: 9front@9front.org Precedence: bulk Huh it just worked on a linux machine using my old s-nail configuration. The logs showed: chrisfroeschl Aug 9 18:02:53 initkeyseed: no keyseed: '/adm/keyseed' does not exist chrisfroeschl Aug 9 18:02:53 keyfs starting warnings: 62f2852d 62f12a7d chrisfroeschl Aug 9 18:02:53 cram-ok chris 185.183.157.17 chrisfroeschl Aug 9 18:02:53 tr-ok chris@chris(185.183.157.17) -> chris@chris After that I tried it again on 9front and it just worked... Feels like a first crack in had to be done through another client (?) Anyways happy that it works. Sadly this doesn't feel like something I could append to the FQA, since I still don't know what was going on. I would be happy to hear, if someone sees an explanation for the problem in this log. Fighting with smtp now... I always receive the claim to be a liar. (only in smtp ofc) I know that the error is coming from /sys/src/cmd/upas/smtp/smtpd.c:475 , but I'm not competent enough to see my real issue behind that logic. (at least for now) cpu% cat /sys/log/smtpd chrisfroeschl Aug 9 19:30:01 ehlo from XXX.XXX.XXX.XXX as cirno.fritz.box chrisfroeschl Aug 9 19:30:03 Hung up on XXX.XXX.XXX.XXX; claimed to be cirno.fritz.box And from my s-nail setup with according error for example: chris@test.chrisfroeschl.de requires a password: s-nail: SMTP server: 554 5.7.0 Liar! /home/pi/dead.letter 10/246 s-nail: ... message not sent or my 9front client system smtpd log: cirno Aug 9 19:29:34 delivery at tcp!test.chrisfroeschl.de!587 (test.chrisfroeschl.de:185.183.157.17) hello failed: connection closed unexpectedly by remote system after sending like so: ; echo $upasname # Changed other configs according to FQA aswell chris@test.chrisfroeschl.de ; echo 9test1 | mail -s '9test1' chris@chrisfroeschl.de My client factotum is filled with the smtp password like mentioned in the FQA. Since I can send this email, my 9front client smtp configs are working aswell (adjusting to subdomain for testing ofc). I probably messed up some smtp config. Debugging at the moment. Here is my current server status if someone is interested and spots something: cpu% cat /mail/lib/smtpd.conf defaultdomain test.chrisfroeschl.de norelay on verifysenderdom off saveblockedmsg off ourdomains test.chrisfroeschl.de cpu% cat /mail/lib/rewrite # case conversion for postmaster pOsTmAsTeR alias postmaster # local mail \l!(.*) alias \1 test.chrisfroeschl.de!(.*) alias \1 # translate local aliases from /mail/lib/namefiles # \"(.+)\" translate "/bin/upas/aliasmail '\1'" [^!@]+ translate "/bin/upas/aliasmail '&'" local!(.*) >> /mail/box/\1/mbox # convert source domain address to a chain a@b@c@d... @([^@!,]*):([^!@]*)@([^!]*) alias \2@\3@\1 @([^@!]*),@([^!@,]*):([^!@]*)@([^!]*) alias @\1:\3@\4@\2 # convert a chain a@b@c@d... to ...d!c!b!a ([^@]+)@([^@]+)@(.+) alias \2!\1@\3 ([^@]+)@([^@]+) alias \2!\1 # queue all mail for delivery ([^!]*)!(.*) | "/mail/lib/qmail '\s' 'net!\1'" "'\2'" cpu% cat /mail/lib/names.local # alias file, listed in /mail/lib/namefiles postmaster chris cpu% cat /mail/lib/remotemail #!/bin/rc shift sender=$1 shift addr=$1 shift fd=`{/bin/upas/aliasmail -f $sender} switch($fd){ case *.* ; case * fd=test.chrisfroeschl.de } exec /bin/upas/smtp -d -h $fd $addr $sender $* cpu% cat /bin/service/tcp587 #!/bin/rc user=`{cat /dev/user} exec /bin/upas/smtpd -c /sys/lib/tls/cert -n $3 cpu% Btw my /lib/ndb/local : (no smtp or mail whatsoever, doesn't seem to be required) sys=chrisfroeschl fs=chrisfroeschl auth=chrisfroeschl ether=76c4f3d364a1 ip=185.183.157.17 ipmask=255.255.253.0 ipgw=185.183.156.1 dns=185.183.156.1 auth=chrisfroeschl authdom=chrisfroeschl.de