The server is also used for outgoing mail for most of the domains too, so I
would want to use the allowed relays list or the users wouldn't be able to
send each other E-mail either.

Right? Can I use an OR in the condition to include the relay_hosts list?

Chuck

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Drav Sloan
Sent: Wednesday, August 01, 2007 10:45 AM
To: Chuck Rock
Cc: [email protected]
Subject: Re: [exim] Limit SMTP by domain.

Chuck Rock wrote:
> check_recipient:
> 
> I've added 
> 
>  
>   deny  !hosts = +relay_hosts
>   message = Please use the MX
>   domains = +filtered_domains

How about something like:

deny domains = +filtered_domains
     condition = ! ${if eq {$sender_host_address}{IP_OF_FILTER}}
     message = Please use the MX

Regards

D.

-- 
## List details at http://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/


-- 
## List details at http://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