Hi, I changed transport.map to say hold:[ip.address] instead of SMTP, postmapped it, reloaded, and it seems to be queueing the messages rather than delivering. Do I need that line in main.cf if I am already putting the hold in transport.map?
Also, after changing the hold back to smtp and running a sendmail -q, it seems to be delivering all the held, queued messages once again. Is this enough, or do I need to requeue them? Thanks, Richard At 12:15 PM 7/23/2003 +1000, you wrote: > > > > 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. > > >--- >[This E-mail scanned for viruses by friend.ly.net.] --- [This E-mail scanned for viruses by friend.ly.net.]
