Re: [exim] Is there a command that ....

Top Pagina
Delete this message
Reply to this message
Auteur: Graeme Fowler
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] Is there a command that ....
On Fri, 2007-09-14 at 17:58 -0700, Marc Perkel wrote:
> Is there a command that you can run in the quit/notquit to determine
> what the final code sent was? If it was a 220 or a 421 or a 550? Is that
> stored in a variable?


You're talking about incoming messages, presumably, as you're talking
about ACLs?

>From the docs:


The ACL for the SMTP QUIT command is anomalous, in that the outcome of
the ACL does not affect the response code to QUIT, which is always 221.

and generally speaking:

http://www.exim.org/exim-html-current/doc/html/spec_html/ch40.html#SECID196

You can define the return codes yourself in the response part of the
appropriate ACL; that means you could then set an acl_c or acl_m
variable (or other arbitrary acl_ variable) and carry it through to
acl_quit or acl_notquit for checking.

Graeme