So, related to this internal IP address problem, mail tester is pretty enthusiastic about my internal mails (10/10), so I’m not sure if this is a problem I need to worry about outside my own Mailcow instance. Perhaps other things that use the same RSPAMD defaults? But I’m seeing equivalent deliverability+click rates for my mailing list as I was when I wasn’t doing all this nonsense, and no one but me appears to be having a problem with my day-to-day emails.
So, I think I will just whitelist the IP address in RSPAMD. Seems pretty straightforward with RSPAMD’s multimap.
Mailcow is set up with a bunch of these already (<MAILCOW_LOCATION>/data/conf/rspamd/local.d/multimap.conf
). We could use the existing IP whitelist:
IP_WHITELIST {
type = "ip";
map = "${LOCAL_CONFDIR}/custom/ip_wl.map";
symbols_set = ["IP_WHITELIST"];
score = -2050;
}
So I guess I’d just add my IP to wherever this is defined. But rather than working out whether that’s a UI thing or a ‘edit the map directly’ thing, and since I’ve already added my VPN as a forwarding host I think I’ll use:
WHITELISTED_FWD_HOST {
type = "ip";
map = "redis://WHITELISTED_FWD_HOST";
symbols_set = ["WHITELISTED_FWD_HOST"];
score = -0.95; # I added this line
}
I used -0.95 which subtracts 9.5 (I don’t exactly understand this, but RSPAMD multiplies this by some metric that is defined somewhere, and with Mailcow, that appears to be 10, but I didn’t look for it, I just played with it while checking the RSPAMD history to get it right). That more-or-less cancels out the RSPAMD complaints I disagree with:
WHITELISTED_FWD_HOST (-9.5) [<IP_ADDRESS>]
IP_REPUTATION_SPAM (3.999997) [ip: <IP_ADDRESS>(1.00)]
VIOLATED_DIRECT_SPF (3.5)
RDNS_NONE (2)
With the benefit, I think, of being related only to whatever I define as a forwarding host, so I won’t need to update anything other than the forwarding host if the VPN address changes?
Let’s see. Hopefully this forum post helps me when I break something later and need to remember what I did.
It seems reasonable to assume that you could use the same map (WHITELISTED_FWD_HOST) for the external relay module. I might update if I ever bother doing that.