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 29222 invoked from network); 12 Aug 2022 15:29:45 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2022 15:29:45 -0000 Received: from mail.chrisfroeschl.de ([5.252.227.212]) by 9front; Fri Aug 12 11:28:09 -0400 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisfroeschl.de; s=20210522; t=1660318085; 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=KeQy9n5yhw02rk6Ki1foxraWMT/q2rgUsbGwUweBaNE=; b=rYvD0lpsIqSO6OtmD+hZwCBY7Kgoscbp6/lSxk/nItgA5wQ46zAH1PCIFd3ue2cMIeAyxV 0kucUdJ5pbhvI0IMw/pStd4vd+iM3Th4pg+486JsEO3qLD52NUhnzJCjoN8sF3+qvjbusL viqDXnyZwsiYl4iP9rUqtcllz4ciHx8= Received: from cirno.fritz.box ( [82.207.245.20]) by chrisfroeschl.chrisfroeschl.de (OpenSMTPD) with ESMTPSA id 3d0005ac (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Fri, 12 Aug 2022 17:28:05 +0200 (CEST) Message-ID: <6C554CE0DC8C38610323264719200C54@chrisfroeschl.de> Date: Fri, 12 Aug 2022 17:27: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: virtual secure rails realtime-java-based realtime-java layer Subject: Re: [9front] Mail server setup Reply-To: 9front@9front.org Precedence: bulk > Results are 9/10, and the missing points are: No DKIM, no > unsubscribe-header. Indeed I got the same after sending a 'real' message. Nice! > That sounds like an error in /mail/lib files. See the rewrite file there > and also the smtpd.conf file, I guess. I don't know the exact details, so > have fun. Still struggeling with 3.) and 4.) . I'm certain they are the same problem. My server always responds to the client (9 client aswell as a linux client) after trying to send to chris@test.chrisfroeschl.de : cirno Aug 12 16:37:40 delivery chris@test.chrisfroeschl.de at tcp!test.chrisfroeschl.de!587 (test.chrisfroeschl.de:185.183.157.17) rcptto failed: 550 5.1.1 test.chrisfroeschl.de!chris ... user unknown While logging on the server: test.chrisfroeschl.de Aug 12 16:38:13 Disallowed test.chrisfroeschl.de!chris (cirno.fritz.box/82.207.245.20) to blocked name test.chrisfroeschl.de!chris This feels like a /mail/lib/rewrite issue. Resulting from a faulty upas/aliasmail or unmatched alias. From my understanding test.chrisfroeschl.de!chris should be resolved by \l!(.*) alias \1 to 'chris', followed by [^!@]+ translate "/bin/upas/aliasmail '&'" resulting in 'local!chris', and finally followed by local!(.*) >> /mail/box/\1/mbox appending the mail to /mail/box/chris/mbox . Or isn't the real rewrite input 'test.chrisfroeschl.de!chris'? I feel like I read every resource on those /mail/lib files a thousand times, but I'm not able to see anything by now. I tried plenty of stuff, but I will share (hopefully for the last time) my current updated configs in case someone can see a mistake: cpu% cat /mail/lib/rewrite # case conversion for postmaster pOsTmAsTeR alias postmaster \l!(.*) alias \1 \l\.test.chrisfroeschl.de!(.*) alias \1 (test.chrisfroeschl.de)!(.*) alias \2 # translate local aliases from /mail/lib/namefiles \"(.+)\" translate "/bin/upas/aliasmail '\1'" [^!@]+ translate "/bin/upas/aliasmail '&'" local!"(.+)" >> /mail/box/\1/mbox 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/smtpd.conf defaultdomain test.chrisfroeschl.de norelay on verifysenderdom off saveblockedmsg off ournets 185.183.157.17/22 ourdomains test.chrisfroeschl.de cpu% walk -exp /mail/ a-rw-rw---- /mail/box/glenda/mbox/1659696218.00 a-rw-rw---- /mail/box/glenda/mbox/1659696248.00 a-rw-rw---- /mail/box/glenda/mbox/1659696323.00 d-rwxrwxrwx /mail/box/glenda/mbox d-rwxrwxr-x /mail/box/glenda a-rw-r----- /mail/box/chris/mbox/1660242093.00 a-rw-r----- /mail/box/chris/mbox/1660299006.00 d-rwxr-xr-x /mail/box/chris/mbox -lrw------- /mail/box/chris/mbox.idx -lrw------- /mail/box/chris/L.mbox --rwxr-xr-x /mail/box/chris/mbox.imp a-rw-r----- /mail/box/chris/Sent/1660226710.00 a-rw-r----- /mail/box/chris/Sent/1660309584.00 d-rwxr-xr-x /mail/box/chris/Sent -lrw------- /mail/box/chris/Sent.idx --rwxr-xr-x /mail/box/chris/Sent.imp --rw-r--r-- /mail/box/chris/imap.subscribed d-rwxr-xr-x /mail/box/chris/Trash -lrw------- /mail/box/chris/Trash.idx --rwxr-xr-x /mail/box/chris/Trash.imp a-rw-r----- /mail/box/chris/Drafts/1660309938.00 d-rwxr-xr-x /mail/box/chris/Drafts -lrw------- /mail/box/chris/Drafts.idx --rwxr-xr-x /mail/box/chris/Drafts.imp d-rwxr-xr-x /mail/box/chris d-rwxrwxr-x /mail/box d-rwxrwxr-x /mail/faxoutqueue d-rwxrwxr-x /mail/faxqueue d-r-xr-xr-x /mail/fs d-rwxrwxr-x /mail/grey --rw-rw-r-- /mail/lib/blocked --rw-rw-r-- /mail/lib/classify.re --rwxrwxr-x /mail/lib/gone.fishing --rwxrwxr-x /mail/lib/justqmail --rwxrwxr-x /mail/lib/kickqueue --rwxrwxr-x /mail/lib/lazyqmail --rw-rw-r-- /mail/lib/namefiles --rw-rw-r-- /mail/lib/names.local --rw-rw-r-- /mail/lib/pipeto.bayes --rw-rw-r-- /mail/lib/prof.mbox --rw-rw-r-- /mail/lib/prof.spam --rwxrwxr-x /mail/lib/remotemail --rw-rw-r-- /mail/lib/rewrite.direct --rw-rw-r-- /mail/lib/rewrite.gateway --rwxrwxr-x /mail/lib/setup.bayes --rw-rw-r-- /mail/lib/smtpd.conf --rwxrwxr-x /mail/lib/validateaddress --rwxrwxr-x /mail/lib/validateattachment --rw-rw-r-- /mail/lib/white.starter --rw-rw-r-- /mail/lib/gone.msg --rw-rw-r-- /mail/lib/ignore --rwxrwxr-x /mail/lib/isspam.rc --rwxrwxr-x /mail/lib/mailnews --rwxrwxr-x /mail/lib/msgcat.rc --rw-rw-r-- /mail/lib/patterns --rw-rw-r-- /mail/lib/pipeto.lib --rwxrwxr-x /mail/lib/qmail --rw-rw-r-- /mail/lib/rewrite --rwxrwxr-x /mail/lib/spam.rc --rwxrwxr-x /mail/lib/unspam.rc d-rwxrwxr-x /mail/lib -lrw-rw-rw- /mail/queue/none/L.mbox d-rwxrwxrwx /mail/queue/none d-rwxrwxrwx /mail/queue/none d-rwxrwxrwx /mail/queue d-rwxrwxrwx /mail/tmp d-rwxrwxr-x /mail cpu% cat /bin/service/tcp25 #!/bin/rc user=`{cat /dev/user} exec /bin/upas/smtpd -c /sys/lib/tls/cert -n $3 cpu% cat /bin/service/tcp587 #!/bin/rc user=`{cat /dev/user} exec /bin/upas/smtpd -a -d -e -c /sys/lib/tls/cert -n $3 cpu% cat /lib/ndb/local sys=test.chrisfroeschl.de fs=test.chrisfroeschl.de auth=test.chrisfroeschl.de smtp=test.chrisfroeschl.de mail=test.chrisfroeschl.de authdom=chrisfroeschl.de ether=76c4f3d364a1 ip=185.183.157.17 ipmask=255.255.252.0 ipgw=185.183.156.1 dns=185.183.156.1 cpu% I don't seem to get to remotemail or qmail (like expected because it should be a local mbox append inside rewrite, right?). That's why I don't mind them for now. I changed my sysname to the actual domain aswell as most other entries associated with it after having mail score issues with my previous one (chrisfroeschl). I hope that's not an issue. PS: Thanks william@thinktankworkspaces.com for the link. Got some more insights, but nothing final for now from it. chris