General-Purpose Mail Filter
Opens connection to the callout server listening at url. Returns the descriptor of the connection.
Closes the connection. fd is the file descriptor returned by
the previous call to
Instructs the callout server identified by fd (a file descriptor
returned by a previous call to
callout_open) to verify the
validity of the email. Optional rest argument supplies
additional parameters for the server.
Possible return values:
Success. The email is found to be valid.
email does not exist.
The email validity cannot be determined right now, e.g. because remote SMTP server returned temporary failure. The caller should retry verification later.
Some error occurred.
The function will throw the
e_callout_proto exception if the
remote host doesn’t speak the correct callout protocol.
callout_do modifies the following variables:
Host name or IP address of the last polled SMTP server.
Initial SMTP reply from the last polled host.
The reply to the
EHLO) command, received from the
last polled host.
Last SMTP command sent to the polled host. If nothing was
last_poll_sent contains the string ‘nothing’.
Last SMTP reply received from the remote host. In case of multi-line replies, only the first line is stored. If nothing was received the variable contains the string ‘nothing’.
The default callout server is defined by the
statement in the configuration file, or by the
statement in the
server milter section (see configuring default callout server. The following functions operate on that server.
Returns URL of the default callout server.
Verifies the validity of the email using the default callout server.
This document was generated on January 3, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.