Re: [exim] Source IP based relay policies

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Stephen Gran
日付:  
To: exim-users
題目: 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 |                                         |

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