deltachat / chatmail

chatmail service deployment scripts and docs
https://delta.chat/en/2023-12-13-chatmail
MIT License
113 stars 9 forks source link

Isse with DNS Records and mail routing after fresh install chatmail on Debian 12. #367

Closed abixadamj closed 1 month ago

abixadamj commented 1 month ago

Thanks to @hpk42 #355 I have https://deltachat.jurkiewicz.chat/ working, but not with 100% - I can create account on DeltaChat using QR-Code on web page, but I cannot communicate with another.

I have simple VPS:

root@deltachat:~# neofetch 
       _,met$$$$$gg.          root@deltachat.jurkiewicz.chat 
    ,g$$$$$$$$$$$$$$$P.       ------------------------------ 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) x86_64 
 ,$$P'              `$$$.     Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-6.2) 
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-22-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 16 hours, 37 mins 
 $$P      d$'     ,    $$P    Packages: 662 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15 
 $$;      Y$b._   _,d$P'      Resolution: 1024x768 
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/0 
 `$$b      "-.__              CPU: AMD EPYC-Rome (1) @ 2.800GHz 
  `Y$$                        GPU: 00:02.0 Cirrus Logic GD 5446 
   `Y$$.                      Memory: 280MiB / 1967MiB 
     `$$b.
       `Y$$b.                                         
          `"Y$b._                                     
              `"""

./cur: total 16 -rw------- 1 vmail vmail 2396 Jul 13 01:40 '1720849219.M858132P5885.deltachat.jurkiewicz.chat,S=3743,W=3823:2,S' -rw------- 1 vmail vmail 2392 Jul 13 01:40 '1720849219.M985927P5885.deltachat.jurkiewicz.chat,S=3739,W=3819:2,S' -rw------- 1 vmail vmail 2431 Jul 13 01:45 '1720849501.M548762P5985.deltachat.jurkiewicz.chat,S=3788,W=3869:2,S' -rw------- 1 vmail vmail 1501 Jul 13 01:45 '1720849514.M516513P5985.deltachat.jurkiewicz.chat,S=2490,W=2542:2,S'

./new: total 0

./tmp: total 0

I even have `MX` pointed on `deltachat` only:
![Zrzut ekranu_20240713_153020](https://github.com/user-attachments/assets/372824e1-ddc2-40b0-8044-c4222e02bbdc)

- Steps to reproduce the problem: Create an account using QR on page https://deltachat.jurkiewicz.chat/ and try to talk with other account - you will see similar screen as below
- Screenshots:
![image](https://github.com/user-attachments/assets/31f9c036-2d43-4fd1-a66a-340aadf1671b)

- Logs: That the problem - I don't see anything worth lookig:

root@deltachat:~# journalctl -u postfix Jul 12 12:02:16 deltachat.jurkiewicz.chat systemd[1]: Starting postfix.service - Postfix Mail Transport Agent... Jul 12 12:02:16 deltachat.jurkiewicz.chat systemd[1]: Finished postfix.service - Postfix Mail Transport Agent. Jul 12 12:03:17 deltachat.jurkiewicz.chat systemd[1]: postfix.service: Deactivated successfully. Jul 12 12:03:17 deltachat.jurkiewicz.chat systemd[1]: Stopped postfix.service - Postfix Mail Transport Agent. Jul 12 12:03:17 deltachat.jurkiewicz.chat systemd[1]: Stopping postfix.service - Postfix Mail Transport Agent... Jul 12 12:03:17 deltachat.jurkiewicz.chat systemd[1]: Starting postfix.service - Postfix Mail Transport Agent... Jul 12 12:03:17 deltachat.jurkiewicz.chat systemd[1]: Finished postfix.service - Postfix Mail Transport Agent. -- Boot fd41d38c21c64e4f9e93d41e9d553fb0 -- Jul 12 16:06:34 deltachat.jurkiewicz.chat systemd[1]: Starting postfix.service - Postfix Mail Transport Agent... Jul 12 16:06:34 deltachat.jurkiewicz.chat systemd[1]: Finished postfix.service - Postfix Mail Transport Agent. Jul 12 16:20:02 deltachat.jurkiewicz.chat systemd[1]: Reloading postfix.service - Postfix Mail Transport Agent... Jul 12 16:20:02 deltachat.jurkiewicz.chat systemd[1]: Reloaded postfix.service - Postfix Mail Transport Agent.

root@deltachat:~# journalctl -u dovecot [...] Jul 12 12:03:16 deltachat.jurkiewicz.chat systemd[1]: Starting dovecot.service - Dovecot IMAP/POP3 email server... Jul 12 12:03:16 deltachat.jurkiewicz.chat dovecot[40606]: master: Dovecot v2.3.21 (47349e2482) starting up for imap, lmtp (co> Jul 12 12:03:16 deltachat.jurkiewicz.chat systemd[1]: Started dovecot.service - Dovecot IMAP/POP3 email server. -- Boot fd41d38c21c64e4f9e93d41e9d553fb0 --


I'm confused - what am I do wrong? Maybe there is something I shoud do more than I did? I hope DNS is set up correctly.
abixadamj commented 1 month ago

I have test delivery from Deltachat to another - works!!!!

root@deltachat:~# mailx adam@jurkiewicz.tech
Subject: test z chat srv
To jest test
.
Cc: 
root@deltachat:~# mailq
-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
9866D47220*     440 Sat Jul 13 09:18:11  root@deltachat.jurkiewicz.chat
                                         adam@jurkiewicz.tech

-- 0 Kbytes in 1 Request.

Zrzut ekranu_20240713_151953

Source of message:

Return-Path: <root@deltachat.jurkiewicz.chat>
X-Original-To: adam@jurkiewicz.tech
Delivered-To: adam@jurkiewicz.tech
Received: from deltachat.jurkiewicz.chat (deltachat.jurkiewicz.chat [188.68.232.24])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
  key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No
 client certificate requested) by mailin006.protonmail.ch (Postfix) with ESMTPS id
 4WLptd5Hxnz9vNPy for <adam@jurkiewicz.tech>; Sat, 13 Jul 2024 13:18:17 +0000 (UTC)
Received: by deltachat.jurkiewicz.chat (Postfix, from userid 0) id 9866D47220; Sat, 13
 Jul 2024 09:18:11 -0400 (EDT)
Authentication-Results: mail.protonmail.ch; dmarc=pass (p=reject dis=none)
 header.from=deltachat.jurkiewicz.chat
Authentication-Results: mail.protonmail.ch; spf=pass
 smtp.mailfrom=deltachat.jurkiewicz.chat
Authentication-Results: mail.protonmail.ch; arc=none smtp.remote-ip=188.68.232.24
Authentication-Results: mail.protonmail.ch; dkim=none
To: adam@jurkiewicz.tech
Subject: test z chat srv
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Message-Id: <20240713131811.9866D47220@deltachat.jurkiewicz.chat>
Date: Sat, 13 Jul 2024 09:18:11 -0400
From: root <root@deltachat.jurkiewicz.chat>
X-Pm-Spam: 0yezJI6YSpyJec91ztFGcjIwoJyLCvXBZcQniisnOkQZFNfRViTANOslxzJCL2Yy9ogZ
 T0C4MNcDys0lIkILR1fSUTURQU9FEDNVSVQEJpbIj4S4MXwSiHNVTUSfRJPRlNV9TVFEfBVESERSVp
 bIjsF0MIJlDfRkVUSf5FMVkJURSVlFfSV0QEVGlVESUM0JXTN0LiQURlOwsIxLCuDgONgjuyMjMjL0
 IxpIGl3RcZBCpzBibSY01VzcnkGVdLJmvlRmbHZlNRlbmvi5cccmiiwSXkUWN9JRFWl9TQxUJUlERV
 WS9JMUEM0JXTN0LiQURlOwsIxLCuDgONgjuyMjMjL0IxpIGl3RcZBCpiBibCbz59yY2zS5ZZ5WkzJX
 Z2Yy95jZSi20bXwSiGB1U0XFh9fTETEFUUIy6w0yWSXiwBGU1B1BXUM1itslOFM91JzLCy29YZIS6i
 wiM2cvNVkcmyjoILhj9zJCLic6IJheyp3RYb42ipJiOmbvJIseChmNIdVGn5J3bjIioBEVVFVRQUIy
 ss1mI3XjNJlb37jpIIBlSiQ0TiO40JQLCEk9UXB1SJRUR1QJR4iT0sjAOIJlTtojICM34JTLC6SIQM
 4i4fJCLGZiVdfdWmW5abIy6QJyekUE9p7IjtmlIYdWlh52XWbiUJoOih3RcYt2fulmZVZ095ldWwF9
 Zd8Vy0IDMDMxUIsMyzmlIXl2ty9GcGduFI6dCiCwMbFWpz8FbHcfJ9kbWiWwZOJitslWYGdnFNvLmp
 WJbbVmkpZ2Xmb0V5ldWyC4ZMID0yIDMSMj5B0a3iiwIbFWpz8FbHcfJJvcH6iIYO4S55kTOTO5kQ3N
 z0TINMdjlscTLmIh1xfaW02FYZdWvflncWbk9wiZWtiJOYlWs0F2YmLvNJpbWkmVbXZ2p0VmbWdl54
 yZC0DIMMIDyj5SM3a0BwiIipWFbb9FjlRXY2Zy99ueVlW1YIojiEBVVVQFRIsUyhm1IaxWf0F2YWZv
 dlfcnvHJcYIi634CMzM5IUwNzxDYMMMD12UTMCLwJNwX3iW0YOAju0QzMTMwMQzOD3DcONkzysYzMn
 I1J9ubllW1YIoji3VmbXLlNRlbm9iJcf0XsyNnIWaiQI2OiyjkNNU25iFjYmMkZFjNm0zANYAT2iQj YfX0=
X-Pm-Origin: external
X-Pm-Transfer-Encryption: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
X-Pm-Content-Encryption: on-delivery
X-Pm-Spamscore: 2
X-Pm-Spam-Action: inbox

-----BEGIN PGP MESSAGE-----
Version: ProtonMail

wV4DXNyNOqae/gsSAQdA6Ptnzy3oo6vTXQRjZ1wLVQ05Z6Wf0oalb7mYXeR+
Bmkw4Jc6M4CuWsie/qon5EEGBI4dcALHb0wJhUzHgnNF4XusfZaaxiY5Qvny
KDcFOS7m0kwBUUcC2lyOru2K5T6O/1wLde/368bFbS3prsBhGZB9hJBe+Sj9
wYcKXCaOvc7qO++U2LqKl4Cxb5Trkmz9kpgm60bPJ87v/0CvmM4m
=t1jm
-----END PGP MESSAGE-----
abixadamj commented 1 month ago

And another test - Sample mail for cto...

root@deltachat:~# mailx cto@niewykluczeni.edu.pl
Subject: Test fo CTO
This is another test - especially for GitHub Issue.
.
Cc: 
root@deltachat:~# mailq
-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
A822347220*     479 Sat Jul 13 09:22:20  root@deltachat.jurkiewicz.chat
                                         cto@niewykluczeni.edu.pl

-- 0 Kbytes in 1 Request.

Zrzut ekranu_20240713_152358

Source:

Return-Path: <root@deltachat.jurkiewicz.chat>
Delivered-To: cto@niewykluczeni.edu.pl
Received: from n2.smarthost.pl
    by n2.smarthost.pl with LMTP
    id gIcCD5N/kmZG8Q8A3VjZ4g
    (envelope-from <root@deltachat.jurkiewicz.chat>)
    for <cto@niewykluczeni.edu.pl>; Sat, 13 Jul 2024 15:22:27 +0200
Return-path: <root@deltachat.jurkiewicz.chat>
Envelope-to: cto@niewykluczeni.edu.pl
Delivery-date: Sat, 13 Jul 2024 15:22:27 +0200
Received-SPF: pass (n2.smarthost.pl: domain of deltachat.jurkiewicz.chat designates 188.68.232.24 as permitted sender) client-ip=188.68.232.24; envelope-from=root@deltachat.jurkiewicz.chat; helo=deltachat.jurkiewicz.chat;
Received: from deltachat.jurkiewicz.chat ([188.68.232.24]:43444)
    by n2.smarthost.pl with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384
    (Exim 4.97.1)
    (envelope-from <root@deltachat.jurkiewicz.chat>)
    id 1sSchh-00000004Q3B-0JaP
    for cto@niewykluczeni.edu.pl;
    Sat, 13 Jul 2024 15:22:27 +0200
Received: by deltachat.jurkiewicz.chat (Postfix, from userid 0)
    id A822347220; Sat, 13 Jul 2024 09:22:20 -0400 (EDT)
To: cto@niewykluczeni.edu.pl
Subject: Test fo CTO
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <20240713132220.A822347220@deltachat.jurkiewicz.chat>
Date: Sat, 13 Jul 2024 09:22:20 -0400 (EDT)
From: root <root@deltachat.jurkiewicz.chat>
X-Spam-Status: No, score=1.8
X-Spam-Score: 18
X-Spam-Bar: +
X-Ham-Report: Spam detection software, running on the system "n2.smarthost.pl",
    has NOT identified this incoming email as spam. The original
    message has been attached to this so you can view it or label
    similar future email. If you have any questions, see
    root\@localhost for details.
    Content preview: This is another test - especially for GitHub Issue.
    Content analysis details: (1.8 points, 5.0 required)
    pts rule name description
    ---- ---------------------- --------------------------------------------------
    -0.0 SPF_HELO_PASS SPF: HELO matches SPF record
    1.8 DKIM_ADSP_DISCARD No valid author signature, domain signs all
    mail and suggests discarding the rest
    -0.0 SPF_PASS SPF: sender matches SPF record
    0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
    query to Validity was blocked. See
    https://knowledge.validity.com/hc/en-us/articles/20961730681243
    for more information.
    [188.68.232.24 listed in sa-trusted.bondedsender.org]
    0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
    query to Validity was blocked. See
    https://knowledge.validity.com/hc/en-us/articles/20961730681243
    for more information.
    [188.68.232.24 listed in bl.score.senderscore.com]
X-Spam-Flag: NO
abixadamj commented 1 month ago

OK, I have a progress - I installeg syslog-ng on my Debian and orodinary mails are coming ;-) I don't know, what has syslog-ng to postfix, but... it is working now. And.. I can connect with other users on other Chatmail services... Don't want (have no free time for it) investigate what is wrong with @niewykluczeni.edu.pl - this is standard hosting with standard email... I'am closing this issue.

Edit - after few hours... Zrzut ekranu_20240713_235149 I see even with this domain everything is OK.

hpk42 commented 1 month ago

thanks Adam for reporting back, and carrying through!

On Sat, Jul 13, 2024 at 12:22 -0700, Adam Jurkiewicz Pythonista wrote:

OK, I have a progress - I installeg syslog-ng on my Debian and orodinary mails are coming ;-) I don't know, what has syslog-ng to postfix, but... it is working now. And.. I can connect with other users on other Chatmail services... Don't want (have no free time for it) investigate what is wrong with @niewykluczeni.edu.pl - this is standard hosting with standard email... I'am closing this issue.

-- Reply to this email directly or view it on GitHub: https://github.com/deltachat/chatmail/issues/367#issuecomment-2227051915 You are receiving this because you were mentioned.

Message ID: @.***>