From 74a7ed654369cb3ebd282c01d4a0de87a646c4ce Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 8 Mar 2017 14:13:48 +0000 Subject: Use sender in From if From and To domains match. To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419 --- t/utils/email.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/utils/email.t') diff --git a/t/utils/email.t b/t/utils/email.t index 23814c1d7..9e556a865 100644 --- a/t/utils/email.t +++ b/t/utils/email.t @@ -31,4 +31,7 @@ is Utils::Email::test_dmarc('BAD'), undef; is Utils::Email::test_dmarc('test@yahoo.com'), 1; is Utils::Email::test_dmarc('test@example.net'), undef; +is Utils::Email::same_domain(['test@example.net', ''], [ ['to@example.net', ''], ['to@example.com', ''] ]), 1; +is Utils::Email::same_domain(['test@example.org', ''], [ ['to@example.net', ''] ]), ''; + done_testing(); -- cgit v1.2.3