Re: [exim] Source IP based relay policies

Top Page
Delete this message
Reply to this message
Author: Anshuman Kanwar
Date:  
To: 'Stephen Gran', 'exim-users@exim.org'
Subject: Re: [exim] Source IP based relay policies
Thanks Stephen. I will give it a shot.

ak

-----Original Message-----
From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] On Behalf Of Stephen Gran
Sent: Monday, September 15, 2008 2:54 AM
To: exim-users@???
Subject: Re: [exim] Source IP based relay policies

On Sun, Sep 14, 2008 at 09:23:09PM -0700, Anshuman Kanwar said:
> Hi all,
>
> I am setting up an outbound MTA. I need some help with setting up the relaying.
>
> i have 2 classes of clients (base on IP addresses) connecting to this MTA.
> Class A is allowed relaying to any destination domain. Class B hosts can
> send only to domains abc.com and xyz.com. Any other clients are not
> allowed to relay at all.
>
> SO how do I setup a ruleset such as:
>
>  If ($client_ip_in_classA) then relay = allowed;
>  else if ($client_ip_in_classB) \
>       && (dest_domain == abc.com|xyz.com) \
>       then relay = allowed ;
>  else relay = not_allowed.


hostlist seta = 1.2.3.0/24
hostlist setb = 2.3.4.0/24
domainlist alloweddomains = abc.com : xyz.com

acl_smtp_rcpt:

accept hosts = +seta

accept hosts = +setb
       domains = +alloweddomains


deny message = relay denied

Or so.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Better late than never.   -- Titus      |
|  steve@???             | Livius (Livy)                           |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------

--
## 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/