I’m using mailinabox v56 on a dedicated Ubuntu 18.04.6. When I usually send emails, SPF and DKIM/DMARC are valid.
However, if I send emails from other servers via the relay setup, SPF and DKIM/DMARC fail. Although the emails are sent and received. They will end up in spam though.
X-Spam-Flag: YES X-Spam-Level: ********* X-Spam-Status: Yes, score=10.0 required=5.0 tests=DMARC_FAIL_QUARANTINE, HTML_MESSAGE,SPF_FAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * 5.0 SPF_FAIL SPF check failed * 5.0 DMARC_FAIL_QUARANTINE DMARC check failed (p=quarantine) * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Spam-Score: 10.0
Is SPF/DKIM/DMARC supposed to work when relaying? If so, what could be wrong in my setup? I didn’t customize mailinabox with the exception of a changed SSH config, a different
index.html in the webserver and a backup job.