Looks like I might have replied to Kris and not the maillist.  Sorry if
this shows up twice.

Made a couple adjustments to the two patterns and merged them into one if
anyone is interested.

/^\[[^\]]+
(?:helo|rdns)=[\w\d.]+\.(?:outbound-e?mail|shared)\.sendgrid\.net /


On Thu, Jul 16, 2020 at 11:07 AM Kris Deugau <kdeu...@vianet.ca> wrote:

> Pedro David Marco wrote:
> > Is there any way to know whether a Sendgrid IP is shared or dedicated?
>
> Use the FCrDNS data and one or another of the X-Spam-Relays metaheaders.
>   It should be possible to quickly refine these to "good enough", if
> they're not already (watch for word wrap):
>
> header SENDGRID_SHARED_1        X-Spam-Relays-Untrusted =~ /^\[[^\]]+
> rdns=[\w\d.]+\.shared\.sendgrid\.net /
>
> header SENDGRID_SHARED_2        X-Spam-Relays-Untrusted =~ /^\[[^\]]+
> rdns=[\w\d.]+.outbound-mail.sendgrid.net /
>
> I suspect the second matches a somewhat different slice of their
> services than you're asking about, but I can't say I can really tell the
> difference from the outside.
>
> -kgd
>

Reply via email to