9front - general discussion about 9front
 help / color / mirror / Atom feed
From: chris@chrisfroeschl.de
To: 9front@9front.org
Subject: Re: [9front] Mail server setup
Date: Tue, 09 Aug 2022 20:09:30 +0200	[thread overview]
Message-ID: <14CB1CAB59F653E34676395E9100D074@chrisfroeschl.de> (raw)
In-Reply-To: <F0F10F72A4F86A43EDF3B4EBE06DF0EF@thinktankworkspaces.com>

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

  reply	other threads:[~2022-08-09 18:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-06 13:17 chris
2022-08-06 19:46 ` william
2022-08-06 19:47 ` william
2022-08-08 10:26   ` chris
2022-08-09  8:21     ` william
2022-08-09 18:09       ` chris [this message]
2022-08-11 12:37         ` chris
2022-08-11 14:29           ` Stanley Lieber
2022-08-11 21:17             ` chris
2022-08-12  6:23               ` william
2022-08-12 13:47                 ` Stanley Lieber
2022-08-12  6:33               ` sirjofri
2022-08-12  7:10                 ` sirjofri
2022-08-12 15:27                   ` chris
2022-08-12 18:49                     ` sirjofri
2022-08-12 20:53                       ` chris
2022-08-12 22:25                     ` ori
2022-08-13  9:56                       ` Steve Simon
2022-08-07  0:56 ` sl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14CB1CAB59F653E34676395E9100D074@chrisfroeschl.de \
    --to=chris@chrisfroeschl.de \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).