I like the UI of SnappyMail (nextcloud app), but I’ve found from testing with dkimvalidator.com that emails sent with SnappyMail lack DKIM while those sent from Roundcube have valid DKIM.
I’m puzzled, because I assumed that both Roundcube and SnappyMail were just UI wrappers on top postfix. Any reason why SnappyMail would lack DKIM?
Under SnappyMail extensions, the only extension I have is “Nextcloud”.
Do you have anything else, like “X-Originating-IP” or “Use From-Address-Account for smtp”?
There is no sense dkim not working. Send yourself a message from snappy mail to gmail that you own>> go to show original and see if DKIM is PASS. There are some dkim validators online which might show false positives.
Copy and paste both headers and send them by DM to me.
Did you inspect the headers are they identical?
In terms of Recived by: authenticated user and bla bla bla.
Thanks for sending the headers.
I tested and compared with mine and the only difference is this part:
Received: from box.somedomain.com (localhost [127.0.0.1]) by box.somedomain.com (Postfix) with ESMTP id E41B1854E3 for <someuser@gmail.com>; Fri, 24 May 2024 17:34:05 +0200 (CEST)
MIME-Version: 1.0
Look at the bottom of your SnappyMail headers it seems it has a problem with IPV6 and your localhost prefers an IPV6 address. Mine preffers IPV4 (not sure why, maybe because my POSTFIX config is set to IPV4 only outbound).
Try setting this to 127.0.0.1 instead of localhost in SnappyMail Admin Panel.
In Domains SMTP>> SERVER
If this dosen’t work. Edit main.cf to prefer Outbound IPV4. sudo nano /etc/postfix/main.cf
insert:
Oh, IPv6 was indeed the problem. Those steps didn’t stop SnappyMail from using ipv6 so I disabled ipv6 altogether by adding these lines to /etc/sysctl.conf
Glad to help! But that is so inelegant to disable the entire IPV6 when you have a dual stack instance and can communicate with ipv6 capable servers.
The problem is name resolving prefers IPv6.
Thus consider editing
sudo nano /etc/gai.conf
uncomment:
For sites which prefer IPv4 connections change the last line to