custom content_filter script: set a specific error code and reject the message

2013-05-15 Thread nik600
dear all i'm using a content_filter param in master.cf to make some custom checks on mail content and recently also on mailbox quota size. In know that exists some patch to handle that (vda or others) but i need to handler this feature without any impact to the postfix-standard installation, so

Re: custom content_filter script: set a specific error code and reject the message

2013-05-15 Thread Jeroen Geilman
On 05/15/2013 07:06 PM, nik600 wrote: dear all i'm using a content_filter param in master.cf http://master.cf to make some custom checks on mail content and recently also on mailbox quota size. In know that exists some patch to handle that (vda or others) but i need to handler this feature

Re: custom content_filter script: set a specific error code and reject the message

2013-05-15 Thread Wietse Venema
nik600: #!/bin/bash EX_TEMPFAIL=75 EX_UNAVAILABLE=69 echo Mailbox is over size limit; exit $EX_UNAVAILABLE; ... I only want to change the error-code to 552 5.2.2 (this should be the correct error code, wright?), is possible to do that? As documented in the pipe(8) manpage: DIAGNOSTICS