Prev | Current Page 2148 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

Remember that a context comes into existence when the connection is
made and is lost to you when the connection closes. The Milter library will not free
memory for you, and it shouldn??™t.* Plan you program logic suchth at memory will never
leak.
26.5.21 Milter smfi_setreply()
Tune how messages are rejected All sendmail versions
The reply code and message that sendmail uses to reject or temp-fail the current message is
set by calling the smfi_setreply() Milter library routine. That routine accepts four
arguments:
ret = smfi_setreply(ctx, rcode, dsncode, message);
Here, the rcode specifies the SMTP reply number that sendmail should return. The rcode is
in the form of a three-digit string that must begin with a 4 or a 5.
The dsncode must either be NULL or a string containing three integers with a dot separating
each integer from the next. For example:
"5.7.1"
If the first integer is not a 4 or 5, the smfi_setreply() routine will return MI_FAILURE. Similarly,
if the three integers are not composed of all digits, or if the character positions that
should be occupied by dots are not occupied by dots, the smfi_setreply() routine will also
return MI_FAILURE. If dsncode is NULL, it is ignored and a default DSN return value will be
generated by sendmail.
The last argument, the msg, is a string which specifies a new rejection or temp-fail message:
"Go away, evil spammer"
If the string is longer than 980 characters, or if it contains a carriage-return (\r) or linefeed
character (\n), the smfi_setreply() routine will return MI_FAILURE.


Pages:
2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160
wyciągarki wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła