On 2017-03-20, Peter Leeman <[email protected]> wrote:
> Hi All
>
> Is it possible to block an email if both the sender and recipient domain are 
> the same?
> Example - [email protected]<mailto:[email protected]> to 
> [email protected]<mailto:[email protected]>

sure it's possible, I'm not a common solution though.  

> The reason I am looking to do this is we are going to be using Exim
> to handle incoming/outgoing mail for a domain hosted on Exchange so
> any mail for domain-a.com being emailed from a mailbox on domain-a.com
> will never leave exchange.  We still want a sender on domain-a.com to
> be able to email external domains, but want to prevent incoming emails
> destined for domain-a.com appearing as if they are coming from
> domain-a.com.

Publish an SPF record for domain-a.com, whitelist the exchange server
in exim and turn on SPF enforcement.

this has the advantage of sharing your rule with the rest of the
internet.

-- 
This email has not been checked by half-arsed antivirus software 

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to