Hi,

we are using dovecot's deliver to deliver mails to a virtual mailbox
tree owned by the vmail user, by piping the message to the following
command spawned by vmail:

  /usr/bin/env HOME=/srv/vmail/mydomain.ch/myaccount /usr/lib/dovecot/deliver

When a message is delivered to an account that has reached its
quotum, deliver issues a failure message saying:

  From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
  To: $ENVELOPE_SENDER
  Message-ID: <[EMAIL PROTECTED]>
  Subject: Automatically rejected mail

  Your message to <vmail> was automatically rejected:
  Quota exceeded

The original message is attached, which is nice, however, I don't
like the dovecot rejection message for two reasons:

1. there was no message to <vmail> sent, dovecot should use the
   envelope recipient

considering that it doesn't know the envelope recipient, this would
best be solved by

2. don't accept the mail and send out a rejection, just exit 69 and
   write the reason to stderr!

Did I miss something and is this already possible with dovecot's
deliver in a virtual setting?

Thanks,

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"how do you feel about women's rights?"
"i like either side of them."
                                                       -- groucho marx
 
spamtraps: [EMAIL PROTECTED]

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to