You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by y....@internavi.ne.jp on 2007/08/07 07:19:45 UTC

Email with different gateway

JAMES Version: 2.1.3

Hi,

I usually want to email through default gateway
but when I email to a specific domain address,I want to email with
different gateway.

Please teach the setting way.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Email with different gateway

Posted by Norman Maurer <no...@apache.org>.
Hi ,

you shoud look at the HostIs matcher and use it with RemoteDelivery.

bye
Norman

y.mukai@internavi.ne.jp schrieb:
> JAMES Version: 2.1.3
>
> Hi,
>
> I usually want to email through default gateway
> but when I email to a specific domain address,I want to email with
> different gateway.
>
> Please teach the setting way.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
> !DSPAM:1,46b8014e240371603411538!
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Email with different gateway

Posted by y....@internavi.ne.jp.
thank you very much. i try it.

Stefano Bagnara wrote:
> y.mukai@internavi.ne.jp ha scritto:
>   
>> JAMES Version: 2.1.3
>>
>> Hi,
>>
>> I usually want to email through default gateway
>> but when I email to a specific domain address,I want to email with
>> different gateway.
>>
>> Please teach the setting way.
>>     
>
> Before the RemoteDelivery mailet you can add another one:
>
> <mailet match="RecipientIsRegex=.*\.domain\.tld" class="RemoteDelivery">
> <outgoing> file://var/mail/outgoing2/ </outgoing>
> <gateway> otherserver.mydomain.com </gateway>
> <gatewayPort>25</gatewayPort>
> <gatewayusername>login</gatewayusername>
> <gatewayPassword>pass</gatewayPassword>
> </mailet>
>
> Also add other options you have in the remotedelivery: I just wrote the
> one that are different from the default.
> Note that the outgoing repository MUST be different from the one you use
> in the other RemoteDelivery.
>
> User, pass and port for the gateway are optional.
>
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Email with different gateway

Posted by Stefano Bagnara <ap...@bago.org>.
y.mukai@internavi.ne.jp ha scritto:
> JAMES Version: 2.1.3
> 
> Hi,
> 
> I usually want to email through default gateway
> but when I email to a specific domain address,I want to email with
> different gateway.
> 
> Please teach the setting way.

Before the RemoteDelivery mailet you can add another one:

<mailet match="RecipientIsRegex=.*\.domain\.tld" class="RemoteDelivery">
<outgoing> file://var/mail/outgoing2/ </outgoing>
<gateway> otherserver.mydomain.com </gateway>
<gatewayPort>25</gatewayPort>
<gatewayusername>login</gatewayusername>
<gatewayPassword>pass</gatewayPassword>
</mailet>

Also add other options you have in the remotedelivery: I just wrote the
one that are different from the default.
Note that the outgoing repository MUST be different from the one you use
in the other RemoteDelivery.

User, pass and port for the gateway are optional.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org