On Tue, 2005-08-23 at 11:04, Brian J. France wrote:
> Is there a way to add more options to the EHLO response (an example)?

Sure. Extensions are registered on a per-connection basis. Ideally you
would register an SMTP extension at the connect hook like so:

-----------

smtpd_retcode default_connect(smtpd_conn_rec *scr,
                              smtpd_return_data *out) {
        smtpd_register_extension(scr, "MY EXTENSION");
        return SMTPD_OK;
}

register_hooks() {
        APR_OPTIONAL_HOOK(smtpd, connect,
                          default_connect, NULL, NULL,
                          APR_HOOK_MIDDLE);
}

-----------------

You do it at connect so when the user gives ehlo, the server can respond
with the list of all the extensions supported by the various modules. 

There will be more documentation/example code for mod_smtpd very soon.
-rian


Reply via email to