> On 24.03.22 18:34, Grant Taylor wrote: > > Remember, there are historic mechanisms for an MX for parent domains to > > handle child domains even if the child domain in question doesn't have > > it's own MX record. > > which, besides wildcard DNS? > > OP, also remember that mumble.aidemxwzlwt.bwbibibi.edu may have no A/MX > record while not produce NXDOMAIN >
Right, good points! So for each sub domain there, do an MX and A record lookup and stop before getting to the tld itself (.edu). Of course there got to be some list somewhere what the tld and gtlds are. Unless there's an existing function in some plugin to do this, I'll have to write my own. Little surprising that there isn't, this seems like an obvious check! However, my question still has another part regarding doing this in a cf file like local.cf. If it were simply 2 lines in a local.cf to do this, I'd rather do it there than cobble together a plugin which is another order of magnitude more complicated. I have seen things like _VARIABLE_ in .cf files and they seem to get there from the perl side by doing something like this: $pms->set_tag('VARIABLE', $value); I was wondering if there was a way to set such a variable from the output of something within the cf side. This does not work: header LIST_UNSUB_DOM List-Unsubscribe =~ /\@(.+)/ VARIABLE askdns LIST_UNSUB_DOM _VARIABLE_ Even if askdns did do the correct thing, I coudln't find a way to get it the domain name to look up. Is there a syntax to do this in the context of a cf file such as local.cf? Sure seems like it'd be useful! Otherwise, I'll have to write a plugin but it seems a shame. Michael Grant p.s. the subject of my original post really could have been clearer! I'm classifying spam by putting thigs into a buckets with certain attributes and this is one of them. Things with domain names that are bogus, but it's still just spamassassin. Sorry about any confusion!
signature.asc
Description: PGP signature