Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-24 Thread Victor Duchovni
On Wed, Feb 24, 2010 at 04:16:56PM +, Michele Carandente wrote: > Hi guys. > I'm still looking for the right solution... > > As I said before, I was thinking to put in a cronjob the command > "postsuper -h ALL", but in that case I'll put in hold also the emails > that are in queue because may

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-24 Thread Michele Carandente
Hi guys. I'm still looking for the right solution... As I said before, I was thinking to put in a cronjob the command "postsuper -h ALL", but in that case I'll put in hold also the emails that are in queue because maybe there was an error during the delivery. Suggestions? Thanks Michele

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-15 Thread Michele Carandente
Hi Victor. Thanks for your reply. My problem is that I want to put all the emails in HOLD, apart the local one. As I said before, my installation is not exatly a standard one... I recognize local emails with: transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf where a database sa

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-10 Thread Victor Duchovni
On Wed, Feb 10, 2010 at 09:22:41AM +, Michele Carandente wrote: > I agree that the cron job solution is not the best one... but at the > moment it is the only one that I'm able to offer... > (Even if with a cron job every 5 seconds(for example), I'll not lose > any emails...) > > As Noel Jone

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-10 Thread Michele Carandente
Hi Victor, I agree that the cron job solution is not the best one... but at the moment it is the only one that I'm able to offer... (Even if with a cron job every 5 seconds(for example), I'll not lose any emails...) As Noel Jones said before: "The documented way to tell postfix to accept mail for

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-09 Thread Victor Duchovni
On Tue, Feb 09, 2010 at 09:44:16AM +, Michele Carandente wrote: > I'll try again to find a way to put emails in HOLD > automatically...otherwise I'll add a cronjob with the command: > 'postsuper -h ALL' The cron job will be completely ineffective. It will miss all mail that is delivered betwe

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-09 Thread Michele Carandente
Hi Noel, thanks for your reply. I know that unfortunately it's not a standard configuration of Postfix, but it's the only one that solve all my problem... Anyway I will not upgrade postfix for at least the next 2 years... I'll try again to find a way to put emails in HOLD automatically...otherwise

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Noel Jones
On 2/8/2010 9:23 AM, Michele Carandente wrote: Hi Wietse, first of all thaks for your reply. The problem is exatly what you said before: hold mail only from non-local clients. I tried as you said with smtpd_client_restrictions = permit_mynetworks static:hold (actually was like that: smtpd_recipi

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Wietse Venema
Michele Carandente: > Hi Wietse, > first of all thaks for your reply. > > The problem is exatly what you said before: hold mail only from > non-local clients. > I tried as you said with smtpd_client_restrictions = permit_mynetworks > static:hold (actually was like that: smtpd_recipient_restriction

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Michele Carandente
Hi Wietse, first of all thaks for your reply. The problem is exatly what you said before: hold mail only from non-local clients. I tried as you said with smtpd_client_restrictions = permit_mynetworks static:hold (actually was like that: smtpd_recipient_restrictions = permit_mynetworks static:HOLD,

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Wietse Venema
Michele Carandente: > Hi Wietse, > I had a look at the links that you've suggested me. > If I've understand correctly, I don't have to use the > 'smtpd_sender_restrictions' option, because I have to match the > receiver and, if it's in transport_maps = > proxy:mysql:/etc/postfix/mysql-virtual_trans

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Michele Carandente
Hi Wietse, I had a look at the links that you've suggested me. If I've understand correctly, I don't have to use the 'smtpd_sender_restrictions' option, because I have to match the receiver and, if it's in transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf, then means that it's i

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Wietse Venema
Michele Carandente: > Hi, > sorry if I write again, but I've found how to queue directly in HOLD. > Basically the option is: > smtpd_sender_restrictions = static:HOLD > > But in this way all the emails will be queued, even the internal one... > There is a way to queue just the emails that will be

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-08 Thread Michele Carandente
Hi, sorry if I write again, but I've found how to queue directly in HOLD. Basically the option is: smtpd_sender_restrictions = static:HOLD But in this way all the emails will be queued, even the internal one... There is a way to queue just the emails that will be relayed externally? Googling a bit

Re: How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-04 Thread Barney Desmond
On 4 February 2010 20:40, Michele Carandente 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 > defau

How to setup postfix to put the queued emails in hold (and not in deferred)

2010-02-04 Thread Michele Carandente
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 The problem is that the queued emails will be i