Re: sender dependent transport map

2011-05-31 Thread Victor Duchovni
On Sat, May 28, 2011 at 07:57:31PM +0800, Joe Wong wrote:

 Sorry, I meant this setting
 
 sender_dependent_relayhost_maps
 
 when the delivery failed in the first attempt, the mail is sent through the
 host defined relayhost in main.cf in the second time.

On Sat, May 28, 2011 at 05:45:03PM +0800, Joe Wong wrote:

 I found that if the mail relay defined in sender dependent transport map
 is temporary unreachable during first mail delivery attempt, the 2nd mail
 delivery is using relayhost setting defined in main.cf. Is this expected?

Sorry, this is incorrect. Postfix will use the indicated relayhost, and
only fall back to an smtp_fallback_relay if that is also set. There is
no fallback from the sender dependent relayhost to the default relayhost.

There is only one nexthop returned by trivial-rewrite(8) (which processes
both relayhost and the sender-dependent variants). So there is no
mechanism by which the default relayhost can be discovered by the queue
manager for messages subject to sender-dependent relayhost.

-- 
Viktor.


Re: sender dependent transport map

2011-05-28 Thread Jeroen Geilman

On 05/28/2011 11:45 AM, Joe Wong wrote:

Hello,

  I found that if the mail relay defined in sender dependent transport map


That doesn't exist; do you mean sender_dependent_default_transport_maps, 
or sender_dependent_relayhost_maps ?

They behave differently.

is temporary unreachable during first mail delivery attempt, the 2nd 
mail delivery is using relayhost setting defined in main.cf 
http://main.cf. Is this expected?

You say transport but refer to a relayhost. Which is it ?

Provide configuration and relevant logs as requested in 
http://www.postfix.org/DEBUG_README.html#mail


--
J.



Re: sender dependent transport map

2011-05-28 Thread Joe Wong
Hi Jeroen,

 Sorry, I meant this setting

sender_dependent_relayhost_maps

when the delivery failed in the first attempt, the mail is sent through the
host defined

relayhos

in main.cf

in the second time.

- Joe

On Sat, May 28, 2011 at 5:50 PM, Jeroen Geilman jer...@adaptr.nl wrote:

  On 05/28/2011 11:45 AM, Joe Wong wrote:

 Hello,

   I found that if the mail relay defined in sender dependent transport map


 That doesn't exist; do you mean sender_dependent_default_transport_maps, or
 sender_dependent_relayhost_maps ?
 They behave differently.


  is temporary unreachable during first mail delivery attempt, the 2nd mail
 delivery is using relayhost setting defined in main.cf. Is this expected?

 You say transport but refer to a relayhost. Which is it ?

 Provide configuration and relevant logs as requested in
 http://www.postfix.org/DEBUG_README.html#mail

 --
 J.