/*++ /* NAME /* postscreen_endpt 3 /* SUMMARY /* look up connection endpoint information /* SYNOPSIS /* #include <postscreen.h> /* /* void psc_endpt_lookup(smtp_client_stream, lookup_done) /* VSTREAM *smtp_client_stream; /* void (*lookup_done)(status, smtp_client_stream, /* smtp_client_addr, smtp_client_port, /* smtp_server_addr, smtp_server_port) /* int status; /* MAI_HOSTADDR_STR *smtp_client_addr; /* MAI_SERVPORT_STR *smtp_client_port; /* MAI_HOSTADDR_STR *smtp_server_addr; /* MAI_SERVPORT_STR *smtp_server_port; /* AUXILIARY METHODS /* void psc_endpt_local_lookup(smtp_client_stream, lookup_done) /* VSTREAM *smtp_client_stream; /* void (*lookup_done)(status, smtp_client_stream, /* smtp_client_addr, smtp_client_port, /* smtp_server_addr, smtp_server_port) /* int status; /* MAI_HOSTADDR_STR *smtp_client_addr; /* MAI_SERVPORT_STR *smtp_client_port; /* MAI_HOSTADDR_STR *smtp_server_addr; /* MAI_SERVPORT_STR *smtp_server_port; /* DESCRIPTION /* psc_endpt_lookup() looks up remote and local connection /* endpoint information, either through local system calls, /* or through an adapter for an up-stream proxy protocol. /* /* The following summarizes what the postscreen(8) server /* expects from a proxy protocol adapter routine. /* .IP \(bu /* Accept the same arguments as psc_endpt_lookup(). /* .IP \(bu /* Call psc_endpt_local_lookup() to look up connection info /* when the upstream proxy indicates that the connection is /* not proxied (e.g., health check probe). /* .IP \(bu /* Validate protocol, address and port syntax. Permit only /* protocols that are configured with the main.cf:inet_protocols /* setting. /* .IP \(bu /* Convert IPv4-in-IPv6 address syntax to IPv4 syntax when /* both IPv6 and IPv4 support are enabled with main.cf:inet_protocols. /* .IP \(bu /* Log a clear warning message that explains why a request /* fails. /* .IP \(bu /* Never talk to the remote SMTP client. /* .PP /* Arguments: /* .IP client_stream /* A brand-new stream that is connected to the remote client. /* This argument MUST be passed to psc_endpt_local_lookup() /* if the up-stream proxy indicates that a connection is not /* proxied. /* .IP lookup /* Call-back routine that reports the result status, address /* and port information. The result status is -1 in case of /* error, 0 in case of success. This MUST NOT be called directly /* if the up-stream proxy indicates that a connection is not /* proxied; instead this MUST be called indirectly by /* psc_endpt_local_lookup(). /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.