src/mail/ngx_mail_smtp_module.h - nginx-1.7.10

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_MAIL_SMTP_MODULE_H_INCLUDED_
  6. #define _NGX_MAIL_SMTP_MODULE_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>
  9. #include <ngx_mail.h>
  10. #include <ngx_mail_smtp_module.h>


  11. typedef struct {
  12.     ngx_msec_t   greeting_delay;

  13.     size_t       client_buffer_size;

  14.     ngx_str_t    capability;
  15.     ngx_str_t    starttls_capability;
  16.     ngx_str_t    starttls_only_capability;

  17.     ngx_str_t    server_name;
  18.     ngx_str_t    greeting;

  19.     ngx_uint_t   auth_methods;

  20.     ngx_array_t  capabilities;
  21. } ngx_mail_smtp_srv_conf_t;


  22. void ngx_mail_smtp_init_session(ngx_mail_session_t *s, ngx_connection_t *c);
  23. void ngx_mail_smtp_init_protocol(ngx_event_t *rev);
  24. void ngx_mail_smtp_auth_state(ngx_event_t *rev);
  25. ngx_int_t ngx_mail_smtp_parse_command(ngx_mail_session_t *s);


  26. extern ngx_module_t  ngx_mail_smtp_module;


  27. #endif /* _NGX_MAIL_SMTP_MODULE_H_INCLUDED_ */