On 7/4/2012 10:40 PM, F. Mendez wrote: > Hello everyone. > > > Just a quick question. > > I'm starting some tests with 2 boxes. > > How can I gran to have postfix in queue only mode?. Postfix must > only receive mails into the queue without sending them inmediately > as they come. And that sending process can only be started from a > call from cronjobs each 10 minutes for example. > > I was able to do this with exim, but I moving to postfix which is > stronger. But on exim it has a queue only mode, so it only send > mails each time its called from cron, and this happens every 10 > minutes. This task does not disables queue only mode.
# main.cf defer_transports = smtp to defer all mail, then run "postfix flush" or "sendmail -q" to trigger delivery. This is OK for testing, but I can't imagine why you would want to do this on a regular basis. http://www.postfix.org/postconf.5.html#defer_transports Note: flushing the queue when it contains lots of undeliverable mail results in poor performance for the mail that can be delivered. > > One last question, how can I limit the number of conections the MTA > can stablish to a remote host. Lets say there are in queue 100 mails > from mymail.com host, how can I managed to have postfix only make 20 > conections to any domain at a time no matter how many mails it has > on its queue from that domain. Postfix default settings are generally sensible. http://www.postfix.org/postconf.5.html#initial_destination_concurrency_limit http://www.postfix.org/postconf.5.html#initial_destination_concurrency and for an overview on postfix queues: http://www.postfix.org/QSHAPE_README.html http://www.postfix.org/TUNING_README.html Read all about postfix here: http://www.postfix.org/documentation.html -- Noel Jones