Re: Change behavior of return code

2010-01-22 Thread Mickael CANEVET
It works like a charm.

Thanks a lot.

On Thu, 2010-01-21 at 13:36 -0500, Wietse Venema wrote:
 Victor Duchovni:
  On Thu, Jan 21, 2010 at 02:57:17PM +0100, Mickael CANEVET wrote:
  
   Hi,
   
   I'd like postfix to treat EX_CANTCREAT (73) as temporary failure.
   
   I use this command to deliver my mails:
   
   mailbox_command = /usr/bin/formail -D 8192 ~/.msgid.cache
   -s /usr/libexec/dovecot/deliver
   
   The problem is that if the filesystem containing home directories is not
   mounted, formail returns an EX_CANTCREAT error, which is a permanent
   exception for postfix (by default).
   
   Is it possible to tell postfix to not reject permanently this kind of
   error ?
 
 /etc/postfix/main.cf:
 require_home_directory = yes
 
   Wietse
 



signature.asc
Description: This is a digitally signed message part


Change behavior of return code

2010-01-21 Thread Mickael CANEVET
Hi,

I'd like postfix to treat EX_CANTCREAT (73) as temporary failure.

I use this command to deliver my mails:

mailbox_command = /usr/bin/formail -D 8192 ~/.msgid.cache
-s /usr/libexec/dovecot/deliver

The problem is that if the filesystem containing home directories is not
mounted, formail returns an EX_CANTCREAT error, which is a permanent
exception for postfix (by default).

Is it possible to tell postfix to not reject permanently this kind of
error ?

Thanks a lot.

Mickaƫl.


signature.asc
Description: This is a digitally signed message part


Re: Change behavior of return code

2010-01-21 Thread Wietse Venema
Victor Duchovni:
 On Thu, Jan 21, 2010 at 02:57:17PM +0100, Mickael CANEVET wrote:
 
  Hi,
  
  I'd like postfix to treat EX_CANTCREAT (73) as temporary failure.
  
  I use this command to deliver my mails:
  
  mailbox_command = /usr/bin/formail -D 8192 ~/.msgid.cache
  -s /usr/libexec/dovecot/deliver
  
  The problem is that if the filesystem containing home directories is not
  mounted, formail returns an EX_CANTCREAT error, which is a permanent
  exception for postfix (by default).
  
  Is it possible to tell postfix to not reject permanently this kind of
  error ?

/etc/postfix/main.cf:
require_home_directory = yes

Wietse


Re: Change behavior of return code

2010-01-21 Thread Mickael CANEVET
Thanks a lot for your answer.

The filesystem could be unavailable because it is located on NAS. I
don't want my mails to be bounced if the NAS falls.

On Thu, 2010-01-21 at 12:58 -0500, Victor Duchovni wrote:
 On Thu, Jan 21, 2010 at 02:57:17PM +0100, Mickael CANEVET wrote:
 
  Hi,
  
  I'd like postfix to treat EX_CANTCREAT (73) as temporary failure.
  
  I use this command to deliver my mails:
  
  mailbox_command = /usr/bin/formail -D 8192 ~/.msgid.cache
  -s /usr/libexec/dovecot/deliver
  
  The problem is that if the filesystem containing home directories is not
  mounted, formail returns an EX_CANTCREAT error, which is a permanent
  exception for postfix (by default).
  
  Is it possible to tell postfix to not reject permanently this kind of
  error ?
 
 Wrap this command in a script that tests for this return code, and
 returns EX_TEMPFAIL.
 
 Why would the file system not be mounted, and why would this condition
 be temporary? Why is Postfix running when the system is not fully
 functional? Is this a good system design?
 



signature.asc
Description: This is a digitally signed message part