sendmail hooks for pre-checking of over-quota imap users?

Didi Rieder adrieder at
Wed May 19 15:34:32 EDT 2004

--On Wednesday, May 19, 2004 03:14:38 PM -0400 Ken Murchison 
<ken at> wrote:

>> [root at zidd-198 tmp]# ./ unix:/var/imap/socket/smmapd
>> cyrus koarl
>> koarl => PERM Over quota
> Check your imapd.conf.  My guess is that you have
> lmtp_over_quota_perm_failure enabled.  If not, then you have an
> old/broken version of smmapd.

You are right, if I disable it then I get:
[root at zidd-198 init.d]# /tmp/ 
unix:/var/imap/socket/smmapd cyrus koarl
koarl => TEMP Over quota

BTW, this is cyurs-2.2.4

Now sendmail says:
[root at zidd-198 init.d]# /usr/lib/sendmail -d60.1 -bv koarl at
map_lookup(dequote, root) => NOT FOUND (0)
map_lookup(dequote, koarl) => NOT FOUND (0)
map_lookup(user, koarl) => NOT FOUND (67)
map_lookup(cyrus, koarl) => NOT FOUND (75)
map_lookup(cyrus, koarl) tempfail: errno=0
koarl at deliverable: mailer local, user koarl

[root at zidd-198 init.d]# telnet localhost smtp
Connected to localhost.
Escape character is '^]'.
220 ESMTP server ready at Wed, 19 May 2004 21:27:32 
+0200 (CEST)
helo localhost
250 Hello localhost [], pleased to meet you
mail from: <>
250 2.1.0 <>... Sender ok
rcpt to: <koarl at localhost>
250 2.1.5 <koarl at localhost>... Recipient ok (will queue)

But there is no local user "koarl". I'd like that sendmail does not queue 
for users that are over quota. Sendmail also queues if cyrus (smmapd) is 
not running, I'd like it to TEMPFAIL and reject messages.


Didi Rieder
adrieder at
PGPKey ID: 3431D0B0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the Info-cyrus mailing list