From 10d63fc52e4ac7c287fef603d94c1681c023b987 Mon Sep 17 00:00:00 2001 From: Se Yeon Kim Date: Wed, 11 Aug 2021 21:17:39 -0500 Subject: [PATCH] Pass domain portion for address hash --- emails/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emails/views.py b/emails/views.py index ae0a97a265..3db3300b52 100644 --- a/emails/views.py +++ b/emails/views.py @@ -410,7 +410,7 @@ def _get_address(to_address, local_portion, domain_portion): except RelayAddress.DoesNotExist: try: DeletedAddress.objects.get( - address_hash=address_hash(local_portion) + address_hash=address_hash(local_portion, domain=domain_portion) ) incr_if_enabled('email_for_deleted_address', 1) # TODO: create a hard bounce receipt rule in SES