I have setup a self hosted Mail sever, which is only available to my intranet setup, it is advertised in my intranet DNS with bind9 with the following configuration:
My smtpd has several filters, configured nearly idential to this blog post https://it-notes.dragas.net/2024/03...erver-freebsd-opensmptd-rspamd-dovecot-part1/, of which the non dynamic DNS connections, id est this
Is preventing me to send a message from an account that I myself setup in this server, to another account in the same exact server.
I know it is that happened, because after setting an email client in my android tablet, and the account being unable to send messages, it activated logs and the message "550 no residential connections - Thou shalt not pass" appeared in the logs.
Anyway any ideas of how to correct my intranet DNS settings?
Code:
acl LAN {
192.168.0.0/24;
};
acl ALLEN_LOCALHOST {
127.0.0.1/32;
};
acl PUBLIC0 {
192.168.0.3;
};
options {
directory "/var/named";
allow-recursion { LAN; localhost; };
forwarders {
1.1.1.1; // Cloudflare
208.67.222.222; // OpenDNS
};
listen-on { 192.168.0.3; localhost; };
listen-on-v6 { none; };
pid-file "/var/run/named/pid";
allow-transfer port 53 { PUBLIC0; 0.0.0.0; };
allow-query { localhost; LAN; };
recursion yes;
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
zone "my-domain.inexistent-top-level" IN {
type master;
file "/var/named/my-domain.inexistent-top-level.db";
allow-update { none; };
};
zone "mail-probe-eins.my-domain.inexistent-top-level" IN {
type master;
file "/var/named/mail-probe-eins.my-domain.inexistent-top-level.db";
allow-update { none; };
};
zone "168.192.in-addr.arpa" IN {
type master;
file "/var/named/168.192.db";
allow-update { none; };
};
Code:
$TTL 3600
$ORIGIN my-domain.inexistent-top-level.
@ IN SOA ns1.my-domain.inexistent-top-level. admin.my-domain.inexistent-top-level. (
234
3600
600
604800
1800 )
@ IN NS ns1.my-domain.inexistent-top-level.
@ MX 0 mail
@ IN TXT "v=spf1 a:mail.my-domain.inexistent-top-level mx -all ra=postmaster"
mail IN TXT "v=spf1 a -all ra=postmaster"
; Several IN A and IN TXT of the rest of the FreeBSD Jails and the FreeBSD host, and Kerberos
Code:
$TTL 3600
$ORIGIN mail-probe-eins.my-domain.inexistent-top-level.
@ IN SOA ns1.my-domain.inexistent-top-level. admin.my-domain.inexistent-top-level. (
21301334
3600
600
604800
1800 )
@ IN NS ns1.my-domain.inexistent-top-level.
@ MX 0 mail
;@ IN TXT "v=spf1 a:mail.mail-probe-eins.my-domain.inexistent-top-level mx -all ra=postmaster"
@ IN TXT "v=spf1 a ip4:192.168.0.41 mx ~all"
_dmarc IN TXT "v=DMARC1;p=none;pct=100;rua=mailto:postmaster@mail-probe-eins.my-domain.inexistent-top-level"
mail IN TXT "v=spf1 a -all ra=postmaster"
mail IN A 192.168.0.41
mail._domainkey IN TXT "v=DKIM1;K=rsa;p=The-first-part-of-my-2018-bits-public-key"
mail._domainkey IN TXT "the-rest-of-the-key"
My smtpd has several filters, configured nearly idential to this blog post https://it-notes.dragas.net/2024/03...erver-freebsd-opensmptd-rspamd-dovecot-part1/, of which the non dynamic DNS connections, id est this
Code:
filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', '.*\.dsl\..*' } \
disconnect "550 no residential connections - Thou shalt not pass"
I know it is that happened, because after setting an email client in my android tablet, and the account being unable to send messages, it activated logs and the message "550 no residential connections - Thou shalt not pass" appeared in the logs.
Anyway any ideas of how to correct my intranet DNS settings?