On Wed, Sep 19, 2012 at 07:46:06PM +0200, Michal Kurka wrote:

> Hello.
> 
> I use virtual_transport and my own script for local delivery:
> 
>  main.cf:
>   virtual_mailbox_maps = hash:/etc/postfix/vmailbox
>   virtual_transport = locdel
> 
>  master.cf:
>   locdel unix - n n - - pipe
>     flags=DRXhu user=vmail:vmail 
>     argv=/usr/local/bin/MailDelivery.sh ${sender} ${recipient}

If this script is delivering mail to per-user mailboxes, it generally
cannot do so atomically when the same message arrives for multiple
users. Therefore it is generally necessary to set the recipient limit
for this transport to 1.

        locdel_destination_recipient_limit = 1

        http://www.postfix.org/MAILDROP_README.html

> 
> If a mail is arriving from smtpd(8) for local delivery via "locdel" and 
> "MailDelivery.sh" return error, then mail remains in local queue (if 
> temporary error) or generate bounce mail.
>
>     I need to return SMTP-error to sender server without put in local 
> queue as well as local(8). Is it possible?

No. Postfix delivery is asynchronous.

        http://www.postfix.org/OVERVIEW.html

-- 
        Viktor.

Reply via email to