Conditional use of smtp_fallback_relay?

2011-02-07 Thread tobi

Hello,

is it somehow possible to tell postfix in which error cases the 
smtp_fallback_relay should be used? I'm trying to find a way to seperate 
real rejects from temporary errors. I want my postfix to use the 
fallback only if a reject occured and not if a temporary error (like 
from greylisting) happend. In the later case the mails should go to the 
queue and no fallback should be used.

Anyway to achieve this?
Thanks for any hints and tipps

tobi


Re: Conditional use of smtp_fallback_relay?

2011-02-07 Thread Noel Jones

On 2/7/2011 1:31 PM, tobi wrote:

Hello,

is it somehow possible to tell postfix in which error cases
the smtp_fallback_relay should be used?



No.


 I'm trying to find a

way to seperate real rejects from temporary errors. I want
my postfix to use the fallback only if a reject occured and
not if a temporary error (like from greylisting) happend. In
the later case the mails should go to the queue and no
fallback should be used.
Anyway to achieve this?
Thanks for any hints and tipps

tobi




Re: Conditional use of smtp_fallback_relay?

2011-02-07 Thread Victor Duchovni
On Mon, Feb 07, 2011 at 08:31:03PM +0100, tobi wrote:

 Is it somehow possible to tell postfix in which error cases the 
 smtp_fallback_relay should be used?

The fallback relay is used precisely when delivery tempfails.

 I'm trying to find a way to seperate 
 real rejects from temporary errors.

With real rejects the message is bounced, and not retried.

 I want my postfix to use the fallback only if a reject occured

A real reject MUST cause the message to bounce, and not be retried.

 and not if a temporary error (like from greylisting) happend.

Only temporary errors are retried, this includes greylisting.

 In the later case the mails should go to the queue 
 and no fallback should be used.

No. You'd have to write code to rename sufficiently old messages from
the deferred queue of the primary instance into the deferred a different
Postfix instance on the same file-system. The second instance would have
a fallback-relay setting, while the primary would not. Postfix does not
have a mechanism to apply smtp_fallback_relay to messages based on age,
nor does the queue file keep a count of the number of times a particular
message has entered the active queue (or even more complex, delivery
to a particular recipient has been attempted).

-- 
Viktor.