I´m a newbie and looking for using the yunohost Mailserver. I installed roundcub
Right now if I try to send a mail to a yunohost user form an other emailadress form an other mail server - I get the just a loop back. SO i gues i have not set up the Records for the used Yunohost Mailserver domian in the right way.
I´m on a small home server behind a dynamic IP
I use a Service to root the domain name to the dynamic IP – which works but maybe i set the Mail Records not correct
Yunohost Mail DNS shout be configured as:
; Mail
@ 3600 IN MX 10 my.domain.tld.
@ 3600 IN TXT "v=spf1 a mx ip4:xx.yy.zzz.xx -all"
mail._domainkey 3600 IN TXT "v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDY3qo8XQdCaJEVmASDs0n5Hp9VRN04Zs3aCQOKUe+gwbT1byuv5xPmrRegFYAs9EDmvgjblh7NtD/tZVUQpPkwoDml4SRTu1ZW2YoVK8y4B81ZB3wCzKtxV8M6O0RjSCrUwsfAirBOmFlT0tyJ51ev6EDxJml+Fw2Ep1e2gC4qFwIDAQAB"
_dmarc 3600 IN TXT "v=DMARC1; p=none"
So how can I deal with @ 3600 IN TXT “v=spf1 a mx ip4:xx.yy.zzz.xx -all”
Hmm I would be less concerned about the SPF record and more about the basic A record in the first place. If you are in dynamic IP, don’t you have something that updates your A record regularly ?
i don’t know exactly, I think yes, a lot of people have static IP. Or use Yunohost DynDNS service for nohost.me / noho.st. Otherwise, having a “wrong” SPF record might not prevent you to send email, they are just likely to be flagged as spam …
But maybe just removing the ip4:xx… part (keeping the “v=spf1 a mx -all”) might work.
I think just sending an email to some user on your yunohost (from an external mail account like gmail or whatever) should be enough to validate that it works
root@my:~# python yunoCheckDNS.py my.domain.tld
xmpp
-------
SRV record for _xmpp-client._tcp : OK! :)
SRV record for _xmpp-server._tcp : OK! :)
CNAME record for muc : OK! :)
CNAME record for pubsub : OK! :)
CNAME record for vjud : OK! :)
mail
-------
MX record for @ : OK! :)
TXT record for @ : Problem found :(
Expected : "v=spf1 a mx ip4:78.48.27.238 -all"
Current : "v=spf1 a mx -all"
TXT record for mail._domainkey : Problem found :(
Expected : "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDY3qo8XQdCaJEVmASDs0n5Hp9VRN04Zs3aCQOKUe+gw
bT1byuv5xPmrRegFYAs9EDmvgjblh7NtD/tZVUQpPkwoDml4SRTu1ZW2YoVK8y4B81ZB3wCzKtxV8M6O0RjSCrUwsfAirBOmFlT0tyJ51ev6EDxJml+
Fw2Ep1e2gC4qFwIDAQAB"
Current : "v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC315i5mdUBtCcKa0wXdvkrk57TzG8WVAb
qxgjKju0zQhQDKewVCB41domqF0KHDjfZiU08usxu/A67apmvd2LJ8532va5WBmFQp7LatO86UqBXSlj5SfaGfSgQX0lj15lgW3Za1/ke3MFI9agCT8
9yh+jp2ujdYwx1Ol7VgQmQhQIDAQAB"
TXT record for _dmarc : OK! :)
basic
-------
A record for @ : OK! :)
root@my:~# `