Re: [exim] Custom router problem

Pàgina inicial
Delete this message
Reply to this message
Autor: Matthias Waffenschmidt
Data:  
A: Marco
CC: exim-users
Assumpte: Re: [exim] Custom router problem
Hi,

On Sat, Dec 10, 2005 at 12:20:00PM +0100, Marco wrote:
> I have an error with a custom router that check user quota.
> This is my router:
>
> maildir_overquota:
> driver = redirect
> domains = +local_domains
> condition = ${if eq {${readsocket{/var/run/exim_sockd.sock}{QUOTACHECK
> ${lookup ldap {LDAP_Q_HOMEDIRECTORY} {$value} fail} ${lookup ldap
> {LDAP_Q_QUOTA} {$value} fail} $message_size}{3s}{\n}{0}}}{0}{0}{1}}
> allow_fail
> data = :fail: Mailbox quota exceeded
>
> Whes a user is underquota all is ok, but when a user is overquota I have
> as SMTP message: UNKNOWN USER
> Why I haven't as SMTP message Mailbox quota exceeded???


Because you probably have a message modifier in the ACL that does the
verification. This modifier overrides the string returned in the SMTP
dialogue.

You can avoid this (see chapter 39.17) by

- not using a message modifier
- making use of $acl_verify_message like (untested)

message = ${if eq{$acl_verify_message}{} {unknown user}{$acl_verify_message}}

-- 
Gruss / Best regards   |  LF.net GmbH        |  fon +49 711 90074-411
Matthias Waffenschmidt |  Ruppmannstr. 27    |  fax +49 711 90074-33
mw@???              |  D-70565 Stuttgart  |  http://www.lf.net