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 postmaster@seamus.madduck.net To: $ENVELOPE_SENDER Message-ID: dovecot-1221640816-796581-0@seamus 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:
- 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
- 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: madduck.bogus@madduck.net