On 4 February 2010 20:40, Michele Carandente <carande...@gmail.com> wrote: > Hi to everybody. > I've setup postfix to queue all the outgoing emails. > Basically I've add in master.cf this line: > hold unix - - n - - smtp > > And in main.cf I've wrote: > defer_transports = hold > default_transport = hold
Your "hold" service is just a duplicate of the regular smtp service. You might as well have left default_transport alone, and set defer_transports=smtp > The problem is that the queued emails will be in deferred queue, and > I've to manually put in hold queue with the command 'postsuper -h > ALL'. > > There is a way to put queued email directly in hold queue? There's more than one way to do this. Googling for "postfix hold all mail" turns up various MailScanner guides and some archives from this list. While MailScanner is somewhat frowned upon here, it'll help you get the idea: http://wiki.linuxquestions.org/wiki/Using_MailScanner/Postfix/SpamAssassin/ClamAV_in_Gentoo_Linux grep for "hold all incoming messages" An old list posting that uses a second instance (not necessary here): http://irbs.net/internet/postfix/0606/1285.html The key is "smtpd_data_restrictions = static:HOLD" I've only done this once before, to punish a customer. I can't seem to find that config now, so you'll need to read a bit to make some sense of it. What you're wanting to do should be fairly clean and simple to do.