sendmail hooks for pre-checking of over-quota imap users?
Ken Murchison
ken at oceana.com
Mon May 17 15:39:03 EDT 2004
Andrzej Filip wrote:
> Sergey wrote:
>
>> On Sunday 16 May 2004 23:27, Andrzej Filip wrote:
>>
>>
>>>> But I have new question. The reason: 550 5.1.1
>>>> <xxxxxx at xxxxxxx.xx>... User unknown
>>>> is return both for unreal and real but overquoted users. Is real
>>>> cyrus reason's sending possible ?
>>>
>>>
>>> Please send what cyrus map lookups returned in both cases.
>>
>>
>>
>> # echo '/map cyrus overquoted-user at xxxxxx.ru' | sendmail -bt
>> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
>> Enter <ruleset> <address>
>>
>>> map_lookup: cyrus (overquoted-user at xxxxxx.ru) no match (69)
>>
>>
>> #
>> # echo '/map cyrus unreal-user at xxxxxx.ru' | sendmail -bt
>> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
>> Enter <ruleset> <address>
>>
>>> map_lookup: cyrus (unreal-user at xxxxxx.ru) no match (68)
>
>
> 1) Could you post definition of cyrus map you use ?
> grep Kcyrus /etc/mail/sendmail.cf
> 2) Cpuld you post exact link of solution you have used ?
> [there are a few versions]
>
>> I read in sendmail's documentation about possibility arbitrary test in
>> some replyes :
>>
>> The status indicator is one of the following
>> upper case words:
>>
>> OK the key was found, result contains the
>> looked up value
>> NOTFOUND the key was not found, the result is empty
>> TEMP a temporary failure occured
>> TIMEOUT a timeout occured on the server side
>> PERM a permanent failure occured
>>
>> In case of errors (status TEMP, TIMEOUT or
>> PERM) the result field may contain an
>> explanatory message.
>>
>> Or is cyrus send NOTFOUND (and not TEMP or PERM) in both cases ?
>
>
> *.cf file sees TEMP as NOTFOUND unless the map is defined with -T...
>
> BTW I can see no way to make "explanation" send by cyrus with TEMP reply
> avaialbale in *.cf file (All TEMP land in "one rubber bag").
>
FYI, smmapd does the correct thing for over quota (at least the CVS
version does):
[root at eagle temp]# ./socketmapClient.pl unix:/var/imap/socket/smmap
cyrus test
test => TEMP Over quota
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
---
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