<servername>  tags in the config.xml allows you to relay mail originating
from a specific domain only. Additionally if this does not work you can
write a custom matcher to check the criteria you desire and then set the
mail state to GHOST in the corresponding mailet ( i think even class="Null"
should work).

regards
ranjib

On Tue, Sep 14, 2010 at 3:45 PM, Will Zhang <[email protected]> wrote:

> Hi All,
>
>       I want to configure james as a commercial mailserver. I know
> <authorizedAddresses> can configure source ips which is allowed , but I
> want to relay by the recipients domain. For example :all mails whose
> recipients has abc.com domain will be allowed , in other word ,
> [email protected] will be accepted by my mail server , but [email protected]
> will be not relay . what can I do it to prevent my mail server from
> being considered as an open relay by yahoo and other mail servers?
>
>
>
> Thanks
>
>
>
> Yours
>
> Will
>
>

Reply via email to