sendmail hooks for pre-checking of over-quota imap users?
Andrzej Filip
anfi at priv.onet.pl
Thu May 20 05:40:05 EDT 2004
Didi Rieder wrote:
> --On Wednesday, May 19, 2004 03:14:38 PM -0400 Ken Murchison
> <ken at oceana.com> wrote:
>
>>> [root at zidd-198 tmp]# ./socketmapClient.pl 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/socketmapClient.pl
> 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 xxx.tugraz.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 sbox.tugraz.at... deliverable: mailer local, user koarl
>
> [root at zidd-198 init.d]# telnet localhost smtp
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 zidd-198.tu-graz.ac.at ESMTP server ready at Wed, 19 May 2004
> 21:27:32 +0200 (CEST)
> helo localhost
> 250 zidd-198.tu-graz.ac.at Hello localhost [127.0.0.1], 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.
Could you post the following info:
a) Cyru map specification from sendmail.cf
grep Kcyrus /etc/mail/sendmail.cf
b) versions of mrs* features used in your sendmail.cf
grep ": mrs" /etc/mail/sendmail.cf
The latest versions should produce:
##### $Id: mrs.m4,v 8.3 2004/03/18 21:39:22 anfi Exp $ #####
##### $Id: mrs_cyrus.m4,v 8.7 2004/04/01 14:29:50 anfi Exp $ #####
--
Andrzej [en:Andrew] Adam Filip anfi at priv.onet.pl anfi at xl.wp.pl
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list