The zeroth string is
always the envelope-recipient address. This is the address as it was received by sendmail
and could easily be in an unexpected format:
argv[0] ?†’ "you"
argv[0] ?†’ "
"
argv[0] ?†’ ">"
Your Milter should be prepared to handle oddly formed addresses.
If the envelope recipient is followed by one or more ESMTP extensions, each extension will
be copied to a subsequent string in the order they appeared in the RCPT To: command. For
example, the following RCPT To: command:
RCPT To: ORCPT=rfc822;you@your.sub.domain
will yield the following values in argv:
argv[0] ?†’ ""
argv[1] ?†’ "ORCPT=rfc822;you@your.sub.domain"
argv[2] ?†’ NULL
The xxfi_envrcpt() function can return any of several values that determine the further
handling of the envelope recipient:
SMFIS_CONTINUE
Allow the RCPT To: command and thus the current recipient and to continue handling
any additional recipients. This is the default return value if you don??™t declare an envelope
recipient handler in smfiDesc (?§26.5.14 on page 1194).
SMFIS_ACCEPT
Allow the RCPT To: command and thus the current recipient. Your Milter will still be
called again for the next recipient, if any.
SMFIS_REJECT
Reject the RCPT To: command (with a 5yz SMTP code), and thus the current recipient.
Your Milter will still be called again for the next recipient, if any.
Pages:
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186