Hi, I’m working on setting up a mailcow instance on my server in my home network. Mailcow works well so far but I seem to be having some networking issues with incoming mail. I can send email just fine, but incoming mail never reaches my server. The postfix logs do show some activity by scanners and I can use telnet to reach my server through the usual ports.
When I send a test email, this email never reaches my server and no logs are generated in postfix or anywhere else.
Gmail sends me back failure info emails which reveal something interesting
Received: from #### [193.80.24.51])
by smtp.gmail.com with ESMTPSA id 4-20020a0564021f4400b0055c67e6454asm578078edz.70.2024.01.22.13.07.11
for <support@secondfacesoftware.com>
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Mon, 22 Jan 2024 13:07:11 -0800 (PST)
193.80.24.51
is the ip address of my home network and where the email server is reachable (This is a dynamic ip so I wrote a program to keep the dns records updated)
The #### part just includes my local network info which thunderbird seems to add when i open the .eml file
Here are the relevant DNS records
;; A Records
mail.secondfacesoftware.com. 1 IN A 193.80.24.51
;; CNAME Records
autoconfig.secondfacesoftware.com. 1 IN CNAME mail.secondfacesoftware.com.
autodiscover.secondfacesoftware.com. 1 IN CNAME mail.secondfacesoftware.com.
;; MX Records
mail.secondfacesoftware.com. 1 IN MX 10 mail.secondfacesoftware.com.
secondfacesoftware.com. 1 IN MX 100 mail.secondfacesoftware.com.
;; PTR Records
193.80.24.51.in-addr.arpa.secondfacesoftware.com. 300 IN PTR mail.secondfacesoftware.com.
;; TXT Records
default._domainkey.secondfacesoftware.com. 1 IN TXT "v=DKIM1;k=rsa;t=s;s=email;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq5qiZ4NgoLshTv1HKClsD6PsGiZleOUtgzE8kRMb8hLawH3XzRMfwuwuockXlQxHL2UIZpFjKME4RjyDXoXkhjR2M7HIOIqS6bOyfdWnRD/MLVZLDluBNLUtJz/a5kJxPnz847RXHBNT3nNAAZcG38qtPx1RTrs/E+7yGP/jmotIYegt2zx" "jUzwZmRYDdGPZ7tBSe89zjfCbHSYe1uqmKIKPtvoT1OYc/6xr7gMNXapnt3TGLl38YzzFgT7WOx3UB4/8l9H3zZ9EoEu+fRQQ9rZbtddhaJDbaiRB0ngGks9vOC2/qA8qvs7xOYP5lOdxhzhK0vex6akQ3Nog4M6XRwIDAQAB"
_dmarc.secondfacesoftware.com. 1 IN TXT "v=DMARC1; p=quarantine"
secondfacesoftware.com. 1 IN TXT "v=spf1 mx a -all"
Any idea why emails can’t reach me? Been debugging this for days now and I’m at quite the loss. Thanks!