On Tue, 09 Aug 2016 16:43:50 +0100, Nicola Piazzi
<nicola.pia...@gruppocomet.it> wrote:
WHITELIST_FROM_RCVD require to know mailserver name
Take this example :
whitelist_from_rcvd *@axkit.org sergeant.org
We want to accept all domain axkit.org and we are sure that is not
spoofing when it come from names that end with domain sergeant.org
But if I have only email address I cant write a line like this, I don't
know mailserver domain
Based on what you're trying to do:
man dig
or depending on your resolver possibly:
man drill
Whilst I agree it is slightly more effort to set-up whitelisting by
looking up the details first it would still be far more resource efficient
on your servers.
Personally I tend to just read the headers of a received mail since that
tends to give a very big clue as to what the pattern will be. If they
can't send a single message through without whitelisting there are
probably bigger worries that the easiest way to maintain such records.
Again, it is admittedly slightly more effort to set-up but it still
reduces the overheard of a DNS query to check the MX every time and allows
senders to utilise different inbound and outbound servers (also mails
through websites and third party companies).
However to th best of my knowledge the short answer to your original
question is: "No, there's nothing (publicly) available to do what you want
to do. You'll need to code it yourself or use some of the alternatives
that have been suggested". I think most of us wouldn't use such a plugin
since it is so easy to optimise that process by doing a single DNS query
at set-up rather than checking the MX of every incoming email.