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

From: Didi Rieder (no email)
Date: Wed May 19 2004 - 14:20:56 EDT


--On Wednesday, May 19, 2004 09:45:23 AM +0200 Andrzej Filip
<> wrote:

> You should get some 4?? error (temporary problem) in sendmail's reply to
> the "RCPT TO: "

unfortunately I don't....

> If you face the problem yourself:
>
> 1) Make sure that you use latest version of my "cyrus & sendmail"
> integration hints [some *old* releases do not handle temp problems]

I downloaded the stuff again today and reinstalled it according to your
instructions on the website. I'm using sendmail 8.12.11 with the smmap
patch.

> 2) Post results produced by the commands below of over quota user(s):
> echo '/map cyrus ' | sendmail -bt

Over quota user:
[root at zidd-198 cf]# echo '/map cyrus koarl' | /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> map_lookup: cyrus (koarl) no match (69)

[root at zidd-198 tmp]# ./socketmapClient.pl unix:/var/imap/socket/smmapd
cyrus koarl
koarl => PERM Over quota

Normal user:
[root at zidd-198 cf]# echo '/map cyrus muecketb' | /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> map_lookup: cyrus (muecketb) returns muecketb<OK> (0)

[root at zidd-198 tmp]# ./socketmapClient.pl unix:/var/imap/socket/smmapd
cyrus muecketb
muecketb => OK muecketb

> sendmail -d60.1 -bv '

Over quota user:
[root at zidd-198 cf]# /usr/lib/sendmail -d60.1 -bv
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 (69)
... User unknown

Normal user:
[root at zidd-198 cf]# /usr/lib/sendmail -d60.1 -bv
map_lookup(dequote, root) => NOT FOUND (0)
map_lookup(dequote, muecketb) => NOT FOUND (0)
map_lookup(user, muecketb) => NOT FOUND (67)
map_lookup(cyrus, muecketb) => muecketb<OK> (0)
... deliverable: mailer cyrusv2, host dummy, user
muecketb

># the last one produce *a lot* of output
> sendmail -d21.12 -d60.1 -bv '

I attached the output, because it's so long.
I attached also my sendmail.mc maybe it helps too.

Thanks

Didi

-- 
---------------------------------
Didi Rieder
PGPKey ID: 3431D0B0
---------------------------------



---
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










Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD