Re: [exim] How I can block send mails to other domains.

Top Page
Delete this message
Reply to this message
Author: Drav Sloan
Date:  
To: Saju A P
CC: exim-users
Subject: Re: [exim] How I can block send mails to other domains.
Saju A P wrote:
> Dear Friends,
>
> I am using exim 4 in my RHEL 4 server I hosted many domains on this
> server. One of our domain holders needs these settings.
> He would like to send and receive on his domain only eg: He would not
> allow his users to send mails to yahoo.com or gmail.com.
> But this settings only for his domains only other users need normal
> settings. Can I do this with exim mail server? Please help me.


Add a domains condition to the dnslookup, userforward and localuser
routers and create a seperate localuser router for his domains
(that appears after the usual localuser router)

domains = ! domain1.com : ! domain2.com

Regards

Drav.