Re: Is there anything that hooks esmtprout es after looking up the MX?

Sam Varshavchik <[email protected]> Mon, 24 Jun 2024 17:08:42 -0400
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Alessandro Vesely writes:

> Hi,
>
> there are lots of innocent-looking email addresses that, after looking up  
> the MX reveal a not-so-innocent their-name.mail.protection.outlook.com.   
> Outlook often bounces my messages, so I have a few domains in esmtproute,  
> like hotmail.com, outlook.com and a few other.
>
> Is it be possible to write somewhere something like *.outlook.com, so that  
> mail to any MX named that way goes out via a smarthost?

Looking at the code, nope, there's nothing like that. esmtproutes looks at  
the domain, before MX lookup takes place.

I also occasionally had bounces for mail going to outlook.com, despite  
comparatively little outbound E-mail I have. I have the luxury of having an  
alternative, simpler solution available: blacklisting outlook.com's IP  
address range for inbound mail. It's not always true, but usually mail with  
a return address with a domain that goes to outlook.com will come from the  
IP address ranges, and I have no reason to receive mail I cannot reply to.

_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCZnngWgAKCRCKYPgoojZS
4sXwAQCbI9/feppB2smWg/Rj0wCCsDfcYqB15Rcltspyt9b21QEAl6hr9NENzF9N
5muZFSQm5psxs/zRlm+sJmTLAQhv+ws=
=IEDE
-----END PGP SIGNATURE-----