> 
> Does anyone know of a way to have postfix accept incomming messages, 
> process them, and queue them for delivery without actually 
> delivering them 
> to the mail server?  The reason I ask is, at time when it is 
> necessary to 
> do maintenence on the mail server, or take it down for any 
> reason, it would 
> be nice for postfix to accept the incoming messages and hold 
> them until we 
> are ready to "release" them to the mail server.  Is this possible?
> 
> One thought I came up with, which isn't a very good solution, 
> is to change 
> transport.map so that the next mail server it sends to is 
> 127.0.0.1, but I 
> don't think this is a very good solution...
> 

Richard,

You can put the messages for the selected destination on 'hold'.
Messages 'on hold'
are still subject to maximal_queue_lifetime.

1. Make sure you have the following line in master.cf

hold    unix    -       -       n       -       -       smtp


2. Make sure you have the following line in main.cf

defer_transports = hold


3. Change the entires in the tranpost map to

domain.to.hold                    hold:[nnn.nnn.nnn.nnn]
                                ^^^^

4. Postmap the transport file and restart postfix. When your
maintenenace
is done then change the transport entry from hold back to smtp (postmap
etc) and do a 
postsuper -r ALL to requeue the messages and they will be delivered.

Of course postfix will happily queue the messages without doing this,
but this
just prevents postfix from attempting delivery. Good Luck.


Scott.


Reply via email to